Things were working, suddenly regressed
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
using SVSim.Database.Enums;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
|
||||
|
||||
[MessagePackObject]
|
||||
public class UserRankInfo
|
||||
{
|
||||
// Serialized as wire deck_format via FormatJsonConverter (registered globally in
|
||||
// Program.cs). Storing as Format makes wrong-int-scope bugs (sending internal enum
|
||||
// ints instead of wire codes) a compile error.
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")]
|
||||
public int DeckFormat { get; set; }
|
||||
public Format DeckFormat { get; set; }
|
||||
[JsonPropertyName("rank")]
|
||||
[Key("rank")]
|
||||
public int Rank { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user