This commit is contained in:
dingo
2025-11-29 15:44:45 -05:00
parent 9c75aaafc9
commit bc8cbab8ce
23 changed files with 3333 additions and 2 deletions
+18 -1
View File
@@ -13,5 +13,22 @@ public static class OpCodes
public const int AUTH_WITH_TOKEN = 112;
public const int AUTH_WITH_TOKEN_RESULT = 113;
public const int ERROR = 900; // generic error envelope if you want
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)
}