namespace Server.Networking.Messages; public static class OpCodes { public const int ECHO = 1; public const int AUTH_REGISTER = 100; public const int AUTH_REGISTER_RESULT = 101; public const int AUTH_LOGIN = 110; public const int AUTH_LOGIN_RESULT = 111; public const int AUTH_WITH_TOKEN = 112; public const int AUTH_WITH_TOKEN_RESULT = 113; public const int ERROR = 900; //public const int CHAR_LIST = 200; //public const int CHAR_LIST_RESULT = 201; public const int CHAR_CREATE = 202; public const int CHAR_CREATE_RESULT = 203; public const int CHAR_SELECT = 204; public const int CHAR_SELECT_RESULT = 205; public const int WORLD_SPAWN_REQUEST = 300; // client -> server (after select) public const int WORLD_SPAWN = 301; // server -> client (your own + others joining) public const int WORLD_DESPAWN = 302; // server -> client public const int WORLD_INPUT = 310; // client -> server (per tick or at ~20 Hz) public const int WORLD_STATE = 311; // server -> client (snapshots, ~10–20 Hz) }