Stickers: split network & mod version strings

This commit is contained in:
NotAKidoS 2024-08-25 15:24:18 -05:00
parent 852520973c
commit 8238ce6ca9
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,6 @@ using System.Reflection;
namespace NAK.Stickers.Properties; namespace NAK.Stickers.Properties;
internal static class AssemblyInfoParams internal static class AssemblyInfoParams
{ {
public const string Version = "1.0.2"; public const string Version = "1.0.3";
public const string Author = "NotAKidoS"; public const string Author = "NotAKidoS";
} }

View file

@ -8,7 +8,8 @@ public static partial class ModNetwork
internal const int MaxTextureSize = 1024 * 256; // 256KB internal const int MaxTextureSize = 1024 * 256; // 256KB
private const string ModId = $"MelonMod.NAK.Stickers_v{AssemblyInfoParams.Version}"; private const string NetworkVersion = "1.0.2"; // change each time network protocol changes
private const string ModId = $"MelonMod.NAK.Stickers_v{NetworkVersion}";
private const int ChunkSize = 1024; // roughly 1KB per ModNetworkMessage private const int ChunkSize = 1024; // roughly 1KB per ModNetworkMessage
private const int MaxChunkCount = MaxTextureSize / ChunkSize; private const int MaxChunkCount = MaxTextureSize / ChunkSize;