Files
sbox-public/engine/Sandbox.Engine/Protocol.cs
Garry Newman 1dfd1de087 Thumb Textures (#3677)
Adds a universal way to get thumbnail images.

- `thumb:entities/sents/npc/scientist.sent` - resources/assets
- `thumb:mount://ns2/ns2/models/effects/exosuit_part1.model.vmdl` -mount files
- `thumb:facepunch.snowman` - packages

This greatly simplifies UI like the spawnmenu that needs to show thumbnails for these things.

We also add `AssetTypeFlags.IncludeThumbnails`. If this is set then when the package is published, any asset types with this flag will include a "[path].c.png" thumbnail image of it.

Also does Api++ protocol increase.
2025-12-27 17:55:57 +00:00

36 lines
1.0 KiB
C#

namespace Sandbox.Engine;
/// <summary>
/// A centralized place to access the protocols
/// </summary>
public static class Protocol
{
/// <summary>
/// We cannot play packages with an Api version higher than this.
/// </summary>
public static int Api => 23;
/// <summary>
/// We cannot talk to servers or clients with a network protocol different to this.
/// </summary>
public static int Network => 1095;
}
// Api Versions
// 21. 12 July 2025 - Monthly update
// 20. 01 July 2025 - Monthly update
// 19. 06 May 2025 - New prefabs
// 18. 10 Mar 2025 - First staging version
// Network Versions
// 1095. 23rd November 2025 - Snapshot parent salt
// 1094. 10th November 2025 - Network visibility
// 1093. 13th October 2025 - LZ4 compression
// 1092. 1st October 2025 - Networking optimizations
// 1091. 5th Sept 2025 - FastHash changes
// 1090. 12th August - Delta snapshot changes
// 1087. 14 May 2025 - GameObject (reference) ByteReader/Writer improvements
// 1086. 8 May 2025 - Server time changed to double
// 1085. 10 Mar 2025 - First staging version