Harden CultLib for local production use

This commit is contained in:
Meta Vens 2026-05-09 11:45:46 +01:00
commit 3f1cb8b36e
12 changed files with 1376 additions and 47 deletions

View file

@ -7,7 +7,7 @@ namespace GameCult.Networking
/// <summary>
/// Basic player account document used by the sample networking stack.
/// </summary>
[CultDocument("gamecult.player_data", "gamecult.player_data.v1")]
[CultDocument("gamecult.player_data", "gamecult.player_data.v2")]
public class PlayerData
{
/// <summary>
@ -36,5 +36,11 @@ namespace GameCult.Networking
[Key(3)]
[CultName]
public string Username = string.Empty;
/// <summary>
/// Monotonic session version used to supersede older issued tokens.
/// </summary>
[Key(4)]
public long SessionVersion;
}
}