2026-05-08 01:13:15 +01:00
|
|
|
using System;
|
2026-04-18 06:04:39 +01:00
|
|
|
using GameCult.Caching;
|
|
|
|
|
using MessagePack;
|
|
|
|
|
|
|
|
|
|
namespace GameCult.Networking
|
|
|
|
|
{
|
2026-05-08 01:13:15 +01:00
|
|
|
[CultDocument("gamecult.player_data", "gamecult.player_data.v1")]
|
|
|
|
|
public class PlayerData
|
2026-04-18 06:04:39 +01:00
|
|
|
{
|
2026-05-08 01:13:15 +01:00
|
|
|
[Key(0)]
|
|
|
|
|
[CultIndex]
|
|
|
|
|
public Guid PlayerId = Guid.NewGuid();
|
2026-04-18 06:04:39 +01:00
|
|
|
|
|
|
|
|
[Key(1)]
|
2026-05-08 01:13:15 +01:00
|
|
|
[CultIndex]
|
2026-04-18 13:01:24 +01:00
|
|
|
public string Email = string.Empty;
|
2026-04-18 06:04:39 +01:00
|
|
|
|
|
|
|
|
[Key(2)]
|
2026-04-18 13:01:24 +01:00
|
|
|
public string PasswordHash = string.Empty;
|
2026-04-18 06:04:39 +01:00
|
|
|
|
|
|
|
|
[Key(3)]
|
2026-05-08 01:13:15 +01:00
|
|
|
[CultName]
|
2026-04-18 13:01:24 +01:00
|
|
|
public string Username = string.Empty;
|
2026-04-18 06:04:39 +01:00
|
|
|
}
|
2026-04-18 13:01:24 +01:00
|
|
|
}
|