using System; using GameCult.Caching; using MessagePack; namespace GameCult.Networking { /// /// Basic player account document used by the sample networking stack. /// [CultDocument("gamecult.player_data", "gamecult.player_data.v2")] [MessagePackObject] public class PlayerData { /// /// Unique player identifier. /// [Key(0)] [CultIndex] public Guid PlayerId = Guid.NewGuid(); /// /// Player email address. /// [Key(1)] [CultIndex] public string Email = string.Empty; /// /// Stored password hash. /// [Key(2)] public string PasswordHash = string.Empty; /// /// Player display name. /// [Key(3)] [CultName] public string Username = string.Empty; /// /// Monotonic session version used to supersede older issued tokens. /// [Key(4)] public long SessionVersion; } }