diff --git a/.dockerignore b/.dockerignore index 973372c3..9f4bf206 100644 --- a/.dockerignore +++ b/.dockerignore @@ -9,7 +9,6 @@ DEPLOYMENT.md LICENSE README.md build-mods.js -copy.js flutter noita_mod nt-app diff --git a/buf.gen.yaml b/buf.gen.yaml deleted file mode 100644 index f95ceb62..00000000 --- a/buf.gen.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: v1 -plugins: - - plugin: es - opt: target=ts - out: nt-web-app/websocket/gen - - plugin: es - out: nt-app/src/gen diff --git a/copy.js b/copy.js deleted file mode 100644 index 61f9b7d8..00000000 --- a/copy.js +++ /dev/null @@ -1,11 +0,0 @@ -//why we have to create this is beyond me smh -const fs = require("fs") - - -if (process.argv.length !== 4) { - console.error('Expected 2 arguments'); - process.exit(1); -} - -console.log(`Copying ${process.argv[2]} to ${process.argv[3]}`) -fs.copyFileSync(process.argv[2], process.argv[3]) \ No newline at end of file diff --git a/nt-app/.prettierrc b/nt-app/.prettierrc new file mode 100644 index 00000000..7591532c --- /dev/null +++ b/nt-app/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": false, + "tabWidth": 4, + "arrowParens": "always", + "trailingComma": "none" +} diff --git a/nt-app/package.json b/nt-app/package.json index e6839197..6c0ecd2f 100644 --- a/nt-app/package.json +++ b/nt-app/package.json @@ -24,7 +24,6 @@ "got": "^11.8.1", "jsonwebtoken": "^9.0.2", "keytar": "^7.2.0", - "protobufjs": "^6.11.4", "uuid": "^9.0.0", "validator": "^13.5.1", "vue": "^2.6.11", diff --git a/nt-app/public/messages.proto b/nt-app/public/messages.proto deleted file mode 100644 index bc31ea52..00000000 --- a/nt-app/public/messages.proto +++ /dev/null @@ -1,710 +0,0 @@ -syntax = "proto3"; -package NT; - -message Envelope { - oneof kind { - GameAction game_action = 1; - LobbyAction lobby_action = 50; - } -} - -message GameAction { - oneof action { - // The c prefix stands for "client", which refers to this application - // The s prefix stands for "server", which refers to the online Noita game server - - ClientPlayerMove c_player_move = 1; - ServerPlayerMove s_player_move = 2; - - ClientPlayerUpdate c_player_update = 3; - ServerPlayerUpdate s_player_update = 4; - - ClientPlayerUpdateInventory c_player_update_inventory = 5; - ServerPlayerUpdateInventory s_player_update_inventory = 6; - - ClientHostItemBank c_host_item_bank = 7; - ServerHostItemBank s_host_item_bank = 8; - - ClientHostUserTake c_host_user_take = 9; - ServerHostUserTake s_host_user_take = 10; - - ClientHostUserTakeGold c_host_user_take_gold = 11; - ServerHostUserTakeGold s_host_user_take_gold = 12; - - ClientPlayerAddGold c_player_add_gold = 13; - ServerPlayerAddGold s_player_add_gold = 14; - - ClientPlayerTakeGold c_player_take_gold = 15; - ServerPlayerTakeGold s_player_take_gold = 16; - - ClientPlayerAddItem c_player_add_item = 17; - ServerPlayerAddItem s_player_add_item = 18; - - ClientPlayerTakeItem c_player_take_item = 19; - ServerPlayerTakeItem s_player_take_item = 20; - - ClientPlayerPickup c_player_pickup = 21; - ServerPlayerPickup s_player_pickup = 22; - - ClientNemesisAbility c_nemesis_ability = 23; - ServerNemesisAbility s_nemesis_ability = 24; - - ClientNemesisPickupItem c_nemesis_pickup_item = 25; - ServerNemesisPickupItem s_nemesis_pickup_item = 26; - - ClientChat c_chat = 27; - ServerChat s_chat = 28; - - ClientPlayerDeath c_player_death = 29; - ServerPlayerDeath s_player_death = 30; - - ClientPlayerNewGamePlus c_player_new_game_plus = 31; - ServerPlayerNewGamePlus s_player_new_game_plus = 32; - - ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - - ClientCustomModEvent c_custom_mod_event = 35; - ServerCustomModEvent s_custom_mod_event = 36; - - ClientRespawnPenalty c_respawn_penalty = 37; - ServerRespawnPenalty s_respawn_penalty = 38; - - ClientAngerySteve c_angery_steve = 39; - ServerAngerySteve s_angery_steve = 40; - - ServerPlayerPos s_player_pos = 41; - ServerStatsUpdate s_stat_update = 42; - } -} - -message PlayerFrame { - optional float x = 1; - optional float y = 2; - optional float arm_r = 3; - optional float arm_scale_y = 4; - optional float scale_x = 5; - optional int32 anim = 6; - optional int32 held = 7; -} - -message ServerPlayerPos { - string user_id = 1; - float x = 2; - float y = 3; -} - -message ClientPlayerMove { - repeated PlayerFrame frames = 1; -} - -message ServerPlayerMove { - string user_id = 1; - repeated PlayerFrame frames = 2; -} - -message ClientPlayerUpdate { - optional float cur_hp = 1; - optional float max_hp = 2; - optional string location = 3; - optional bool sampo = 4; -} - -message ServerPlayerUpdate { - string user_id = 1; - optional float cur_hp = 2; - optional float max_hp = 3; - optional string location = 4; - optional bool sampo = 5; -} - -message ClientPlayerUpdateInventory { - repeated InventoryWand wands = 1; - repeated InventoryItem items = 2; - repeated InventorySpell spells = 3; - - message InventoryWand { - uint32 index = 1; - Wand wand = 2; - } - - message InventoryItem { - uint32 index = 3; - Item item = 4; - } - - message InventorySpell { - uint32 index = 1; - Spell spell = 2; - } -} - -message ServerPlayerUpdateInventory { - string user_id = 1; - repeated InventoryWand wands = 2; - repeated InventoryItem items = 3; - repeated InventorySpell spells = 4; - - message InventoryWand { - uint32 index = 1; - Wand wand = 2; - } - - message InventoryItem { - uint32 index = 1; - Item item = 2; - } - - message InventorySpell { - uint32 index = 1; - Spell spell = 2; - } -} - -message ClientHostItemBank { - repeated Wand wands = 1; - repeated Spell spells = 2; - repeated Item items = 3; - uint32 gold = 4; - repeated EntityItem objects = 5; -} - -message ServerHostItemBank { - repeated Wand wands = 1; - repeated Spell spells = 2; - repeated Item items = 3; - uint32 gold = 4; - repeated EntityItem objects = 5; -} - -message ClientHostUserTake { - string user_id = 1; - string id = 2; - bool success = 3; -} - -message ServerHostUserTake { - string user_id = 1; - string id = 2; - bool success = 3; -} - -message ClientHostUserTakeGold { - string user_id = 1; - uint32 amount = 2; - bool success = 3; -} - -message ServerHostUserTakeGold { - string user_id = 1; - uint32 amount = 2; - bool success = 3; -} - -message ClientPlayerAddGold { - uint32 amount = 1; -} - -message ServerPlayerAddGold { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerTakeGold { - uint32 amount = 1; -} - -message ServerPlayerTakeGold { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerAddItem { - oneof item { - Spells spells = 1; - Wands wands = 2; - Items flasks = 3; - Entities objects = 4; - } - - message Spells { - repeated Spell list = 1; - } - message Wands { - repeated Wand list = 1; - } - message Items { - repeated Item list = 1; - } - message Entities { - repeated EntityItem list = 1; - } -} - -message ServerPlayerAddItem { - string user_id = 1; - oneof item { - Spells spells = 2; - Wands wands = 3; - Items flasks = 4; - Entities objects = 5; - } - - message Spells { - repeated Spell list = 1; - } - message Wands { - repeated Wand list = 2; - } - message Items { - repeated Item list = 3; - } - message Entities { - repeated EntityItem list = 4; - } -} - -message ClientPlayerTakeItem { - string id = 1; -} - -message ServerPlayerTakeItem { - string user_id = 1; - string id = 2; -} - -message ClientChat { - string message = 1; -} - -message ServerChat { - string id = 1; - string user_id = 2; - string name = 3; - string message = 4; -} - -message ServerStatsUpdate{ - string data = 1; -} - - -message ClientPlayerPickup { - oneof kind { - HeartPickup heart = 1; - OrbPickup orb = 2; - } - - message HeartPickup { - bool hp_perk = 1; - } - - message OrbPickup { - uint32 id = 1; - } -} - -message ServerPlayerPickup { - string user_id = 1; - oneof kind { - HeartPickup heart = 2; - OrbPickup orb = 3; - } - - message HeartPickup { - bool hp_perk = 1; - } - - message OrbPickup { - uint32 id = 1; - } -} - -message ClientNemesisPickupItem { - string game_id = 1; -} - -message ServerNemesisPickupItem { - string user_id = 1; - string game_id = 2; -} - -message ClientNemesisAbility { - string game_id = 1; -} - -message ServerNemesisAbility { - string user_id = 1; - string game_id = 2; -} - -message ClientPlayerDeath { - bool is_win = 1; - optional uint32 game_time = 2; -} - -message ServerPlayerDeath { - string user_id = 1; - bool is_win = 2; - optional uint32 game_time = 3; -} - -message ClientPlayerNewGamePlus { - uint32 amount = 1; -} - -message ServerPlayerNewGamePlus { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerSecretHourglass { - string material = 1; -} - -message ServerPlayerSecretHourglass { - string user_id = 1; - string material = 2; -} - -message ClientCustomModEvent { - string payload = 1; -} - -message ServerCustomModEvent { - string user_id = 1; - string payload = 2; -} - -message ClientRespawnPenalty { - uint32 deaths = 1; -} - -message ServerRespawnPenalty { - string user_id = 1; - uint32 deaths = 2; -} - -message ClientAngerySteve { - bool idk = 1; -} - -message ServerAngerySteve { - string user_id = 1; -} - -message Wand { - string id = 1; - WandStats stats = 2; - repeated Spell always_cast = 3; - repeated Spell deck = 4; - optional string sent_by = 5; - optional string contributed_by = 6; - - message WandStats { - string sprite = 1; - bool named = 2; - string ui_name = 3; - float mana_max = 4; - float mana_charge_speed = 5; - int32 reload_time = 6; - uint32 actions_per_round = 7; - uint32 deck_capacity = 8; - bool shuffle_deck_when_empty = 9; - float spread_degrees = 10; - float speed_multiplier = 11; - int32 fire_rate_wait = 12; - float tip_x = 13; - float tip_y = 14; - float grip_x = 15; - float grip_y = 16; - } -} - -message Spell { - string id = 1; - string game_id = 2; - optional string sent_by = 3; - optional string contributed_by = 4; - int32 uses_remaining = 5; -} - -message Item { - string id = 1; - Color color = 2; - repeated Material content = 3; - optional string sent_by = 4; - optional string contributed_by = 5; - bool is_chest = 6 [deprecated=true]; - string item_type = 7; - - message Color { - float r = 1; - float g = 2; - float b = 3; - } - message Material { - uint32 id = 1; - uint32 amount = 2; - } -} - -message EntityItem { - string id = 1; - string path = 2; - string sprite = 3; - optional string sent_by = 4; -} - -message LobbyAction { - oneof action { - ClientRoomCreate c_room_create = 1; - ServerRoomCreated s_room_created = 2; - ServerRoomCreateFailed s_room_create_failed = 3; - - ClientRoomUpdate c_room_update = 4; - ServerRoomUpdated s_room_updated = 5; - ServerRoomUpdateFailed s_room_update_failed = 6; - - ClientRoomFlagsUpdate c_room_flags_update = 7; - ServerRoomFlagsUpdated s_room_flags_updated = 8; - ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - - ClientRoomDelete c_room_delete = 10; - ServerRoomDeleted s_room_deleted = 11; - - ClientJoinRoom c_join_room = 12; - ServerJoinRoomSuccess s_join_room_success = 13; - ServerJoinRoomFailed s_join_room_failed = 14; - ServerUserJoinedRoom s_user_joined_room = 15; - - ClientLeaveRoom c_leave_room = 16; - ServerUserLeftRoom s_user_left_room = 17; - - ClientKickUser c_kick_user = 18; - ServerUserKicked s_user_kicked = 19; - - ClientBanUser c_ban_user = 20; - ServerUserBanned s_user_banned = 21; - - ClientReadyState c_ready_state = 22; - ServerUserReadyState s_user_ready_state = 23; - - ClientStartRun c_start_run = 24; - ServerHostStart s_host_start = 25; - - ClientRequestRoomList c_request_room_list = 27; - ServerRoomList s_room_list = 28; - - ServerDisconnected s_disconnected = 31; - ServerRoomAddToList s_room_add_to_list = 32; - - ClientRunOver c_run_over = 33; - } -} - -message ClientRunOver { - optional bool idk = 1; -} - -message ServerDisconnected { - string reason = 1; -} - -message ClientRoomDelete { - string id = 1; -} - -message ServerRoomDeleted { - string id = 1; -} - -message ClientRoomCreate { - string name = 1; - uint32 gamemode = 2; - uint32 max_users = 3; - optional string password = 4; -} - -message ServerRoomCreated { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 max_users = 4; - optional string password = 5; - bool locked = 6; - repeated User users = 7; - - message User { - string user_id = 1; - string name = 2; - bool ready = 3; - bool owner = 4; - } -} - -message ServerRoomCreateFailed { - string reason = 1; -} - -message ClientRoomUpdate { - optional string name = 1; - optional uint32 gamemode = 2; - optional uint32 max_users = 3; - optional string password = 4; - optional bool locked = 5; -} - -message ServerRoomUpdated { - optional string name = 1; - optional uint32 gamemode = 2; - optional uint32 max_users = 3; - optional string password = 4; - optional bool locked = 5; -} - -message ServerRoomUpdateFailed{ - string reason = 1; -} - -message ClientRoomFlagsUpdate { - repeated GameFlag flags = 1; - message GameFlag { - // TODO: This seems like a hack, please improve it - string flag = 1; - optional int32 int_val = 2; - optional string str_val = 3; - optional float float_val = 4; - optional bool bool_val = 5; - optional uint32 u_int_val = 6; - } -} - -message ServerRoomFlagsUpdated { - repeated GameFlag flags = 1; - message GameFlag { - string flag = 1; - optional int32 int_val = 2; - optional string str_val = 3; - optional float float_val = 4; - optional bool bool_val = 5; - optional uint32 u_int_val = 6; - } -} - -message ServerRoomFlagsUpdateFailed { - string reason = 1; -} - -message ClientJoinRoom { - string id = 1; - optional string password = 2; -} - -message ServerJoinRoomSuccess { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 max_users = 4; - optional string password = 5; - bool locked = 6; - repeated User users = 7; - - message User { - string user_id = 1; - string name = 2; - bool ready = 3; - bool owner = 4; - } -} - -message ServerJoinRoomFailed { - string reason = 1; -} - -message ServerUserJoinedRoom { - string user_id = 1; - string name = 2; -} - -message ClientLeaveRoom { - string user_id = 1; //should be empty msg -} - -message ServerUserLeftRoom { - string user_id = 1; -} - -message ClientKickUser { - string user_id = 1; -} - -message ServerUserKicked { - string user_id = 1; -} - -message ClientBanUser { - string user_id = 1; -} - -message ServerUserBanned { - string user_id = 1; -} - -message ClientReadyState { - bool ready = 1; - optional string seed = 2; - repeated string mods = 3; - optional string version = 4; - optional bool beta = 5; -} - -message ServerUserReadyState { - string user_id = 1; - bool ready = 2; - optional string seed = 3; - repeated string mods = 4; - optional string version = 5; - optional bool beta = 6; -} - -message ClientStartRun { - bool forced = 1; -} - -message ServerHostStart { - bool forced = 1; -} - -message ClientRequestRoomList { - uint32 page = 1; -} - -message ServerRoomList { - repeated Room rooms = 1; - optional uint32 pages = 2; - message Room { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 cur_users = 4; - uint32 max_users = 5; - bool protected = 6; - string owner = 7; - bool locked = 8; - } -} - -message ServerRoomAddToList { - Room room = 1; - message Room { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 cur_users = 4; - uint32 max_users = 5; - bool protected = 6; - string owner = 7; - bool locked = 8; - } -} \ No newline at end of file diff --git a/nt-app/src/components/vRoomFlags.vue b/nt-app/src/components/vRoomFlags.vue index c6b36557..dc028bdc 100644 --- a/nt-app/src/components/vRoomFlags.vue +++ b/nt-app/src/components/vRoomFlags.vue @@ -3,39 +3,56 @@

Game Options

@@ -46,110 +63,108 @@ \ No newline at end of file +span + .tooltip-wrapper { + margin-left: 0.5em; +} + diff --git a/nt-app/src/frameCoder.js b/nt-app/src/frameCoder.js new file mode 100644 index 00000000..ab8862fd --- /dev/null +++ b/nt-app/src/frameCoder.js @@ -0,0 +1,3 @@ +const { createFrameCoder } = require("@noita-together/nt-message") + +module.exports = createFrameCoder() diff --git a/nt-app/src/gen/alt_pb.d.ts b/nt-app/src/gen/alt_pb.d.ts deleted file mode 100644 index 939db56c..00000000 --- a/nt-app/src/gen/alt_pb.d.ts +++ /dev/null @@ -1,3870 +0,0 @@ -// @generated by protoc-gen-es v1.4.1 -// @generated from file alt.proto (package NTALT, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message NTALT.Envelope - */ -export declare class Envelope extends Message { - /** - * @generated from oneof NTALT.Envelope.kind - */ - kind: { - /** - * @generated from field: NTALT.GameAction game_action = 1; - */ - value: GameAction; - case: "gameAction"; - } | { - /** - * @generated from field: NTALT.LobbyAction lobby_action = 50; - */ - value: LobbyAction; - case: "lobbyAction"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Envelope"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Envelope; - - static fromJson(jsonValue: JsonValue, options?: Partial): Envelope; - - static fromJsonString(jsonString: string, options?: Partial): Envelope; - - static equals(a: Envelope | PlainMessage | undefined, b: Envelope | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.GameAction - */ -export declare class GameAction extends Message { - /** - * The c prefix stands for "client", which refers to this application - * The s prefix stands for "server", which refers to the online Noita game server - * - * @generated from oneof NTALT.GameAction.action - */ - action: { - /** - * @generated from field: NTALT.PlayerMove player_move = 1; - */ - value: PlayerMove; - case: "playerMove"; - } | { - /** - * @generated from field: NTALT.PlayerPosition player_position = 2; - */ - value: PlayerPosition; - case: "playerPosition"; - } | { - /** - * @generated from field: NTALT.ClientPlayerUpdate c_player_update = 3; - */ - value: ClientPlayerUpdate; - case: "cPlayerUpdate"; - } | { - /** - * @generated from field: NTALT.ServerPlayerUpdate s_player_update = 4; - */ - value: ServerPlayerUpdate; - case: "sPlayerUpdate"; - } | { - /** - * @generated from field: NTALT.ClientPlayerUpdateInventory c_player_update_inventory = 5; - */ - value: ClientPlayerUpdateInventory; - case: "cPlayerUpdateInventory"; - } | { - /** - * @generated from field: NTALT.ServerPlayerUpdateInventory s_player_update_inventory = 6; - */ - value: ServerPlayerUpdateInventory; - case: "sPlayerUpdateInventory"; - } | { - /** - * @generated from field: NTALT.ClientHostItemBank c_host_item_bank = 7; - */ - value: ClientHostItemBank; - case: "cHostItemBank"; - } | { - /** - * @generated from field: NTALT.ServerHostItemBank s_host_item_bank = 8; - */ - value: ServerHostItemBank; - case: "sHostItemBank"; - } | { - /** - * @generated from field: NTALT.ClientHostUserTake c_host_user_take = 9; - */ - value: ClientHostUserTake; - case: "cHostUserTake"; - } | { - /** - * @generated from field: NTALT.ServerHostUserTake s_host_user_take = 10; - */ - value: ServerHostUserTake; - case: "sHostUserTake"; - } | { - /** - * @generated from field: NTALT.ClientHostUserTakeGold c_host_user_take_gold = 11; - */ - value: ClientHostUserTakeGold; - case: "cHostUserTakeGold"; - } | { - /** - * @generated from field: NTALT.ServerHostUserTakeGold s_host_user_take_gold = 12; - */ - value: ServerHostUserTakeGold; - case: "sHostUserTakeGold"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddGold c_player_add_gold = 13; - */ - value: ClientPlayerAddGold; - case: "cPlayerAddGold"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddGold s_player_add_gold = 14; - */ - value: ServerPlayerAddGold; - case: "sPlayerAddGold"; - } | { - /** - * @generated from field: NTALT.ClientPlayerTakeGold c_player_take_gold = 15; - */ - value: ClientPlayerTakeGold; - case: "cPlayerTakeGold"; - } | { - /** - * @generated from field: NTALT.ServerPlayerTakeGold s_player_take_gold = 16; - */ - value: ServerPlayerTakeGold; - case: "sPlayerTakeGold"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem c_player_add_item = 17; - */ - value: ClientPlayerAddItem; - case: "cPlayerAddItem"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem s_player_add_item = 18; - */ - value: ServerPlayerAddItem; - case: "sPlayerAddItem"; - } | { - /** - * @generated from field: NTALT.ClientPlayerTakeItem c_player_take_item = 19; - */ - value: ClientPlayerTakeItem; - case: "cPlayerTakeItem"; - } | { - /** - * @generated from field: NTALT.ServerPlayerTakeItem s_player_take_item = 20; - */ - value: ServerPlayerTakeItem; - case: "sPlayerTakeItem"; - } | { - /** - * @generated from field: NTALT.ClientPlayerPickup c_player_pickup = 21; - */ - value: ClientPlayerPickup; - case: "cPlayerPickup"; - } | { - /** - * @generated from field: NTALT.ServerPlayerPickup s_player_pickup = 22; - */ - value: ServerPlayerPickup; - case: "sPlayerPickup"; - } | { - /** - * @generated from field: NTALT.ClientNemesisAbility c_nemesis_ability = 23; - */ - value: ClientNemesisAbility; - case: "cNemesisAbility"; - } | { - /** - * @generated from field: NTALT.ServerNemesisAbility s_nemesis_ability = 24; - */ - value: ServerNemesisAbility; - case: "sNemesisAbility"; - } | { - /** - * @generated from field: NTALT.ClientNemesisPickupItem c_nemesis_pickup_item = 25; - */ - value: ClientNemesisPickupItem; - case: "cNemesisPickupItem"; - } | { - /** - * @generated from field: NTALT.ServerNemesisPickupItem s_nemesis_pickup_item = 26; - */ - value: ServerNemesisPickupItem; - case: "sNemesisPickupItem"; - } | { - /** - * @generated from field: NTALT.ClientChat c_chat = 27; - */ - value: ClientChat; - case: "cChat"; - } | { - /** - * @generated from field: NTALT.ServerChat s_chat = 28; - */ - value: ServerChat; - case: "sChat"; - } | { - /** - * @generated from field: NTALT.ClientPlayerDeath c_player_death = 29; - */ - value: ClientPlayerDeath; - case: "cPlayerDeath"; - } | { - /** - * @generated from field: NTALT.ServerPlayerDeath s_player_death = 30; - */ - value: ServerPlayerDeath; - case: "sPlayerDeath"; - } | { - /** - * @generated from field: NTALT.ClientPlayerNewGamePlus c_player_new_game_plus = 31; - */ - value: ClientPlayerNewGamePlus; - case: "cPlayerNewGamePlus"; - } | { - /** - * @generated from field: NTALT.ServerPlayerNewGamePlus s_player_new_game_plus = 32; - */ - value: ServerPlayerNewGamePlus; - case: "sPlayerNewGamePlus"; - } | { - /** - * @generated from field: NTALT.ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - */ - value: ClientPlayerSecretHourglass; - case: "cPlayerSecretHourglass"; - } | { - /** - * @generated from field: NTALT.ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - */ - value: ServerPlayerSecretHourglass; - case: "sPlayerSecretHourglass"; - } | { - /** - * @generated from field: NTALT.ClientCustomModEvent c_custom_mod_event = 35; - */ - value: ClientCustomModEvent; - case: "cCustomModEvent"; - } | { - /** - * @generated from field: NTALT.ServerCustomModEvent s_custom_mod_event = 36; - */ - value: ServerCustomModEvent; - case: "sCustomModEvent"; - } | { - /** - * @generated from field: NTALT.ClientRespawnPenalty c_respawn_penalty = 37; - */ - value: ClientRespawnPenalty; - case: "cRespawnPenalty"; - } | { - /** - * @generated from field: NTALT.ServerRespawnPenalty s_respawn_penalty = 38; - */ - value: ServerRespawnPenalty; - case: "sRespawnPenalty"; - } | { - /** - * @generated from field: NTALT.ClientAngerySteve c_angery_steve = 39; - */ - value: ClientAngerySteve; - case: "cAngerySteve"; - } | { - /** - * @generated from field: NTALT.ServerAngerySteve s_angery_steve = 40; - */ - value: ServerAngerySteve; - case: "sAngerySteve"; - } | { - /** - * @generated from field: NTALT.ServerStatsUpdate s_stat_update = 42; - */ - value: ServerStatsUpdate; - case: "sStatUpdate"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.GameAction"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GameAction; - - static fromJson(jsonValue: JsonValue, options?: Partial): GameAction; - - static fromJsonString(jsonString: string, options?: Partial): GameAction; - - static equals(a: GameAction | PlainMessage | undefined, b: GameAction | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.PlayerFrame - */ -export declare class PlayerFrame extends Message { - /** - * @generated from field: optional float x = 1; - */ - x?: number; - - /** - * @generated from field: optional float y = 2; - */ - y?: number; - - /** - * @generated from field: optional float arm_r = 3; - */ - armR?: number; - - /** - * @generated from field: optional float arm_scale_y = 4; - */ - armScaleY?: number; - - /** - * @generated from field: optional float scale_x = 5; - */ - scaleX?: number; - - /** - * @generated from field: optional int32 anim = 6; - */ - anim?: number; - - /** - * @generated from field: optional int32 held = 7; - */ - held?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.PlayerFrame"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerFrame; - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerFrame; - - static fromJsonString(jsonString: string, options?: Partial): PlayerFrame; - - static equals(a: PlayerFrame | PlainMessage | undefined, b: PlayerFrame | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.PlayerMove - */ -export declare class PlayerMove extends Message { - /** - * @generated from field: repeated NTALT.PlayerFrame frames = 1; - */ - frames: PlayerFrame[]; - - /** - * @generated from field: string user_id = 15; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.PlayerMove"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerMove; - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerMove; - - static fromJsonString(jsonString: string, options?: Partial): PlayerMove; - - static equals(a: PlayerMove | PlainMessage | undefined, b: PlayerMove | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.PlayerPosition - */ -export declare class PlayerPosition extends Message { - /** - * @generated from field: NTALT.PlayerFrame frame = 1; - */ - frame?: PlayerFrame; - - /** - * @generated from field: string user_id = 15; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.PlayerPosition"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerPosition; - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerPosition; - - static fromJsonString(jsonString: string, options?: Partial): PlayerPosition; - - static equals(a: PlayerPosition | PlainMessage | undefined, b: PlayerPosition | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerUpdate - */ -export declare class ClientPlayerUpdate extends Message { - /** - * @generated from field: optional float cur_hp = 1; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 2; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 3; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 4; - */ - sampo?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdate; - - static equals(a: ClientPlayerUpdate | PlainMessage | undefined, b: ClientPlayerUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerUpdate - */ -export declare class ServerPlayerUpdate extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: optional float cur_hp = 2; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 3; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 4; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 5; - */ - sampo?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdate; - - static equals(a: ServerPlayerUpdate | PlainMessage | undefined, b: ServerPlayerUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory - */ -export declare class ClientPlayerUpdateInventory extends Message { - /** - * @generated from field: repeated NTALT.ClientPlayerUpdateInventory.InventoryWand wands = 1; - */ - wands: ClientPlayerUpdateInventory_InventoryWand[]; - - /** - * @generated from field: repeated NTALT.ClientPlayerUpdateInventory.InventoryItem items = 2; - */ - items: ClientPlayerUpdateInventory_InventoryItem[]; - - /** - * @generated from field: repeated NTALT.ClientPlayerUpdateInventory.InventorySpell spells = 3; - */ - spells: ClientPlayerUpdateInventory_InventorySpell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory; - - static equals(a: ClientPlayerUpdateInventory | PlainMessage | undefined, b: ClientPlayerUpdateInventory | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventoryWand - */ -export declare class ClientPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NTALT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryWand; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryWand; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryWand; - - static equals(a: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventoryItem - */ -export declare class ClientPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 3; - */ - index: number; - - /** - * @generated from field: NTALT.Item item = 4; - */ - item?: Item; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryItem; - - static equals(a: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventorySpell - */ -export declare class ClientPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NTALT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventorySpell; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventorySpell; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventorySpell; - - static equals(a: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory - */ -export declare class ServerPlayerUpdateInventory extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: repeated NTALT.ServerPlayerUpdateInventory.InventoryWand wands = 2; - */ - wands: ServerPlayerUpdateInventory_InventoryWand[]; - - /** - * @generated from field: repeated NTALT.ServerPlayerUpdateInventory.InventoryItem items = 3; - */ - items: ServerPlayerUpdateInventory_InventoryItem[]; - - /** - * @generated from field: repeated NTALT.ServerPlayerUpdateInventory.InventorySpell spells = 4; - */ - spells: ServerPlayerUpdateInventory_InventorySpell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory; - - static equals(a: ServerPlayerUpdateInventory | PlainMessage | undefined, b: ServerPlayerUpdateInventory | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventoryWand - */ -export declare class ServerPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NTALT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryWand; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryWand; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryWand; - - static equals(a: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventoryItem - */ -export declare class ServerPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NTALT.Item item = 2; - */ - item?: Item; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryItem; - - static equals(a: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventorySpell - */ -export declare class ServerPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NTALT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventorySpell; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventorySpell; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventorySpell; - - static equals(a: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientHostItemBank - */ -export declare class ClientHostItemBank extends Message { - /** - * @generated from field: repeated NTALT.Wand wands = 1; - */ - wands: Wand[]; - - /** - * @generated from field: repeated NTALT.Spell spells = 2; - */ - spells: Spell[]; - - /** - * @generated from field: repeated NTALT.Item items = 3; - */ - items: Item[]; - - /** - * @generated from field: uint32 gold = 4; - */ - gold: number; - - /** - * @generated from field: repeated NTALT.EntityItem objects = 5; - */ - objects: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientHostItemBank"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostItemBank; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostItemBank; - - static fromJsonString(jsonString: string, options?: Partial): ClientHostItemBank; - - static equals(a: ClientHostItemBank | PlainMessage | undefined, b: ClientHostItemBank | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerHostItemBank - */ -export declare class ServerHostItemBank extends Message { - /** - * @generated from field: repeated NTALT.Wand wands = 1; - */ - wands: Wand[]; - - /** - * @generated from field: repeated NTALT.Spell spells = 2; - */ - spells: Spell[]; - - /** - * @generated from field: repeated NTALT.Item items = 3; - */ - items: Item[]; - - /** - * @generated from field: uint32 gold = 4; - */ - gold: number; - - /** - * @generated from field: repeated NTALT.EntityItem objects = 5; - */ - objects: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerHostItemBank"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostItemBank; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostItemBank; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostItemBank; - - static equals(a: ServerHostItemBank | PlainMessage | undefined, b: ServerHostItemBank | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientHostUserTake - */ -export declare class ClientHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string id = 2; - */ - id: string; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientHostUserTake"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTake; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTake; - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTake; - - static equals(a: ClientHostUserTake | PlainMessage | undefined, b: ClientHostUserTake | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerHostUserTake - */ -export declare class ServerHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string id = 2; - */ - id: string; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerHostUserTake"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTake; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTake; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTake; - - static equals(a: ServerHostUserTake | PlainMessage | undefined, b: ServerHostUserTake | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientHostUserTakeGold - */ -export declare class ClientHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientHostUserTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTakeGold; - - static equals(a: ClientHostUserTakeGold | PlainMessage | undefined, b: ClientHostUserTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerHostUserTakeGold - */ -export declare class ServerHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerHostUserTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTakeGold; - - static equals(a: ServerHostUserTakeGold | PlainMessage | undefined, b: ServerHostUserTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerAddGold - */ -export declare class ClientPlayerAddGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerAddGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddGold; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddGold; - - static equals(a: ClientPlayerAddGold | PlainMessage | undefined, b: ClientPlayerAddGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerAddGold - */ -export declare class ServerPlayerAddGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerAddGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddGold; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddGold; - - static equals(a: ServerPlayerAddGold | PlainMessage | undefined, b: ServerPlayerAddGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerTakeGold - */ -export declare class ClientPlayerTakeGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeGold; - - static equals(a: ClientPlayerTakeGold | PlainMessage | undefined, b: ClientPlayerTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerTakeGold - */ -export declare class ServerPlayerTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeGold; - - static equals(a: ServerPlayerTakeGold | PlainMessage | undefined, b: ServerPlayerTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerAddItem - */ -export declare class ClientPlayerAddItem extends Message { - /** - * @generated from oneof NTALT.ClientPlayerAddItem.item - */ - item: { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Spells spells = 1; - */ - value: ClientPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Wands wands = 2; - */ - value: ClientPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Items flasks = 3; - */ - value: ClientPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Entities objects = 4; - */ - value: ClientPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem; - - static equals(a: ClientPlayerAddItem | PlainMessage | undefined, b: ClientPlayerAddItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Spells - */ -export declare class ClientPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NTALT.Spell list = 1; - */ - list: Spell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Spells"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Spells; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Spells; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Spells; - - static equals(a: ClientPlayerAddItem_Spells | PlainMessage | undefined, b: ClientPlayerAddItem_Spells | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Wands - */ -export declare class ClientPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NTALT.Wand list = 1; - */ - list: Wand[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Wands"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Wands; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Wands; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Wands; - - static equals(a: ClientPlayerAddItem_Wands | PlainMessage | undefined, b: ClientPlayerAddItem_Wands | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Items - */ -export declare class ClientPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NTALT.Item list = 1; - */ - list: Item[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Items"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Items; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Items; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Items; - - static equals(a: ClientPlayerAddItem_Items | PlainMessage | undefined, b: ClientPlayerAddItem_Items | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Entities - */ -export declare class ClientPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NTALT.EntityItem list = 1; - */ - list: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Entities"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Entities; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Entities; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Entities; - - static equals(a: ClientPlayerAddItem_Entities | PlainMessage | undefined, b: ClientPlayerAddItem_Entities | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerAddItem - */ -export declare class ServerPlayerAddItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from oneof NTALT.ServerPlayerAddItem.item - */ - item: { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Spells spells = 2; - */ - value: ServerPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Wands wands = 3; - */ - value: ServerPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Items flasks = 4; - */ - value: ServerPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Entities objects = 5; - */ - value: ServerPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem; - - static equals(a: ServerPlayerAddItem | PlainMessage | undefined, b: ServerPlayerAddItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Spells - */ -export declare class ServerPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NTALT.Spell list = 1; - */ - list: Spell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Spells"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Spells; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Spells; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Spells; - - static equals(a: ServerPlayerAddItem_Spells | PlainMessage | undefined, b: ServerPlayerAddItem_Spells | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Wands - */ -export declare class ServerPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NTALT.Wand list = 2; - */ - list: Wand[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Wands"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Wands; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Wands; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Wands; - - static equals(a: ServerPlayerAddItem_Wands | PlainMessage | undefined, b: ServerPlayerAddItem_Wands | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Items - */ -export declare class ServerPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NTALT.Item list = 3; - */ - list: Item[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Items"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Items; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Items; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Items; - - static equals(a: ServerPlayerAddItem_Items | PlainMessage | undefined, b: ServerPlayerAddItem_Items | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Entities - */ -export declare class ServerPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NTALT.EntityItem list = 4; - */ - list: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Entities"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Entities; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Entities; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Entities; - - static equals(a: ServerPlayerAddItem_Entities | PlainMessage | undefined, b: ServerPlayerAddItem_Entities | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerTakeItem - */ -export declare class ClientPlayerTakeItem extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerTakeItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeItem; - - static equals(a: ClientPlayerTakeItem | PlainMessage | undefined, b: ClientPlayerTakeItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerTakeItem - */ -export declare class ServerPlayerTakeItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string id = 2; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerTakeItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeItem; - - static equals(a: ServerPlayerTakeItem | PlainMessage | undefined, b: ServerPlayerTakeItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientChat - */ -export declare class ClientChat extends Message { - /** - * @generated from field: string message = 1; - */ - message: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientChat"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientChat; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientChat; - - static fromJsonString(jsonString: string, options?: Partial): ClientChat; - - static equals(a: ClientChat | PlainMessage | undefined, b: ClientChat | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerChat - */ -export declare class ServerChat extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string user_id = 2; - */ - userId: string; - - /** - * @generated from field: string name = 3; - */ - name: string; - - /** - * @generated from field: string message = 4; - */ - message: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerChat"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerChat; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerChat; - - static fromJsonString(jsonString: string, options?: Partial): ServerChat; - - static equals(a: ServerChat | PlainMessage | undefined, b: ServerChat | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerStatsUpdate - */ -export declare class ServerStatsUpdate extends Message { - /** - * @generated from field: string data = 1; - */ - data: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerStatsUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerStatsUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerStatsUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ServerStatsUpdate; - - static equals(a: ServerStatsUpdate | PlainMessage | undefined, b: ServerStatsUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerPickup - */ -export declare class ClientPlayerPickup extends Message { - /** - * @generated from oneof NTALT.ClientPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NTALT.ClientPlayerPickup.HeartPickup heart = 1; - */ - value: ClientPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NTALT.ClientPlayerPickup.OrbPickup orb = 2; - */ - value: ClientPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup; - - static equals(a: ClientPlayerPickup | PlainMessage | undefined, b: ClientPlayerPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerPickup.HeartPickup - */ -export declare class ClientPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerPickup.HeartPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_HeartPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_HeartPickup; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_HeartPickup; - - static equals(a: ClientPlayerPickup_HeartPickup | PlainMessage | undefined, b: ClientPlayerPickup_HeartPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerPickup.OrbPickup - */ -export declare class ClientPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerPickup.OrbPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_OrbPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_OrbPickup; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_OrbPickup; - - static equals(a: ClientPlayerPickup_OrbPickup | PlainMessage | undefined, b: ClientPlayerPickup_OrbPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerPickup - */ -export declare class ServerPlayerPickup extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from oneof NTALT.ServerPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NTALT.ServerPlayerPickup.HeartPickup heart = 2; - */ - value: ServerPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NTALT.ServerPlayerPickup.OrbPickup orb = 3; - */ - value: ServerPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup; - - static equals(a: ServerPlayerPickup | PlainMessage | undefined, b: ServerPlayerPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerPickup.HeartPickup - */ -export declare class ServerPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerPickup.HeartPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_HeartPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_HeartPickup; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_HeartPickup; - - static equals(a: ServerPlayerPickup_HeartPickup | PlainMessage | undefined, b: ServerPlayerPickup_HeartPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerPickup.OrbPickup - */ -export declare class ServerPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerPickup.OrbPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_OrbPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_OrbPickup; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_OrbPickup; - - static equals(a: ServerPlayerPickup_OrbPickup | PlainMessage | undefined, b: ServerPlayerPickup_OrbPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientNemesisPickupItem - */ -export declare class ClientNemesisPickupItem extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientNemesisPickupItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisPickupItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisPickupItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisPickupItem; - - static equals(a: ClientNemesisPickupItem | PlainMessage | undefined, b: ClientNemesisPickupItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerNemesisPickupItem - */ -export declare class ServerNemesisPickupItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string game_id = 2; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerNemesisPickupItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisPickupItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisPickupItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisPickupItem; - - static equals(a: ServerNemesisPickupItem | PlainMessage | undefined, b: ServerNemesisPickupItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientNemesisAbility - */ -export declare class ClientNemesisAbility extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientNemesisAbility"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisAbility; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisAbility; - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisAbility; - - static equals(a: ClientNemesisAbility | PlainMessage | undefined, b: ClientNemesisAbility | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerNemesisAbility - */ -export declare class ServerNemesisAbility extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string game_id = 2; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerNemesisAbility"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisAbility; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisAbility; - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisAbility; - - static equals(a: ServerNemesisAbility | PlainMessage | undefined, b: ServerNemesisAbility | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerDeath - */ -export declare class ClientPlayerDeath extends Message { - /** - * @generated from field: bool is_win = 1; - */ - isWin: boolean; - - /** - * @generated from field: optional uint32 game_time = 2; - */ - gameTime?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerDeath"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerDeath; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerDeath; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerDeath; - - static equals(a: ClientPlayerDeath | PlainMessage | undefined, b: ClientPlayerDeath | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerDeath - */ -export declare class ServerPlayerDeath extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: bool is_win = 2; - */ - isWin: boolean; - - /** - * @generated from field: optional uint32 game_time = 3; - */ - gameTime?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerDeath"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerDeath; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerDeath; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerDeath; - - static equals(a: ServerPlayerDeath | PlainMessage | undefined, b: ServerPlayerDeath | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerNewGamePlus - */ -export declare class ClientPlayerNewGamePlus extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerNewGamePlus"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerNewGamePlus; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerNewGamePlus; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerNewGamePlus; - - static equals(a: ClientPlayerNewGamePlus | PlainMessage | undefined, b: ClientPlayerNewGamePlus | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerNewGamePlus - */ -export declare class ServerPlayerNewGamePlus extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerNewGamePlus"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerNewGamePlus; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerNewGamePlus; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerNewGamePlus; - - static equals(a: ServerPlayerNewGamePlus | PlainMessage | undefined, b: ServerPlayerNewGamePlus | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientPlayerSecretHourglass - */ -export declare class ClientPlayerSecretHourglass extends Message { - /** - * @generated from field: string material = 1; - */ - material: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientPlayerSecretHourglass"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerSecretHourglass; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerSecretHourglass; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerSecretHourglass; - - static equals(a: ClientPlayerSecretHourglass | PlainMessage | undefined, b: ClientPlayerSecretHourglass | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerPlayerSecretHourglass - */ -export declare class ServerPlayerSecretHourglass extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string material = 2; - */ - material: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerPlayerSecretHourglass"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerSecretHourglass; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerSecretHourglass; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerSecretHourglass; - - static equals(a: ServerPlayerSecretHourglass | PlainMessage | undefined, b: ServerPlayerSecretHourglass | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientCustomModEvent - */ -export declare class ClientCustomModEvent extends Message { - /** - * @generated from field: string payload = 1; - */ - payload: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientCustomModEvent"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientCustomModEvent; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientCustomModEvent; - - static fromJsonString(jsonString: string, options?: Partial): ClientCustomModEvent; - - static equals(a: ClientCustomModEvent | PlainMessage | undefined, b: ClientCustomModEvent | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerCustomModEvent - */ -export declare class ServerCustomModEvent extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string payload = 2; - */ - payload: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerCustomModEvent"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerCustomModEvent; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerCustomModEvent; - - static fromJsonString(jsonString: string, options?: Partial): ServerCustomModEvent; - - static equals(a: ServerCustomModEvent | PlainMessage | undefined, b: ServerCustomModEvent | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRespawnPenalty - */ -export declare class ClientRespawnPenalty extends Message { - /** - * @generated from field: uint32 deaths = 1; - */ - deaths: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRespawnPenalty"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRespawnPenalty; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRespawnPenalty; - - static fromJsonString(jsonString: string, options?: Partial): ClientRespawnPenalty; - - static equals(a: ClientRespawnPenalty | PlainMessage | undefined, b: ClientRespawnPenalty | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRespawnPenalty - */ -export declare class ServerRespawnPenalty extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 deaths = 2; - */ - deaths: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRespawnPenalty"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRespawnPenalty; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRespawnPenalty; - - static fromJsonString(jsonString: string, options?: Partial): ServerRespawnPenalty; - - static equals(a: ServerRespawnPenalty | PlainMessage | undefined, b: ServerRespawnPenalty | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientAngerySteve - */ -export declare class ClientAngerySteve extends Message { - /** - * @generated from field: bool idk = 1; - */ - idk: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientAngerySteve"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientAngerySteve; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientAngerySteve; - - static fromJsonString(jsonString: string, options?: Partial): ClientAngerySteve; - - static equals(a: ClientAngerySteve | PlainMessage | undefined, b: ClientAngerySteve | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerAngerySteve - */ -export declare class ServerAngerySteve extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerAngerySteve"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerAngerySteve; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerAngerySteve; - - static fromJsonString(jsonString: string, options?: Partial): ServerAngerySteve; - - static equals(a: ServerAngerySteve | PlainMessage | undefined, b: ServerAngerySteve | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.Wand - */ -export declare class Wand extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: NTALT.Wand.WandStats stats = 2; - */ - stats?: Wand_WandStats; - - /** - * @generated from field: repeated NTALT.Spell always_cast = 3; - */ - alwaysCast: Spell[]; - - /** - * @generated from field: repeated NTALT.Spell deck = 4; - */ - deck: Spell[]; - - /** - * @generated from field: optional string sent_by = 5; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 6; - */ - contributedBy?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Wand"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand; - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand; - - static fromJsonString(jsonString: string, options?: Partial): Wand; - - static equals(a: Wand | PlainMessage | undefined, b: Wand | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.Wand.WandStats - */ -export declare class Wand_WandStats extends Message { - /** - * @generated from field: string sprite = 1; - */ - sprite: string; - - /** - * @generated from field: bool named = 2; - */ - named: boolean; - - /** - * @generated from field: string ui_name = 3; - */ - uiName: string; - - /** - * @generated from field: float mana_max = 4; - */ - manaMax: number; - - /** - * @generated from field: float mana_charge_speed = 5; - */ - manaChargeSpeed: number; - - /** - * @generated from field: int32 reload_time = 6; - */ - reloadTime: number; - - /** - * @generated from field: uint32 actions_per_round = 7; - */ - actionsPerRound: number; - - /** - * @generated from field: uint32 deck_capacity = 8; - */ - deckCapacity: number; - - /** - * @generated from field: bool shuffle_deck_when_empty = 9; - */ - shuffleDeckWhenEmpty: boolean; - - /** - * @generated from field: float spread_degrees = 10; - */ - spreadDegrees: number; - - /** - * @generated from field: float speed_multiplier = 11; - */ - speedMultiplier: number; - - /** - * @generated from field: int32 fire_rate_wait = 12; - */ - fireRateWait: number; - - /** - * @generated from field: float tip_x = 13; - */ - tipX: number; - - /** - * @generated from field: float tip_y = 14; - */ - tipY: number; - - /** - * @generated from field: float grip_x = 15; - */ - gripX: number; - - /** - * @generated from field: float grip_y = 16; - */ - gripY: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Wand.WandStats"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand_WandStats; - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand_WandStats; - - static fromJsonString(jsonString: string, options?: Partial): Wand_WandStats; - - static equals(a: Wand_WandStats | PlainMessage | undefined, b: Wand_WandStats | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.Spell - */ -export declare class Spell extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string game_id = 2; - */ - gameId: string; - - /** - * @generated from field: optional string sent_by = 3; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 4; - */ - contributedBy?: string; - - /** - * @generated from field: int32 uses_remaining = 5; - */ - usesRemaining: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Spell"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Spell; - - static fromJson(jsonValue: JsonValue, options?: Partial): Spell; - - static fromJsonString(jsonString: string, options?: Partial): Spell; - - static equals(a: Spell | PlainMessage | undefined, b: Spell | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.Item - */ -export declare class Item extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: NTALT.Item.Color color = 2; - */ - color?: Item_Color; - - /** - * @generated from field: repeated NTALT.Item.Material content = 3; - */ - content: Item_Material[]; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 5; - */ - contributedBy?: string; - - /** - * @generated from field: bool is_chest = 6 [deprecated = true]; - * @deprecated - */ - isChest: boolean; - - /** - * @generated from field: string item_type = 7; - */ - itemType: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Item"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Item; - - static fromJson(jsonValue: JsonValue, options?: Partial): Item; - - static fromJsonString(jsonString: string, options?: Partial): Item; - - static equals(a: Item | PlainMessage | undefined, b: Item | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.Item.Color - */ -export declare class Item_Color extends Message { - /** - * @generated from field: float r = 1; - */ - r: number; - - /** - * @generated from field: float g = 2; - */ - g: number; - - /** - * @generated from field: float b = 3; - */ - b: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Item.Color"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Color; - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Color; - - static fromJsonString(jsonString: string, options?: Partial): Item_Color; - - static equals(a: Item_Color | PlainMessage | undefined, b: Item_Color | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.Item.Material - */ -export declare class Item_Material extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id: number; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.Item.Material"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Material; - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Material; - - static fromJsonString(jsonString: string, options?: Partial): Item_Material; - - static equals(a: Item_Material | PlainMessage | undefined, b: Item_Material | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.EntityItem - */ -export declare class EntityItem extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string path = 2; - */ - path: string; - - /** - * @generated from field: string sprite = 3; - */ - sprite: string; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.EntityItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): EntityItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): EntityItem; - - static fromJsonString(jsonString: string, options?: Partial): EntityItem; - - static equals(a: EntityItem | PlainMessage | undefined, b: EntityItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.LobbyAction - */ -export declare class LobbyAction extends Message { - /** - * @generated from oneof NTALT.LobbyAction.action - */ - action: { - /** - * @generated from field: NTALT.ClientRoomCreate c_room_create = 1; - */ - value: ClientRoomCreate; - case: "cRoomCreate"; - } | { - /** - * @generated from field: NTALT.ServerRoomCreated s_room_created = 2; - */ - value: ServerRoomCreated; - case: "sRoomCreated"; - } | { - /** - * @generated from field: NTALT.ServerRoomCreateFailed s_room_create_failed = 3; - */ - value: ServerRoomCreateFailed; - case: "sRoomCreateFailed"; - } | { - /** - * @generated from field: NTALT.ClientRoomUpdate c_room_update = 4; - */ - value: ClientRoomUpdate; - case: "cRoomUpdate"; - } | { - /** - * @generated from field: NTALT.ServerRoomUpdated s_room_updated = 5; - */ - value: ServerRoomUpdated; - case: "sRoomUpdated"; - } | { - /** - * @generated from field: NTALT.ServerRoomUpdateFailed s_room_update_failed = 6; - */ - value: ServerRoomUpdateFailed; - case: "sRoomUpdateFailed"; - } | { - /** - * @generated from field: NTALT.ClientRoomFlagsUpdate c_room_flags_update = 7; - */ - value: ClientRoomFlagsUpdate; - case: "cRoomFlagsUpdate"; - } | { - /** - * @generated from field: NTALT.ServerRoomFlagsUpdated s_room_flags_updated = 8; - */ - value: ServerRoomFlagsUpdated; - case: "sRoomFlagsUpdated"; - } | { - /** - * @generated from field: NTALT.ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - */ - value: ServerRoomFlagsUpdateFailed; - case: "sRoomFlagsUpdateFailed"; - } | { - /** - * @generated from field: NTALT.ClientRoomDelete c_room_delete = 10; - */ - value: ClientRoomDelete; - case: "cRoomDelete"; - } | { - /** - * @generated from field: NTALT.ServerRoomDeleted s_room_deleted = 11; - */ - value: ServerRoomDeleted; - case: "sRoomDeleted"; - } | { - /** - * @generated from field: NTALT.ClientJoinRoom c_join_room = 12; - */ - value: ClientJoinRoom; - case: "cJoinRoom"; - } | { - /** - * @generated from field: NTALT.ServerJoinRoomSuccess s_join_room_success = 13; - */ - value: ServerJoinRoomSuccess; - case: "sJoinRoomSuccess"; - } | { - /** - * @generated from field: NTALT.ServerJoinRoomFailed s_join_room_failed = 14; - */ - value: ServerJoinRoomFailed; - case: "sJoinRoomFailed"; - } | { - /** - * @generated from field: NTALT.ServerUserJoinedRoom s_user_joined_room = 15; - */ - value: ServerUserJoinedRoom; - case: "sUserJoinedRoom"; - } | { - /** - * @generated from field: NTALT.ClientLeaveRoom c_leave_room = 16; - */ - value: ClientLeaveRoom; - case: "cLeaveRoom"; - } | { - /** - * @generated from field: NTALT.ServerUserLeftRoom s_user_left_room = 17; - */ - value: ServerUserLeftRoom; - case: "sUserLeftRoom"; - } | { - /** - * @generated from field: NTALT.ClientKickUser c_kick_user = 18; - */ - value: ClientKickUser; - case: "cKickUser"; - } | { - /** - * @generated from field: NTALT.ServerUserKicked s_user_kicked = 19; - */ - value: ServerUserKicked; - case: "sUserKicked"; - } | { - /** - * @generated from field: NTALT.ClientBanUser c_ban_user = 20; - */ - value: ClientBanUser; - case: "cBanUser"; - } | { - /** - * @generated from field: NTALT.ServerUserBanned s_user_banned = 21; - */ - value: ServerUserBanned; - case: "sUserBanned"; - } | { - /** - * @generated from field: NTALT.ClientReadyState c_ready_state = 22; - */ - value: ClientReadyState; - case: "cReadyState"; - } | { - /** - * @generated from field: NTALT.ServerUserReadyState s_user_ready_state = 23; - */ - value: ServerUserReadyState; - case: "sUserReadyState"; - } | { - /** - * @generated from field: NTALT.ClientStartRun c_start_run = 24; - */ - value: ClientStartRun; - case: "cStartRun"; - } | { - /** - * @generated from field: NTALT.ServerHostStart s_host_start = 25; - */ - value: ServerHostStart; - case: "sHostStart"; - } | { - /** - * @generated from field: NTALT.ClientRequestRoomList c_request_room_list = 27; - */ - value: ClientRequestRoomList; - case: "cRequestRoomList"; - } | { - /** - * @generated from field: NTALT.ServerRoomList s_room_list = 28; - */ - value: ServerRoomList; - case: "sRoomList"; - } | { - /** - * @generated from field: NTALT.ServerDisconnected s_disconnected = 31; - */ - value: ServerDisconnected; - case: "sDisconnected"; - } | { - /** - * @generated from field: NTALT.ServerRoomAddToList s_room_add_to_list = 32; - */ - value: ServerRoomAddToList; - case: "sRoomAddToList"; - } | { - /** - * @generated from field: NTALT.ClientRunOver c_run_over = 33; - */ - value: ClientRunOver; - case: "cRunOver"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.LobbyAction"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): LobbyAction; - - static fromJson(jsonValue: JsonValue, options?: Partial): LobbyAction; - - static fromJsonString(jsonString: string, options?: Partial): LobbyAction; - - static equals(a: LobbyAction | PlainMessage | undefined, b: LobbyAction | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRunOver - */ -export declare class ClientRunOver extends Message { - /** - * @generated from field: optional bool idk = 1; - */ - idk?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRunOver"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRunOver; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRunOver; - - static fromJsonString(jsonString: string, options?: Partial): ClientRunOver; - - static equals(a: ClientRunOver | PlainMessage | undefined, b: ClientRunOver | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerDisconnected - */ -export declare class ServerDisconnected extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerDisconnected"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerDisconnected; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerDisconnected; - - static fromJsonString(jsonString: string, options?: Partial): ServerDisconnected; - - static equals(a: ServerDisconnected | PlainMessage | undefined, b: ServerDisconnected | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRoomDelete - */ -export declare class ClientRoomDelete extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRoomDelete"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomDelete; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomDelete; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomDelete; - - static equals(a: ClientRoomDelete | PlainMessage | undefined, b: ClientRoomDelete | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomDeleted - */ -export declare class ServerRoomDeleted extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomDeleted"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomDeleted; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomDeleted; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomDeleted; - - static equals(a: ServerRoomDeleted | PlainMessage | undefined, b: ServerRoomDeleted | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRoomCreate - */ -export declare class ClientRoomCreate extends Message { - /** - * @generated from field: string name = 1; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 2; - */ - gamemode: number; - - /** - * @generated from field: uint32 max_users = 3; - */ - maxUsers: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRoomCreate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomCreate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomCreate; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomCreate; - - static equals(a: ClientRoomCreate | PlainMessage | undefined, b: ClientRoomCreate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomCreated - */ -export declare class ServerRoomCreated extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers: number; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked: boolean; - - /** - * @generated from field: repeated NTALT.ServerRoomCreated.User users = 7; - */ - users: ServerRoomCreated_User[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomCreated"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated; - - static equals(a: ServerRoomCreated | PlainMessage | undefined, b: ServerRoomCreated | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomCreated.User - */ -export declare class ServerRoomCreated_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: bool ready = 3; - */ - ready: boolean; - - /** - * @generated from field: bool owner = 4; - */ - owner: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomCreated.User"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated_User; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated_User; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated_User; - - static equals(a: ServerRoomCreated_User | PlainMessage | undefined, b: ServerRoomCreated_User | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomCreateFailed - */ -export declare class ServerRoomCreateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomCreateFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreateFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreateFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreateFailed; - - static equals(a: ServerRoomCreateFailed | PlainMessage | undefined, b: ServerRoomCreateFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRoomUpdate - */ -export declare class ClientRoomUpdate extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRoomUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomUpdate; - - static equals(a: ClientRoomUpdate | PlainMessage | undefined, b: ClientRoomUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomUpdated - */ -export declare class ServerRoomUpdated extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomUpdated"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdated; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdated; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdated; - - static equals(a: ServerRoomUpdated | PlainMessage | undefined, b: ServerRoomUpdated | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomUpdateFailed - */ -export declare class ServerRoomUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomUpdateFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdateFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdateFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdateFailed; - - static equals(a: ServerRoomUpdateFailed | PlainMessage | undefined, b: ServerRoomUpdateFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRoomFlagsUpdate - */ -export declare class ClientRoomFlagsUpdate extends Message { - /** - * @generated from field: repeated NTALT.ClientRoomFlagsUpdate.GameFlag flags = 1; - */ - flags: ClientRoomFlagsUpdate_GameFlag[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRoomFlagsUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate; - - static equals(a: ClientRoomFlagsUpdate | PlainMessage | undefined, b: ClientRoomFlagsUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRoomFlagsUpdate.GameFlag - */ -export declare class ClientRoomFlagsUpdate_GameFlag extends Message { - /** - * TODO: This seems like a hack, please improve it - * - * @generated from field: string flag = 1; - */ - flag: string; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRoomFlagsUpdate.GameFlag"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate_GameFlag; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate_GameFlag; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate_GameFlag; - - static equals(a: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined, b: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomFlagsUpdated - */ -export declare class ServerRoomFlagsUpdated extends Message { - /** - * @generated from field: repeated NTALT.ServerRoomFlagsUpdated.GameFlag flags = 1; - */ - flags: ServerRoomFlagsUpdated_GameFlag[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomFlagsUpdated"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated; - - static equals(a: ServerRoomFlagsUpdated | PlainMessage | undefined, b: ServerRoomFlagsUpdated | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomFlagsUpdated.GameFlag - */ -export declare class ServerRoomFlagsUpdated_GameFlag extends Message { - /** - * @generated from field: string flag = 1; - */ - flag: string; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomFlagsUpdated.GameFlag"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated_GameFlag; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated_GameFlag; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated_GameFlag; - - static equals(a: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined, b: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomFlagsUpdateFailed - */ -export declare class ServerRoomFlagsUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomFlagsUpdateFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdateFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdateFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdateFailed; - - static equals(a: ServerRoomFlagsUpdateFailed | PlainMessage | undefined, b: ServerRoomFlagsUpdateFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientJoinRoom - */ -export declare class ClientJoinRoom extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: optional string password = 2; - */ - password?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientJoinRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientJoinRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientJoinRoom; - - static fromJsonString(jsonString: string, options?: Partial): ClientJoinRoom; - - static equals(a: ClientJoinRoom | PlainMessage | undefined, b: ClientJoinRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerJoinRoomSuccess - */ -export declare class ServerJoinRoomSuccess extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers: number; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked: boolean; - - /** - * @generated from field: repeated NTALT.ServerJoinRoomSuccess.User users = 7; - */ - users: ServerJoinRoomSuccess_User[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerJoinRoomSuccess"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess; - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess; - - static equals(a: ServerJoinRoomSuccess | PlainMessage | undefined, b: ServerJoinRoomSuccess | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerJoinRoomSuccess.User - */ -export declare class ServerJoinRoomSuccess_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: bool ready = 3; - */ - ready: boolean; - - /** - * @generated from field: bool owner = 4; - */ - owner: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerJoinRoomSuccess.User"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess_User; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess_User; - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess_User; - - static equals(a: ServerJoinRoomSuccess_User | PlainMessage | undefined, b: ServerJoinRoomSuccess_User | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerJoinRoomFailed - */ -export declare class ServerJoinRoomFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerJoinRoomFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomFailed; - - static equals(a: ServerJoinRoomFailed | PlainMessage | undefined, b: ServerJoinRoomFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerUserJoinedRoom - */ -export declare class ServerUserJoinedRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerUserJoinedRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserJoinedRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserJoinedRoom; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserJoinedRoom; - - static equals(a: ServerUserJoinedRoom | PlainMessage | undefined, b: ServerUserJoinedRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientLeaveRoom - */ -export declare class ClientLeaveRoom extends Message { - /** - * should be empty msg - * - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientLeaveRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientLeaveRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientLeaveRoom; - - static fromJsonString(jsonString: string, options?: Partial): ClientLeaveRoom; - - static equals(a: ClientLeaveRoom | PlainMessage | undefined, b: ClientLeaveRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerUserLeftRoom - */ -export declare class ServerUserLeftRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerUserLeftRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserLeftRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserLeftRoom; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserLeftRoom; - - static equals(a: ServerUserLeftRoom | PlainMessage | undefined, b: ServerUserLeftRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientKickUser - */ -export declare class ClientKickUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientKickUser"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientKickUser; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientKickUser; - - static fromJsonString(jsonString: string, options?: Partial): ClientKickUser; - - static equals(a: ClientKickUser | PlainMessage | undefined, b: ClientKickUser | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerUserKicked - */ -export declare class ServerUserKicked extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerUserKicked"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserKicked; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserKicked; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserKicked; - - static equals(a: ServerUserKicked | PlainMessage | undefined, b: ServerUserKicked | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientBanUser - */ -export declare class ClientBanUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientBanUser"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientBanUser; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientBanUser; - - static fromJsonString(jsonString: string, options?: Partial): ClientBanUser; - - static equals(a: ClientBanUser | PlainMessage | undefined, b: ClientBanUser | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerUserBanned - */ -export declare class ServerUserBanned extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerUserBanned"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserBanned; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserBanned; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserBanned; - - static equals(a: ServerUserBanned | PlainMessage | undefined, b: ServerUserBanned | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientReadyState - */ -export declare class ClientReadyState extends Message { - /** - * @generated from field: bool ready = 1; - */ - ready: boolean; - - /** - * @generated from field: optional string seed = 2; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 3; - */ - mods: string[]; - - /** - * @generated from field: optional string version = 4; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 5; - */ - beta?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientReadyState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientReadyState; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientReadyState; - - static fromJsonString(jsonString: string, options?: Partial): ClientReadyState; - - static equals(a: ClientReadyState | PlainMessage | undefined, b: ClientReadyState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerUserReadyState - */ -export declare class ServerUserReadyState extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: bool ready = 2; - */ - ready: boolean; - - /** - * @generated from field: optional string seed = 3; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 4; - */ - mods: string[]; - - /** - * @generated from field: optional string version = 5; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 6; - */ - beta?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerUserReadyState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserReadyState; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserReadyState; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserReadyState; - - static equals(a: ServerUserReadyState | PlainMessage | undefined, b: ServerUserReadyState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientStartRun - */ -export declare class ClientStartRun extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientStartRun"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientStartRun; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientStartRun; - - static fromJsonString(jsonString: string, options?: Partial): ClientStartRun; - - static equals(a: ClientStartRun | PlainMessage | undefined, b: ClientStartRun | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerHostStart - */ -export declare class ServerHostStart extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerHostStart"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostStart; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostStart; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostStart; - - static equals(a: ServerHostStart | PlainMessage | undefined, b: ServerHostStart | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ClientRequestRoomList - */ -export declare class ClientRequestRoomList extends Message { - /** - * @generated from field: uint32 page = 1; - */ - page: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ClientRequestRoomList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRequestRoomList; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRequestRoomList; - - static fromJsonString(jsonString: string, options?: Partial): ClientRequestRoomList; - - static equals(a: ClientRequestRoomList | PlainMessage | undefined, b: ClientRequestRoomList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomList - */ -export declare class ServerRoomList extends Message { - /** - * @generated from field: repeated NTALT.ServerRoomList.Room rooms = 1; - */ - rooms: ServerRoomList_Room[]; - - /** - * @generated from field: optional uint32 pages = 2; - */ - pages?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList; - - static equals(a: ServerRoomList | PlainMessage | undefined, b: ServerRoomList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomList.Room - */ -export declare class ServerRoomList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers: number; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers: number; - - /** - * @generated from field: bool protected = 6; - */ - protected: boolean; - - /** - * @generated from field: string owner = 7; - */ - owner: string; - - /** - * @generated from field: bool locked = 8; - */ - locked: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomList.Room"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList_Room; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList_Room; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList_Room; - - static equals(a: ServerRoomList_Room | PlainMessage | undefined, b: ServerRoomList_Room | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomAddToList - */ -export declare class ServerRoomAddToList extends Message { - /** - * @generated from field: NTALT.ServerRoomAddToList.Room room = 1; - */ - room?: ServerRoomAddToList_Room; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomAddToList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList; - - static equals(a: ServerRoomAddToList | PlainMessage | undefined, b: ServerRoomAddToList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NTALT.ServerRoomAddToList.Room - */ -export declare class ServerRoomAddToList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers: number; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers: number; - - /** - * @generated from field: bool protected = 6; - */ - protected: boolean; - - /** - * @generated from field: string owner = 7; - */ - owner: string; - - /** - * @generated from field: bool locked = 8; - */ - locked: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NTALT.ServerRoomAddToList.Room"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList_Room; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList_Room; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList_Room; - - static equals(a: ServerRoomAddToList_Room | PlainMessage | undefined, b: ServerRoomAddToList_Room | PlainMessage | undefined): boolean; -} - diff --git a/nt-app/src/gen/alt_pb.js b/nt-app/src/gen/alt_pb.js deleted file mode 100644 index 59bf8487..00000000 --- a/nt-app/src/gen/alt_pb.js +++ /dev/null @@ -1,1332 +0,0 @@ -// @generated by protoc-gen-es v1.4.1 -// @generated from file alt.proto (package NTALT, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message NTALT.Envelope - */ -export const Envelope = proto3.makeMessageType( - "NTALT.Envelope", - () => [ - { no: 1, name: "game_action", kind: "message", T: GameAction, oneof: "kind" }, - { no: 50, name: "lobby_action", kind: "message", T: LobbyAction, oneof: "kind" }, - ], -); - -/** - * @generated from message NTALT.GameAction - */ -export const GameAction = proto3.makeMessageType( - "NTALT.GameAction", - () => [ - { no: 1, name: "player_move", kind: "message", T: PlayerMove, oneof: "action" }, - { no: 2, name: "player_position", kind: "message", T: PlayerPosition, oneof: "action" }, - { no: 3, name: "c_player_update", kind: "message", T: ClientPlayerUpdate, oneof: "action" }, - { no: 4, name: "s_player_update", kind: "message", T: ServerPlayerUpdate, oneof: "action" }, - { no: 5, name: "c_player_update_inventory", kind: "message", T: ClientPlayerUpdateInventory, oneof: "action" }, - { no: 6, name: "s_player_update_inventory", kind: "message", T: ServerPlayerUpdateInventory, oneof: "action" }, - { no: 7, name: "c_host_item_bank", kind: "message", T: ClientHostItemBank, oneof: "action" }, - { no: 8, name: "s_host_item_bank", kind: "message", T: ServerHostItemBank, oneof: "action" }, - { no: 9, name: "c_host_user_take", kind: "message", T: ClientHostUserTake, oneof: "action" }, - { no: 10, name: "s_host_user_take", kind: "message", T: ServerHostUserTake, oneof: "action" }, - { no: 11, name: "c_host_user_take_gold", kind: "message", T: ClientHostUserTakeGold, oneof: "action" }, - { no: 12, name: "s_host_user_take_gold", kind: "message", T: ServerHostUserTakeGold, oneof: "action" }, - { no: 13, name: "c_player_add_gold", kind: "message", T: ClientPlayerAddGold, oneof: "action" }, - { no: 14, name: "s_player_add_gold", kind: "message", T: ServerPlayerAddGold, oneof: "action" }, - { no: 15, name: "c_player_take_gold", kind: "message", T: ClientPlayerTakeGold, oneof: "action" }, - { no: 16, name: "s_player_take_gold", kind: "message", T: ServerPlayerTakeGold, oneof: "action" }, - { no: 17, name: "c_player_add_item", kind: "message", T: ClientPlayerAddItem, oneof: "action" }, - { no: 18, name: "s_player_add_item", kind: "message", T: ServerPlayerAddItem, oneof: "action" }, - { no: 19, name: "c_player_take_item", kind: "message", T: ClientPlayerTakeItem, oneof: "action" }, - { no: 20, name: "s_player_take_item", kind: "message", T: ServerPlayerTakeItem, oneof: "action" }, - { no: 21, name: "c_player_pickup", kind: "message", T: ClientPlayerPickup, oneof: "action" }, - { no: 22, name: "s_player_pickup", kind: "message", T: ServerPlayerPickup, oneof: "action" }, - { no: 23, name: "c_nemesis_ability", kind: "message", T: ClientNemesisAbility, oneof: "action" }, - { no: 24, name: "s_nemesis_ability", kind: "message", T: ServerNemesisAbility, oneof: "action" }, - { no: 25, name: "c_nemesis_pickup_item", kind: "message", T: ClientNemesisPickupItem, oneof: "action" }, - { no: 26, name: "s_nemesis_pickup_item", kind: "message", T: ServerNemesisPickupItem, oneof: "action" }, - { no: 27, name: "c_chat", kind: "message", T: ClientChat, oneof: "action" }, - { no: 28, name: "s_chat", kind: "message", T: ServerChat, oneof: "action" }, - { no: 29, name: "c_player_death", kind: "message", T: ClientPlayerDeath, oneof: "action" }, - { no: 30, name: "s_player_death", kind: "message", T: ServerPlayerDeath, oneof: "action" }, - { no: 31, name: "c_player_new_game_plus", kind: "message", T: ClientPlayerNewGamePlus, oneof: "action" }, - { no: 32, name: "s_player_new_game_plus", kind: "message", T: ServerPlayerNewGamePlus, oneof: "action" }, - { no: 33, name: "c_player_secret_hourglass", kind: "message", T: ClientPlayerSecretHourglass, oneof: "action" }, - { no: 34, name: "s_player_secret_hourglass", kind: "message", T: ServerPlayerSecretHourglass, oneof: "action" }, - { no: 35, name: "c_custom_mod_event", kind: "message", T: ClientCustomModEvent, oneof: "action" }, - { no: 36, name: "s_custom_mod_event", kind: "message", T: ServerCustomModEvent, oneof: "action" }, - { no: 37, name: "c_respawn_penalty", kind: "message", T: ClientRespawnPenalty, oneof: "action" }, - { no: 38, name: "s_respawn_penalty", kind: "message", T: ServerRespawnPenalty, oneof: "action" }, - { no: 39, name: "c_angery_steve", kind: "message", T: ClientAngerySteve, oneof: "action" }, - { no: 40, name: "s_angery_steve", kind: "message", T: ServerAngerySteve, oneof: "action" }, - { no: 42, name: "s_stat_update", kind: "message", T: ServerStatsUpdate, oneof: "action" }, - ], -); - -/** - * @generated from message NTALT.PlayerFrame - */ -export const PlayerFrame = proto3.makeMessageType( - "NTALT.PlayerFrame", - () => [ - { no: 1, name: "x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "arm_r", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "arm_scale_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "scale_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 6, name: "anim", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 7, name: "held", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - ], -); - -/** - * @generated from message NTALT.PlayerMove - */ -export const PlayerMove = proto3.makeMessageType( - "NTALT.PlayerMove", - () => [ - { no: 1, name: "frames", kind: "message", T: PlayerFrame, repeated: true }, - { no: 15, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.PlayerPosition - */ -export const PlayerPosition = proto3.makeMessageType( - "NTALT.PlayerPosition", - () => [ - { no: 1, name: "frame", kind: "message", T: PlayerFrame }, - { no: 15, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerUpdate - */ -export const ClientPlayerUpdate = proto3.makeMessageType( - "NTALT.ClientPlayerUpdate", - () => [ - { no: 1, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerUpdate - */ -export const ServerPlayerUpdate = proto3.makeMessageType( - "NTALT.ServerPlayerUpdate", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory - */ -export const ClientPlayerUpdateInventory = proto3.makeMessageType( - "NTALT.ClientPlayerUpdateInventory", - () => [ - { no: 1, name: "wands", kind: "message", T: ClientPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 2, name: "items", kind: "message", T: ClientPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 3, name: "spells", kind: "message", T: ClientPlayerUpdateInventory_InventorySpell, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventoryWand - */ -export const ClientPlayerUpdateInventory_InventoryWand = proto3.makeMessageType( - "NTALT.ClientPlayerUpdateInventory.InventoryWand", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ], - {localName: "ClientPlayerUpdateInventory_InventoryWand"}, -); - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventoryItem - */ -export const ClientPlayerUpdateInventory_InventoryItem = proto3.makeMessageType( - "NTALT.ClientPlayerUpdateInventory.InventoryItem", - () => [ - { no: 3, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "item", kind: "message", T: Item }, - ], - {localName: "ClientPlayerUpdateInventory_InventoryItem"}, -); - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventorySpell - */ -export const ClientPlayerUpdateInventory_InventorySpell = proto3.makeMessageType( - "NTALT.ClientPlayerUpdateInventory.InventorySpell", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ], - {localName: "ClientPlayerUpdateInventory_InventorySpell"}, -); - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory - */ -export const ServerPlayerUpdateInventory = proto3.makeMessageType( - "NTALT.ServerPlayerUpdateInventory", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wands", kind: "message", T: ServerPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 3, name: "items", kind: "message", T: ServerPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 4, name: "spells", kind: "message", T: ServerPlayerUpdateInventory_InventorySpell, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventoryWand - */ -export const ServerPlayerUpdateInventory_InventoryWand = proto3.makeMessageType( - "NTALT.ServerPlayerUpdateInventory.InventoryWand", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ], - {localName: "ServerPlayerUpdateInventory_InventoryWand"}, -); - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventoryItem - */ -export const ServerPlayerUpdateInventory_InventoryItem = proto3.makeMessageType( - "NTALT.ServerPlayerUpdateInventory.InventoryItem", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "item", kind: "message", T: Item }, - ], - {localName: "ServerPlayerUpdateInventory_InventoryItem"}, -); - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventorySpell - */ -export const ServerPlayerUpdateInventory_InventorySpell = proto3.makeMessageType( - "NTALT.ServerPlayerUpdateInventory.InventorySpell", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ], - {localName: "ServerPlayerUpdateInventory_InventorySpell"}, -); - -/** - * @generated from message NTALT.ClientHostItemBank - */ -export const ClientHostItemBank = proto3.makeMessageType( - "NTALT.ClientHostItemBank", - () => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ServerHostItemBank - */ -export const ServerHostItemBank = proto3.makeMessageType( - "NTALT.ServerHostItemBank", - () => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ClientHostUserTake - */ -export const ClientHostUserTake = proto3.makeMessageType( - "NTALT.ClientHostUserTake", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ServerHostUserTake - */ -export const ServerHostUserTake = proto3.makeMessageType( - "NTALT.ServerHostUserTake", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ClientHostUserTakeGold - */ -export const ClientHostUserTakeGold = proto3.makeMessageType( - "NTALT.ClientHostUserTakeGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ServerHostUserTakeGold - */ -export const ServerHostUserTakeGold = proto3.makeMessageType( - "NTALT.ServerHostUserTakeGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerAddGold - */ -export const ClientPlayerAddGold = proto3.makeMessageType( - "NTALT.ClientPlayerAddGold", - () => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerAddGold - */ -export const ServerPlayerAddGold = proto3.makeMessageType( - "NTALT.ServerPlayerAddGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerTakeGold - */ -export const ClientPlayerTakeGold = proto3.makeMessageType( - "NTALT.ClientPlayerTakeGold", - () => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerTakeGold - */ -export const ServerPlayerTakeGold = proto3.makeMessageType( - "NTALT.ServerPlayerTakeGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerAddItem - */ -export const ClientPlayerAddItem = proto3.makeMessageType( - "NTALT.ClientPlayerAddItem", - () => [ - { no: 1, name: "spells", kind: "message", T: ClientPlayerAddItem_Spells, oneof: "item" }, - { no: 2, name: "wands", kind: "message", T: ClientPlayerAddItem_Wands, oneof: "item" }, - { no: 3, name: "flasks", kind: "message", T: ClientPlayerAddItem_Items, oneof: "item" }, - { no: 4, name: "objects", kind: "message", T: ClientPlayerAddItem_Entities, oneof: "item" }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerAddItem.Spells - */ -export const ClientPlayerAddItem_Spells = proto3.makeMessageType( - "NTALT.ClientPlayerAddItem.Spells", - () => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Spells"}, -); - -/** - * @generated from message NTALT.ClientPlayerAddItem.Wands - */ -export const ClientPlayerAddItem_Wands = proto3.makeMessageType( - "NTALT.ClientPlayerAddItem.Wands", - () => [ - { no: 1, name: "list", kind: "message", T: Wand, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Wands"}, -); - -/** - * @generated from message NTALT.ClientPlayerAddItem.Items - */ -export const ClientPlayerAddItem_Items = proto3.makeMessageType( - "NTALT.ClientPlayerAddItem.Items", - () => [ - { no: 1, name: "list", kind: "message", T: Item, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Items"}, -); - -/** - * @generated from message NTALT.ClientPlayerAddItem.Entities - */ -export const ClientPlayerAddItem_Entities = proto3.makeMessageType( - "NTALT.ClientPlayerAddItem.Entities", - () => [ - { no: 1, name: "list", kind: "message", T: EntityItem, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Entities"}, -); - -/** - * @generated from message NTALT.ServerPlayerAddItem - */ -export const ServerPlayerAddItem = proto3.makeMessageType( - "NTALT.ServerPlayerAddItem", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "spells", kind: "message", T: ServerPlayerAddItem_Spells, oneof: "item" }, - { no: 3, name: "wands", kind: "message", T: ServerPlayerAddItem_Wands, oneof: "item" }, - { no: 4, name: "flasks", kind: "message", T: ServerPlayerAddItem_Items, oneof: "item" }, - { no: 5, name: "objects", kind: "message", T: ServerPlayerAddItem_Entities, oneof: "item" }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerAddItem.Spells - */ -export const ServerPlayerAddItem_Spells = proto3.makeMessageType( - "NTALT.ServerPlayerAddItem.Spells", - () => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Spells"}, -); - -/** - * @generated from message NTALT.ServerPlayerAddItem.Wands - */ -export const ServerPlayerAddItem_Wands = proto3.makeMessageType( - "NTALT.ServerPlayerAddItem.Wands", - () => [ - { no: 2, name: "list", kind: "message", T: Wand, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Wands"}, -); - -/** - * @generated from message NTALT.ServerPlayerAddItem.Items - */ -export const ServerPlayerAddItem_Items = proto3.makeMessageType( - "NTALT.ServerPlayerAddItem.Items", - () => [ - { no: 3, name: "list", kind: "message", T: Item, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Items"}, -); - -/** - * @generated from message NTALT.ServerPlayerAddItem.Entities - */ -export const ServerPlayerAddItem_Entities = proto3.makeMessageType( - "NTALT.ServerPlayerAddItem.Entities", - () => [ - { no: 4, name: "list", kind: "message", T: EntityItem, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Entities"}, -); - -/** - * @generated from message NTALT.ClientPlayerTakeItem - */ -export const ClientPlayerTakeItem = proto3.makeMessageType( - "NTALT.ClientPlayerTakeItem", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerTakeItem - */ -export const ServerPlayerTakeItem = proto3.makeMessageType( - "NTALT.ServerPlayerTakeItem", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientChat - */ -export const ClientChat = proto3.makeMessageType( - "NTALT.ClientChat", - () => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerChat - */ -export const ServerChat = proto3.makeMessageType( - "NTALT.ServerChat", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerStatsUpdate - */ -export const ServerStatsUpdate = proto3.makeMessageType( - "NTALT.ServerStatsUpdate", - () => [ - { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerPickup - */ -export const ClientPlayerPickup = proto3.makeMessageType( - "NTALT.ClientPlayerPickup", - () => [ - { no: 1, name: "heart", kind: "message", T: ClientPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 2, name: "orb", kind: "message", T: ClientPlayerPickup_OrbPickup, oneof: "kind" }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerPickup.HeartPickup - */ -export const ClientPlayerPickup_HeartPickup = proto3.makeMessageType( - "NTALT.ClientPlayerPickup.HeartPickup", - () => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ClientPlayerPickup_HeartPickup"}, -); - -/** - * @generated from message NTALT.ClientPlayerPickup.OrbPickup - */ -export const ClientPlayerPickup_OrbPickup = proto3.makeMessageType( - "NTALT.ClientPlayerPickup.OrbPickup", - () => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], - {localName: "ClientPlayerPickup_OrbPickup"}, -); - -/** - * @generated from message NTALT.ServerPlayerPickup - */ -export const ServerPlayerPickup = proto3.makeMessageType( - "NTALT.ServerPlayerPickup", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "heart", kind: "message", T: ServerPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 3, name: "orb", kind: "message", T: ServerPlayerPickup_OrbPickup, oneof: "kind" }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerPickup.HeartPickup - */ -export const ServerPlayerPickup_HeartPickup = proto3.makeMessageType( - "NTALT.ServerPlayerPickup.HeartPickup", - () => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerPlayerPickup_HeartPickup"}, -); - -/** - * @generated from message NTALT.ServerPlayerPickup.OrbPickup - */ -export const ServerPlayerPickup_OrbPickup = proto3.makeMessageType( - "NTALT.ServerPlayerPickup.OrbPickup", - () => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], - {localName: "ServerPlayerPickup_OrbPickup"}, -); - -/** - * @generated from message NTALT.ClientNemesisPickupItem - */ -export const ClientNemesisPickupItem = proto3.makeMessageType( - "NTALT.ClientNemesisPickupItem", - () => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerNemesisPickupItem - */ -export const ServerNemesisPickupItem = proto3.makeMessageType( - "NTALT.ServerNemesisPickupItem", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientNemesisAbility - */ -export const ClientNemesisAbility = proto3.makeMessageType( - "NTALT.ClientNemesisAbility", - () => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerNemesisAbility - */ -export const ServerNemesisAbility = proto3.makeMessageType( - "NTALT.ServerNemesisAbility", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerDeath - */ -export const ClientPlayerDeath = proto3.makeMessageType( - "NTALT.ClientPlayerDeath", - () => [ - { no: 1, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerDeath - */ -export const ServerPlayerDeath = proto3.makeMessageType( - "NTALT.ServerPlayerDeath", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerNewGamePlus - */ -export const ClientPlayerNewGamePlus = proto3.makeMessageType( - "NTALT.ClientPlayerNewGamePlus", - () => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerNewGamePlus - */ -export const ServerPlayerNewGamePlus = proto3.makeMessageType( - "NTALT.ServerPlayerNewGamePlus", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ClientPlayerSecretHourglass - */ -export const ClientPlayerSecretHourglass = proto3.makeMessageType( - "NTALT.ClientPlayerSecretHourglass", - () => [ - { no: 1, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerPlayerSecretHourglass - */ -export const ServerPlayerSecretHourglass = proto3.makeMessageType( - "NTALT.ServerPlayerSecretHourglass", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientCustomModEvent - */ -export const ClientCustomModEvent = proto3.makeMessageType( - "NTALT.ClientCustomModEvent", - () => [ - { no: 1, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerCustomModEvent - */ -export const ServerCustomModEvent = proto3.makeMessageType( - "NTALT.ServerCustomModEvent", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientRespawnPenalty - */ -export const ClientRespawnPenalty = proto3.makeMessageType( - "NTALT.ClientRespawnPenalty", - () => [ - { no: 1, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ServerRespawnPenalty - */ -export const ServerRespawnPenalty = proto3.makeMessageType( - "NTALT.ServerRespawnPenalty", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ClientAngerySteve - */ -export const ClientAngerySteve = proto3.makeMessageType( - "NTALT.ClientAngerySteve", - () => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ServerAngerySteve - */ -export const ServerAngerySteve = proto3.makeMessageType( - "NTALT.ServerAngerySteve", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.Wand - */ -export const Wand = proto3.makeMessageType( - "NTALT.Wand", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "stats", kind: "message", T: Wand_WandStats }, - { no: 3, name: "always_cast", kind: "message", T: Spell, repeated: true }, - { no: 4, name: "deck", kind: "message", T: Spell, repeated: true }, - { no: 5, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NTALT.Wand.WandStats - */ -export const Wand_WandStats = proto3.makeMessageType( - "NTALT.Wand.WandStats", - () => [ - { no: 1, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "named", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "ui_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "mana_max", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 5, name: "mana_charge_speed", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 6, name: "reload_time", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "actions_per_round", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "deck_capacity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "shuffle_deck_when_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "spread_degrees", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 11, name: "speed_multiplier", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 12, name: "fire_rate_wait", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 13, name: "tip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 14, name: "tip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 15, name: "grip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 16, name: "grip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ], - {localName: "Wand_WandStats"}, -); - -/** - * @generated from message NTALT.Spell - */ -export const Spell = proto3.makeMessageType( - "NTALT.Spell", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "uses_remaining", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ], -); - -/** - * @generated from message NTALT.Item - */ -export const Item = proto3.makeMessageType( - "NTALT.Item", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "color", kind: "message", T: Item_Color }, - { no: 3, name: "content", kind: "message", T: Item_Material, repeated: true }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "is_chest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "item_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.Item.Color - */ -export const Item_Color = proto3.makeMessageType( - "NTALT.Item.Color", - () => [ - { no: 1, name: "r", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 2, name: "g", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "b", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ], - {localName: "Item_Color"}, -); - -/** - * @generated from message NTALT.Item.Material - */ -export const Item_Material = proto3.makeMessageType( - "NTALT.Item.Material", - () => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], - {localName: "Item_Material"}, -); - -/** - * @generated from message NTALT.EntityItem - */ -export const EntityItem = proto3.makeMessageType( - "NTALT.EntityItem", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NTALT.LobbyAction - */ -export const LobbyAction = proto3.makeMessageType( - "NTALT.LobbyAction", - () => [ - { no: 1, name: "c_room_create", kind: "message", T: ClientRoomCreate, oneof: "action" }, - { no: 2, name: "s_room_created", kind: "message", T: ServerRoomCreated, oneof: "action" }, - { no: 3, name: "s_room_create_failed", kind: "message", T: ServerRoomCreateFailed, oneof: "action" }, - { no: 4, name: "c_room_update", kind: "message", T: ClientRoomUpdate, oneof: "action" }, - { no: 5, name: "s_room_updated", kind: "message", T: ServerRoomUpdated, oneof: "action" }, - { no: 6, name: "s_room_update_failed", kind: "message", T: ServerRoomUpdateFailed, oneof: "action" }, - { no: 7, name: "c_room_flags_update", kind: "message", T: ClientRoomFlagsUpdate, oneof: "action" }, - { no: 8, name: "s_room_flags_updated", kind: "message", T: ServerRoomFlagsUpdated, oneof: "action" }, - { no: 9, name: "s_room_flags_update_failed", kind: "message", T: ServerRoomFlagsUpdateFailed, oneof: "action" }, - { no: 10, name: "c_room_delete", kind: "message", T: ClientRoomDelete, oneof: "action" }, - { no: 11, name: "s_room_deleted", kind: "message", T: ServerRoomDeleted, oneof: "action" }, - { no: 12, name: "c_join_room", kind: "message", T: ClientJoinRoom, oneof: "action" }, - { no: 13, name: "s_join_room_success", kind: "message", T: ServerJoinRoomSuccess, oneof: "action" }, - { no: 14, name: "s_join_room_failed", kind: "message", T: ServerJoinRoomFailed, oneof: "action" }, - { no: 15, name: "s_user_joined_room", kind: "message", T: ServerUserJoinedRoom, oneof: "action" }, - { no: 16, name: "c_leave_room", kind: "message", T: ClientLeaveRoom, oneof: "action" }, - { no: 17, name: "s_user_left_room", kind: "message", T: ServerUserLeftRoom, oneof: "action" }, - { no: 18, name: "c_kick_user", kind: "message", T: ClientKickUser, oneof: "action" }, - { no: 19, name: "s_user_kicked", kind: "message", T: ServerUserKicked, oneof: "action" }, - { no: 20, name: "c_ban_user", kind: "message", T: ClientBanUser, oneof: "action" }, - { no: 21, name: "s_user_banned", kind: "message", T: ServerUserBanned, oneof: "action" }, - { no: 22, name: "c_ready_state", kind: "message", T: ClientReadyState, oneof: "action" }, - { no: 23, name: "s_user_ready_state", kind: "message", T: ServerUserReadyState, oneof: "action" }, - { no: 24, name: "c_start_run", kind: "message", T: ClientStartRun, oneof: "action" }, - { no: 25, name: "s_host_start", kind: "message", T: ServerHostStart, oneof: "action" }, - { no: 27, name: "c_request_room_list", kind: "message", T: ClientRequestRoomList, oneof: "action" }, - { no: 28, name: "s_room_list", kind: "message", T: ServerRoomList, oneof: "action" }, - { no: 31, name: "s_disconnected", kind: "message", T: ServerDisconnected, oneof: "action" }, - { no: 32, name: "s_room_add_to_list", kind: "message", T: ServerRoomAddToList, oneof: "action" }, - { no: 33, name: "c_run_over", kind: "message", T: ClientRunOver, oneof: "action" }, - ], -); - -/** - * @generated from message NTALT.ClientRunOver - */ -export const ClientRunOver = proto3.makeMessageType( - "NTALT.ClientRunOver", - () => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerDisconnected - */ -export const ServerDisconnected = proto3.makeMessageType( - "NTALT.ServerDisconnected", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientRoomDelete - */ -export const ClientRoomDelete = proto3.makeMessageType( - "NTALT.ClientRoomDelete", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerRoomDeleted - */ -export const ServerRoomDeleted = proto3.makeMessageType( - "NTALT.ServerRoomDeleted", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientRoomCreate - */ -export const ClientRoomCreate = proto3.makeMessageType( - "NTALT.ClientRoomCreate", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerRoomCreated - */ -export const ServerRoomCreated = proto3.makeMessageType( - "NTALT.ServerRoomCreated", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerRoomCreated_User, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ServerRoomCreated.User - */ -export const ServerRoomCreated_User = proto3.makeMessageType( - "NTALT.ServerRoomCreated.User", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerRoomCreated_User"}, -); - -/** - * @generated from message NTALT.ServerRoomCreateFailed - */ -export const ServerRoomCreateFailed = proto3.makeMessageType( - "NTALT.ServerRoomCreateFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientRoomUpdate - */ -export const ClientRoomUpdate = proto3.makeMessageType( - "NTALT.ClientRoomUpdate", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerRoomUpdated - */ -export const ServerRoomUpdated = proto3.makeMessageType( - "NTALT.ServerRoomUpdated", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerRoomUpdateFailed - */ -export const ServerRoomUpdateFailed = proto3.makeMessageType( - "NTALT.ServerRoomUpdateFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientRoomFlagsUpdate - */ -export const ClientRoomFlagsUpdate = proto3.makeMessageType( - "NTALT.ClientRoomFlagsUpdate", - () => [ - { no: 1, name: "flags", kind: "message", T: ClientRoomFlagsUpdate_GameFlag, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ClientRoomFlagsUpdate.GameFlag - */ -export const ClientRoomFlagsUpdate_GameFlag = proto3.makeMessageType( - "NTALT.ClientRoomFlagsUpdate.GameFlag", - () => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], - {localName: "ClientRoomFlagsUpdate_GameFlag"}, -); - -/** - * @generated from message NTALT.ServerRoomFlagsUpdated - */ -export const ServerRoomFlagsUpdated = proto3.makeMessageType( - "NTALT.ServerRoomFlagsUpdated", - () => [ - { no: 1, name: "flags", kind: "message", T: ServerRoomFlagsUpdated_GameFlag, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ServerRoomFlagsUpdated.GameFlag - */ -export const ServerRoomFlagsUpdated_GameFlag = proto3.makeMessageType( - "NTALT.ServerRoomFlagsUpdated.GameFlag", - () => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], - {localName: "ServerRoomFlagsUpdated_GameFlag"}, -); - -/** - * @generated from message NTALT.ServerRoomFlagsUpdateFailed - */ -export const ServerRoomFlagsUpdateFailed = proto3.makeMessageType( - "NTALT.ServerRoomFlagsUpdateFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientJoinRoom - */ -export const ClientJoinRoom = proto3.makeMessageType( - "NTALT.ClientJoinRoom", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerJoinRoomSuccess - */ -export const ServerJoinRoomSuccess = proto3.makeMessageType( - "NTALT.ServerJoinRoomSuccess", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerJoinRoomSuccess_User, repeated: true }, - ], -); - -/** - * @generated from message NTALT.ServerJoinRoomSuccess.User - */ -export const ServerJoinRoomSuccess_User = proto3.makeMessageType( - "NTALT.ServerJoinRoomSuccess.User", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerJoinRoomSuccess_User"}, -); - -/** - * @generated from message NTALT.ServerJoinRoomFailed - */ -export const ServerJoinRoomFailed = proto3.makeMessageType( - "NTALT.ServerJoinRoomFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerUserJoinedRoom - */ -export const ServerUserJoinedRoom = proto3.makeMessageType( - "NTALT.ServerUserJoinedRoom", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientLeaveRoom - */ -export const ClientLeaveRoom = proto3.makeMessageType( - "NTALT.ClientLeaveRoom", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerUserLeftRoom - */ -export const ServerUserLeftRoom = proto3.makeMessageType( - "NTALT.ServerUserLeftRoom", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientKickUser - */ -export const ClientKickUser = proto3.makeMessageType( - "NTALT.ClientKickUser", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerUserKicked - */ -export const ServerUserKicked = proto3.makeMessageType( - "NTALT.ServerUserKicked", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientBanUser - */ -export const ClientBanUser = proto3.makeMessageType( - "NTALT.ClientBanUser", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ServerUserBanned - */ -export const ServerUserBanned = proto3.makeMessageType( - "NTALT.ServerUserBanned", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NTALT.ClientReadyState - */ -export const ClientReadyState = proto3.makeMessageType( - "NTALT.ClientReadyState", - () => [ - { no: 1, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 3, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerUserReadyState - */ -export const ServerUserReadyState = proto3.makeMessageType( - "NTALT.ServerUserReadyState", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ClientStartRun - */ -export const ClientStartRun = proto3.makeMessageType( - "NTALT.ClientStartRun", - () => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ServerHostStart - */ -export const ServerHostStart = proto3.makeMessageType( - "NTALT.ServerHostStart", - () => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NTALT.ClientRequestRoomList - */ -export const ClientRequestRoomList = proto3.makeMessageType( - "NTALT.ClientRequestRoomList", - () => [ - { no: 1, name: "page", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NTALT.ServerRoomList - */ -export const ServerRoomList = proto3.makeMessageType( - "NTALT.ServerRoomList", - () => [ - { no: 1, name: "rooms", kind: "message", T: ServerRoomList_Room, repeated: true }, - { no: 2, name: "pages", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], -); - -/** - * @generated from message NTALT.ServerRoomList.Room - */ -export const ServerRoomList_Room = proto3.makeMessageType( - "NTALT.ServerRoomList.Room", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerRoomList_Room"}, -); - -/** - * @generated from message NTALT.ServerRoomAddToList - */ -export const ServerRoomAddToList = proto3.makeMessageType( - "NTALT.ServerRoomAddToList", - () => [ - { no: 1, name: "room", kind: "message", T: ServerRoomAddToList_Room }, - ], -); - -/** - * @generated from message NTALT.ServerRoomAddToList.Room - */ -export const ServerRoomAddToList_Room = proto3.makeMessageType( - "NTALT.ServerRoomAddToList.Room", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerRoomAddToList_Room"}, -); - diff --git a/nt-app/src/gen/messages_pb.d.ts b/nt-app/src/gen/messages_pb.d.ts deleted file mode 100644 index 7cfd61a1..00000000 --- a/nt-app/src/gen/messages_pb.d.ts +++ /dev/null @@ -1,3905 +0,0 @@ -// @generated by protoc-gen-es v1.4.1 -// @generated from file messages.proto (package NT, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message NT.Envelope - */ -export declare class Envelope extends Message { - /** - * @generated from oneof NT.Envelope.kind - */ - kind: { - /** - * @generated from field: NT.GameAction game_action = 1; - */ - value: GameAction; - case: "gameAction"; - } | { - /** - * @generated from field: NT.LobbyAction lobby_action = 50; - */ - value: LobbyAction; - case: "lobbyAction"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Envelope"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Envelope; - - static fromJson(jsonValue: JsonValue, options?: Partial): Envelope; - - static fromJsonString(jsonString: string, options?: Partial): Envelope; - - static equals(a: Envelope | PlainMessage | undefined, b: Envelope | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.GameAction - */ -export declare class GameAction extends Message { - /** - * The c prefix stands for "client", which refers to this application - * The s prefix stands for "server", which refers to the online Noita game server - * - * @generated from oneof NT.GameAction.action - */ - action: { - /** - * @generated from field: NT.ClientPlayerMove c_player_move = 1; - */ - value: ClientPlayerMove; - case: "cPlayerMove"; - } | { - /** - * @generated from field: NT.ServerPlayerMove s_player_move = 2; - */ - value: ServerPlayerMove; - case: "sPlayerMove"; - } | { - /** - * @generated from field: NT.ClientPlayerUpdate c_player_update = 3; - */ - value: ClientPlayerUpdate; - case: "cPlayerUpdate"; - } | { - /** - * @generated from field: NT.ServerPlayerUpdate s_player_update = 4; - */ - value: ServerPlayerUpdate; - case: "sPlayerUpdate"; - } | { - /** - * @generated from field: NT.ClientPlayerUpdateInventory c_player_update_inventory = 5; - */ - value: ClientPlayerUpdateInventory; - case: "cPlayerUpdateInventory"; - } | { - /** - * @generated from field: NT.ServerPlayerUpdateInventory s_player_update_inventory = 6; - */ - value: ServerPlayerUpdateInventory; - case: "sPlayerUpdateInventory"; - } | { - /** - * @generated from field: NT.ClientHostItemBank c_host_item_bank = 7; - */ - value: ClientHostItemBank; - case: "cHostItemBank"; - } | { - /** - * @generated from field: NT.ServerHostItemBank s_host_item_bank = 8; - */ - value: ServerHostItemBank; - case: "sHostItemBank"; - } | { - /** - * @generated from field: NT.ClientHostUserTake c_host_user_take = 9; - */ - value: ClientHostUserTake; - case: "cHostUserTake"; - } | { - /** - * @generated from field: NT.ServerHostUserTake s_host_user_take = 10; - */ - value: ServerHostUserTake; - case: "sHostUserTake"; - } | { - /** - * @generated from field: NT.ClientHostUserTakeGold c_host_user_take_gold = 11; - */ - value: ClientHostUserTakeGold; - case: "cHostUserTakeGold"; - } | { - /** - * @generated from field: NT.ServerHostUserTakeGold s_host_user_take_gold = 12; - */ - value: ServerHostUserTakeGold; - case: "sHostUserTakeGold"; - } | { - /** - * @generated from field: NT.ClientPlayerAddGold c_player_add_gold = 13; - */ - value: ClientPlayerAddGold; - case: "cPlayerAddGold"; - } | { - /** - * @generated from field: NT.ServerPlayerAddGold s_player_add_gold = 14; - */ - value: ServerPlayerAddGold; - case: "sPlayerAddGold"; - } | { - /** - * @generated from field: NT.ClientPlayerTakeGold c_player_take_gold = 15; - */ - value: ClientPlayerTakeGold; - case: "cPlayerTakeGold"; - } | { - /** - * @generated from field: NT.ServerPlayerTakeGold s_player_take_gold = 16; - */ - value: ServerPlayerTakeGold; - case: "sPlayerTakeGold"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem c_player_add_item = 17; - */ - value: ClientPlayerAddItem; - case: "cPlayerAddItem"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem s_player_add_item = 18; - */ - value: ServerPlayerAddItem; - case: "sPlayerAddItem"; - } | { - /** - * @generated from field: NT.ClientPlayerTakeItem c_player_take_item = 19; - */ - value: ClientPlayerTakeItem; - case: "cPlayerTakeItem"; - } | { - /** - * @generated from field: NT.ServerPlayerTakeItem s_player_take_item = 20; - */ - value: ServerPlayerTakeItem; - case: "sPlayerTakeItem"; - } | { - /** - * @generated from field: NT.ClientPlayerPickup c_player_pickup = 21; - */ - value: ClientPlayerPickup; - case: "cPlayerPickup"; - } | { - /** - * @generated from field: NT.ServerPlayerPickup s_player_pickup = 22; - */ - value: ServerPlayerPickup; - case: "sPlayerPickup"; - } | { - /** - * @generated from field: NT.ClientNemesisAbility c_nemesis_ability = 23; - */ - value: ClientNemesisAbility; - case: "cNemesisAbility"; - } | { - /** - * @generated from field: NT.ServerNemesisAbility s_nemesis_ability = 24; - */ - value: ServerNemesisAbility; - case: "sNemesisAbility"; - } | { - /** - * @generated from field: NT.ClientNemesisPickupItem c_nemesis_pickup_item = 25; - */ - value: ClientNemesisPickupItem; - case: "cNemesisPickupItem"; - } | { - /** - * @generated from field: NT.ServerNemesisPickupItem s_nemesis_pickup_item = 26; - */ - value: ServerNemesisPickupItem; - case: "sNemesisPickupItem"; - } | { - /** - * @generated from field: NT.ClientChat c_chat = 27; - */ - value: ClientChat; - case: "cChat"; - } | { - /** - * @generated from field: NT.ServerChat s_chat = 28; - */ - value: ServerChat; - case: "sChat"; - } | { - /** - * @generated from field: NT.ClientPlayerDeath c_player_death = 29; - */ - value: ClientPlayerDeath; - case: "cPlayerDeath"; - } | { - /** - * @generated from field: NT.ServerPlayerDeath s_player_death = 30; - */ - value: ServerPlayerDeath; - case: "sPlayerDeath"; - } | { - /** - * @generated from field: NT.ClientPlayerNewGamePlus c_player_new_game_plus = 31; - */ - value: ClientPlayerNewGamePlus; - case: "cPlayerNewGamePlus"; - } | { - /** - * @generated from field: NT.ServerPlayerNewGamePlus s_player_new_game_plus = 32; - */ - value: ServerPlayerNewGamePlus; - case: "sPlayerNewGamePlus"; - } | { - /** - * @generated from field: NT.ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - */ - value: ClientPlayerSecretHourglass; - case: "cPlayerSecretHourglass"; - } | { - /** - * @generated from field: NT.ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - */ - value: ServerPlayerSecretHourglass; - case: "sPlayerSecretHourglass"; - } | { - /** - * @generated from field: NT.ClientCustomModEvent c_custom_mod_event = 35; - */ - value: ClientCustomModEvent; - case: "cCustomModEvent"; - } | { - /** - * @generated from field: NT.ServerCustomModEvent s_custom_mod_event = 36; - */ - value: ServerCustomModEvent; - case: "sCustomModEvent"; - } | { - /** - * @generated from field: NT.ClientRespawnPenalty c_respawn_penalty = 37; - */ - value: ClientRespawnPenalty; - case: "cRespawnPenalty"; - } | { - /** - * @generated from field: NT.ServerRespawnPenalty s_respawn_penalty = 38; - */ - value: ServerRespawnPenalty; - case: "sRespawnPenalty"; - } | { - /** - * @generated from field: NT.ClientAngerySteve c_angery_steve = 39; - */ - value: ClientAngerySteve; - case: "cAngerySteve"; - } | { - /** - * @generated from field: NT.ServerAngerySteve s_angery_steve = 40; - */ - value: ServerAngerySteve; - case: "sAngerySteve"; - } | { - /** - * @generated from field: NT.ServerPlayerPos s_player_pos = 41; - */ - value: ServerPlayerPos; - case: "sPlayerPos"; - } | { - /** - * @generated from field: NT.ServerStatsUpdate s_stat_update = 42; - */ - value: ServerStatsUpdate; - case: "sStatUpdate"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.GameAction"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GameAction; - - static fromJson(jsonValue: JsonValue, options?: Partial): GameAction; - - static fromJsonString(jsonString: string, options?: Partial): GameAction; - - static equals(a: GameAction | PlainMessage | undefined, b: GameAction | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.PlayerFrame - */ -export declare class PlayerFrame extends Message { - /** - * @generated from field: optional float x = 1; - */ - x?: number; - - /** - * @generated from field: optional float y = 2; - */ - y?: number; - - /** - * @generated from field: optional float arm_r = 3; - */ - armR?: number; - - /** - * @generated from field: optional float arm_scale_y = 4; - */ - armScaleY?: number; - - /** - * @generated from field: optional float scale_x = 5; - */ - scaleX?: number; - - /** - * @generated from field: optional int32 anim = 6; - */ - anim?: number; - - /** - * @generated from field: optional int32 held = 7; - */ - held?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.PlayerFrame"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerFrame; - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerFrame; - - static fromJsonString(jsonString: string, options?: Partial): PlayerFrame; - - static equals(a: PlayerFrame | PlainMessage | undefined, b: PlayerFrame | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerPos - */ -export declare class ServerPlayerPos extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: float x = 2; - */ - x: number; - - /** - * @generated from field: float y = 3; - */ - y: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerPos"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPos; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPos; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPos; - - static equals(a: ServerPlayerPos | PlainMessage | undefined, b: ServerPlayerPos | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerMove - */ -export declare class ClientPlayerMove extends Message { - /** - * @generated from field: repeated NT.PlayerFrame frames = 1; - */ - frames: PlayerFrame[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerMove"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerMove; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerMove; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerMove; - - static equals(a: ClientPlayerMove | PlainMessage | undefined, b: ClientPlayerMove | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerMove - */ -export declare class ServerPlayerMove extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: repeated NT.PlayerFrame frames = 2; - */ - frames: PlayerFrame[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerMove"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerMove; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerMove; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerMove; - - static equals(a: ServerPlayerMove | PlainMessage | undefined, b: ServerPlayerMove | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerUpdate - */ -export declare class ClientPlayerUpdate extends Message { - /** - * @generated from field: optional float cur_hp = 1; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 2; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 3; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 4; - */ - sampo?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdate; - - static equals(a: ClientPlayerUpdate | PlainMessage | undefined, b: ClientPlayerUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerUpdate - */ -export declare class ServerPlayerUpdate extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: optional float cur_hp = 2; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 3; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 4; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 5; - */ - sampo?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdate; - - static equals(a: ServerPlayerUpdate | PlainMessage | undefined, b: ServerPlayerUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory - */ -export declare class ClientPlayerUpdateInventory extends Message { - /** - * @generated from field: repeated NT.ClientPlayerUpdateInventory.InventoryWand wands = 1; - */ - wands: ClientPlayerUpdateInventory_InventoryWand[]; - - /** - * @generated from field: repeated NT.ClientPlayerUpdateInventory.InventoryItem items = 2; - */ - items: ClientPlayerUpdateInventory_InventoryItem[]; - - /** - * @generated from field: repeated NT.ClientPlayerUpdateInventory.InventorySpell spells = 3; - */ - spells: ClientPlayerUpdateInventory_InventorySpell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory; - - static equals(a: ClientPlayerUpdateInventory | PlainMessage | undefined, b: ClientPlayerUpdateInventory | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventoryWand - */ -export declare class ClientPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryWand; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryWand; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryWand; - - static equals(a: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventoryItem - */ -export declare class ClientPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 3; - */ - index: number; - - /** - * @generated from field: NT.Item item = 4; - */ - item?: Item; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryItem; - - static equals(a: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventorySpell - */ -export declare class ClientPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventorySpell; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventorySpell; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventorySpell; - - static equals(a: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory - */ -export declare class ServerPlayerUpdateInventory extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: repeated NT.ServerPlayerUpdateInventory.InventoryWand wands = 2; - */ - wands: ServerPlayerUpdateInventory_InventoryWand[]; - - /** - * @generated from field: repeated NT.ServerPlayerUpdateInventory.InventoryItem items = 3; - */ - items: ServerPlayerUpdateInventory_InventoryItem[]; - - /** - * @generated from field: repeated NT.ServerPlayerUpdateInventory.InventorySpell spells = 4; - */ - spells: ServerPlayerUpdateInventory_InventorySpell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory; - - static equals(a: ServerPlayerUpdateInventory | PlainMessage | undefined, b: ServerPlayerUpdateInventory | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventoryWand - */ -export declare class ServerPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryWand; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryWand; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryWand; - - static equals(a: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventoryItem - */ -export declare class ServerPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NT.Item item = 2; - */ - item?: Item; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryItem; - - static equals(a: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventorySpell - */ -export declare class ServerPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index: number; - - /** - * @generated from field: NT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventorySpell; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventorySpell; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventorySpell; - - static equals(a: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientHostItemBank - */ -export declare class ClientHostItemBank extends Message { - /** - * @generated from field: repeated NT.Wand wands = 1; - */ - wands: Wand[]; - - /** - * @generated from field: repeated NT.Spell spells = 2; - */ - spells: Spell[]; - - /** - * @generated from field: repeated NT.Item items = 3; - */ - items: Item[]; - - /** - * @generated from field: uint32 gold = 4; - */ - gold: number; - - /** - * @generated from field: repeated NT.EntityItem objects = 5; - */ - objects: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientHostItemBank"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostItemBank; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostItemBank; - - static fromJsonString(jsonString: string, options?: Partial): ClientHostItemBank; - - static equals(a: ClientHostItemBank | PlainMessage | undefined, b: ClientHostItemBank | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerHostItemBank - */ -export declare class ServerHostItemBank extends Message { - /** - * @generated from field: repeated NT.Wand wands = 1; - */ - wands: Wand[]; - - /** - * @generated from field: repeated NT.Spell spells = 2; - */ - spells: Spell[]; - - /** - * @generated from field: repeated NT.Item items = 3; - */ - items: Item[]; - - /** - * @generated from field: uint32 gold = 4; - */ - gold: number; - - /** - * @generated from field: repeated NT.EntityItem objects = 5; - */ - objects: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerHostItemBank"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostItemBank; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostItemBank; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostItemBank; - - static equals(a: ServerHostItemBank | PlainMessage | undefined, b: ServerHostItemBank | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientHostUserTake - */ -export declare class ClientHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string id = 2; - */ - id: string; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientHostUserTake"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTake; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTake; - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTake; - - static equals(a: ClientHostUserTake | PlainMessage | undefined, b: ClientHostUserTake | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerHostUserTake - */ -export declare class ServerHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string id = 2; - */ - id: string; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerHostUserTake"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTake; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTake; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTake; - - static equals(a: ServerHostUserTake | PlainMessage | undefined, b: ServerHostUserTake | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientHostUserTakeGold - */ -export declare class ClientHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientHostUserTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTakeGold; - - static equals(a: ClientHostUserTakeGold | PlainMessage | undefined, b: ClientHostUserTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerHostUserTakeGold - */ -export declare class ServerHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - /** - * @generated from field: bool success = 3; - */ - success: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerHostUserTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTakeGold; - - static equals(a: ServerHostUserTakeGold | PlainMessage | undefined, b: ServerHostUserTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerAddGold - */ -export declare class ClientPlayerAddGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerAddGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddGold; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddGold; - - static equals(a: ClientPlayerAddGold | PlainMessage | undefined, b: ClientPlayerAddGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerAddGold - */ -export declare class ServerPlayerAddGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerAddGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddGold; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddGold; - - static equals(a: ServerPlayerAddGold | PlainMessage | undefined, b: ServerPlayerAddGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerTakeGold - */ -export declare class ClientPlayerTakeGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeGold; - - static equals(a: ClientPlayerTakeGold | PlainMessage | undefined, b: ClientPlayerTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerTakeGold - */ -export declare class ServerPlayerTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerTakeGold"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeGold; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeGold; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeGold; - - static equals(a: ServerPlayerTakeGold | PlainMessage | undefined, b: ServerPlayerTakeGold | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerAddItem - */ -export declare class ClientPlayerAddItem extends Message { - /** - * @generated from oneof NT.ClientPlayerAddItem.item - */ - item: { - /** - * @generated from field: NT.ClientPlayerAddItem.Spells spells = 1; - */ - value: ClientPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem.Wands wands = 2; - */ - value: ClientPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem.Items flasks = 3; - */ - value: ClientPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem.Entities objects = 4; - */ - value: ClientPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerAddItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem; - - static equals(a: ClientPlayerAddItem | PlainMessage | undefined, b: ClientPlayerAddItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerAddItem.Spells - */ -export declare class ClientPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NT.Spell list = 1; - */ - list: Spell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Spells"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Spells; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Spells; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Spells; - - static equals(a: ClientPlayerAddItem_Spells | PlainMessage | undefined, b: ClientPlayerAddItem_Spells | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerAddItem.Wands - */ -export declare class ClientPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NT.Wand list = 1; - */ - list: Wand[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Wands"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Wands; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Wands; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Wands; - - static equals(a: ClientPlayerAddItem_Wands | PlainMessage | undefined, b: ClientPlayerAddItem_Wands | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerAddItem.Items - */ -export declare class ClientPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NT.Item list = 1; - */ - list: Item[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Items"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Items; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Items; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Items; - - static equals(a: ClientPlayerAddItem_Items | PlainMessage | undefined, b: ClientPlayerAddItem_Items | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerAddItem.Entities - */ -export declare class ClientPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NT.EntityItem list = 1; - */ - list: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Entities"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Entities; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Entities; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Entities; - - static equals(a: ClientPlayerAddItem_Entities | PlainMessage | undefined, b: ClientPlayerAddItem_Entities | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerAddItem - */ -export declare class ServerPlayerAddItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from oneof NT.ServerPlayerAddItem.item - */ - item: { - /** - * @generated from field: NT.ServerPlayerAddItem.Spells spells = 2; - */ - value: ServerPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem.Wands wands = 3; - */ - value: ServerPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem.Items flasks = 4; - */ - value: ServerPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem.Entities objects = 5; - */ - value: ServerPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerAddItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem; - - static equals(a: ServerPlayerAddItem | PlainMessage | undefined, b: ServerPlayerAddItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerAddItem.Spells - */ -export declare class ServerPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NT.Spell list = 1; - */ - list: Spell[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Spells"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Spells; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Spells; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Spells; - - static equals(a: ServerPlayerAddItem_Spells | PlainMessage | undefined, b: ServerPlayerAddItem_Spells | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerAddItem.Wands - */ -export declare class ServerPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NT.Wand list = 2; - */ - list: Wand[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Wands"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Wands; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Wands; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Wands; - - static equals(a: ServerPlayerAddItem_Wands | PlainMessage | undefined, b: ServerPlayerAddItem_Wands | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerAddItem.Items - */ -export declare class ServerPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NT.Item list = 3; - */ - list: Item[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Items"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Items; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Items; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Items; - - static equals(a: ServerPlayerAddItem_Items | PlainMessage | undefined, b: ServerPlayerAddItem_Items | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerAddItem.Entities - */ -export declare class ServerPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NT.EntityItem list = 4; - */ - list: EntityItem[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Entities"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Entities; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Entities; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Entities; - - static equals(a: ServerPlayerAddItem_Entities | PlainMessage | undefined, b: ServerPlayerAddItem_Entities | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerTakeItem - */ -export declare class ClientPlayerTakeItem extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerTakeItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeItem; - - static equals(a: ClientPlayerTakeItem | PlainMessage | undefined, b: ClientPlayerTakeItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerTakeItem - */ -export declare class ServerPlayerTakeItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string id = 2; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerTakeItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeItem; - - static equals(a: ServerPlayerTakeItem | PlainMessage | undefined, b: ServerPlayerTakeItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientChat - */ -export declare class ClientChat extends Message { - /** - * @generated from field: string message = 1; - */ - message: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientChat"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientChat; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientChat; - - static fromJsonString(jsonString: string, options?: Partial): ClientChat; - - static equals(a: ClientChat | PlainMessage | undefined, b: ClientChat | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerChat - */ -export declare class ServerChat extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string user_id = 2; - */ - userId: string; - - /** - * @generated from field: string name = 3; - */ - name: string; - - /** - * @generated from field: string message = 4; - */ - message: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerChat"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerChat; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerChat; - - static fromJsonString(jsonString: string, options?: Partial): ServerChat; - - static equals(a: ServerChat | PlainMessage | undefined, b: ServerChat | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerStatsUpdate - */ -export declare class ServerStatsUpdate extends Message { - /** - * @generated from field: string data = 1; - */ - data: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerStatsUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerStatsUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerStatsUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ServerStatsUpdate; - - static equals(a: ServerStatsUpdate | PlainMessage | undefined, b: ServerStatsUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerPickup - */ -export declare class ClientPlayerPickup extends Message { - /** - * @generated from oneof NT.ClientPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NT.ClientPlayerPickup.HeartPickup heart = 1; - */ - value: ClientPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NT.ClientPlayerPickup.OrbPickup orb = 2; - */ - value: ClientPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup; - - static equals(a: ClientPlayerPickup | PlainMessage | undefined, b: ClientPlayerPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerPickup.HeartPickup - */ -export declare class ClientPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerPickup.HeartPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_HeartPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_HeartPickup; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_HeartPickup; - - static equals(a: ClientPlayerPickup_HeartPickup | PlainMessage | undefined, b: ClientPlayerPickup_HeartPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerPickup.OrbPickup - */ -export declare class ClientPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerPickup.OrbPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_OrbPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_OrbPickup; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_OrbPickup; - - static equals(a: ClientPlayerPickup_OrbPickup | PlainMessage | undefined, b: ClientPlayerPickup_OrbPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerPickup - */ -export declare class ServerPlayerPickup extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from oneof NT.ServerPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NT.ServerPlayerPickup.HeartPickup heart = 2; - */ - value: ServerPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NT.ServerPlayerPickup.OrbPickup orb = 3; - */ - value: ServerPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup; - - static equals(a: ServerPlayerPickup | PlainMessage | undefined, b: ServerPlayerPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerPickup.HeartPickup - */ -export declare class ServerPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerPickup.HeartPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_HeartPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_HeartPickup; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_HeartPickup; - - static equals(a: ServerPlayerPickup_HeartPickup | PlainMessage | undefined, b: ServerPlayerPickup_HeartPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerPickup.OrbPickup - */ -export declare class ServerPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerPickup.OrbPickup"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_OrbPickup; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_OrbPickup; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_OrbPickup; - - static equals(a: ServerPlayerPickup_OrbPickup | PlainMessage | undefined, b: ServerPlayerPickup_OrbPickup | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientNemesisPickupItem - */ -export declare class ClientNemesisPickupItem extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientNemesisPickupItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisPickupItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisPickupItem; - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisPickupItem; - - static equals(a: ClientNemesisPickupItem | PlainMessage | undefined, b: ClientNemesisPickupItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerNemesisPickupItem - */ -export declare class ServerNemesisPickupItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string game_id = 2; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerNemesisPickupItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisPickupItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisPickupItem; - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisPickupItem; - - static equals(a: ServerNemesisPickupItem | PlainMessage | undefined, b: ServerNemesisPickupItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientNemesisAbility - */ -export declare class ClientNemesisAbility extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientNemesisAbility"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisAbility; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisAbility; - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisAbility; - - static equals(a: ClientNemesisAbility | PlainMessage | undefined, b: ClientNemesisAbility | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerNemesisAbility - */ -export declare class ServerNemesisAbility extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string game_id = 2; - */ - gameId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerNemesisAbility"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisAbility; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisAbility; - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisAbility; - - static equals(a: ServerNemesisAbility | PlainMessage | undefined, b: ServerNemesisAbility | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerDeath - */ -export declare class ClientPlayerDeath extends Message { - /** - * @generated from field: bool is_win = 1; - */ - isWin: boolean; - - /** - * @generated from field: optional uint32 game_time = 2; - */ - gameTime?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerDeath"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerDeath; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerDeath; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerDeath; - - static equals(a: ClientPlayerDeath | PlainMessage | undefined, b: ClientPlayerDeath | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerDeath - */ -export declare class ServerPlayerDeath extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: bool is_win = 2; - */ - isWin: boolean; - - /** - * @generated from field: optional uint32 game_time = 3; - */ - gameTime?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerDeath"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerDeath; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerDeath; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerDeath; - - static equals(a: ServerPlayerDeath | PlainMessage | undefined, b: ServerPlayerDeath | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerNewGamePlus - */ -export declare class ClientPlayerNewGamePlus extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerNewGamePlus"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerNewGamePlus; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerNewGamePlus; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerNewGamePlus; - - static equals(a: ClientPlayerNewGamePlus | PlainMessage | undefined, b: ClientPlayerNewGamePlus | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerNewGamePlus - */ -export declare class ServerPlayerNewGamePlus extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerNewGamePlus"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerNewGamePlus; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerNewGamePlus; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerNewGamePlus; - - static equals(a: ServerPlayerNewGamePlus | PlainMessage | undefined, b: ServerPlayerNewGamePlus | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientPlayerSecretHourglass - */ -export declare class ClientPlayerSecretHourglass extends Message { - /** - * @generated from field: string material = 1; - */ - material: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientPlayerSecretHourglass"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerSecretHourglass; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerSecretHourglass; - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerSecretHourglass; - - static equals(a: ClientPlayerSecretHourglass | PlainMessage | undefined, b: ClientPlayerSecretHourglass | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerPlayerSecretHourglass - */ -export declare class ServerPlayerSecretHourglass extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string material = 2; - */ - material: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerPlayerSecretHourglass"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerSecretHourglass; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerSecretHourglass; - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerSecretHourglass; - - static equals(a: ServerPlayerSecretHourglass | PlainMessage | undefined, b: ServerPlayerSecretHourglass | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientCustomModEvent - */ -export declare class ClientCustomModEvent extends Message { - /** - * @generated from field: string payload = 1; - */ - payload: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientCustomModEvent"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientCustomModEvent; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientCustomModEvent; - - static fromJsonString(jsonString: string, options?: Partial): ClientCustomModEvent; - - static equals(a: ClientCustomModEvent | PlainMessage | undefined, b: ClientCustomModEvent | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerCustomModEvent - */ -export declare class ServerCustomModEvent extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string payload = 2; - */ - payload: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerCustomModEvent"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerCustomModEvent; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerCustomModEvent; - - static fromJsonString(jsonString: string, options?: Partial): ServerCustomModEvent; - - static equals(a: ServerCustomModEvent | PlainMessage | undefined, b: ServerCustomModEvent | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRespawnPenalty - */ -export declare class ClientRespawnPenalty extends Message { - /** - * @generated from field: uint32 deaths = 1; - */ - deaths: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRespawnPenalty"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRespawnPenalty; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRespawnPenalty; - - static fromJsonString(jsonString: string, options?: Partial): ClientRespawnPenalty; - - static equals(a: ClientRespawnPenalty | PlainMessage | undefined, b: ClientRespawnPenalty | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRespawnPenalty - */ -export declare class ServerRespawnPenalty extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: uint32 deaths = 2; - */ - deaths: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRespawnPenalty"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRespawnPenalty; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRespawnPenalty; - - static fromJsonString(jsonString: string, options?: Partial): ServerRespawnPenalty; - - static equals(a: ServerRespawnPenalty | PlainMessage | undefined, b: ServerRespawnPenalty | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientAngerySteve - */ -export declare class ClientAngerySteve extends Message { - /** - * @generated from field: bool idk = 1; - */ - idk: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientAngerySteve"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientAngerySteve; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientAngerySteve; - - static fromJsonString(jsonString: string, options?: Partial): ClientAngerySteve; - - static equals(a: ClientAngerySteve | PlainMessage | undefined, b: ClientAngerySteve | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerAngerySteve - */ -export declare class ServerAngerySteve extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerAngerySteve"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerAngerySteve; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerAngerySteve; - - static fromJsonString(jsonString: string, options?: Partial): ServerAngerySteve; - - static equals(a: ServerAngerySteve | PlainMessage | undefined, b: ServerAngerySteve | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.Wand - */ -export declare class Wand extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: NT.Wand.WandStats stats = 2; - */ - stats?: Wand_WandStats; - - /** - * @generated from field: repeated NT.Spell always_cast = 3; - */ - alwaysCast: Spell[]; - - /** - * @generated from field: repeated NT.Spell deck = 4; - */ - deck: Spell[]; - - /** - * @generated from field: optional string sent_by = 5; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 6; - */ - contributedBy?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Wand"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand; - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand; - - static fromJsonString(jsonString: string, options?: Partial): Wand; - - static equals(a: Wand | PlainMessage | undefined, b: Wand | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.Wand.WandStats - */ -export declare class Wand_WandStats extends Message { - /** - * @generated from field: string sprite = 1; - */ - sprite: string; - - /** - * @generated from field: bool named = 2; - */ - named: boolean; - - /** - * @generated from field: string ui_name = 3; - */ - uiName: string; - - /** - * @generated from field: float mana_max = 4; - */ - manaMax: number; - - /** - * @generated from field: float mana_charge_speed = 5; - */ - manaChargeSpeed: number; - - /** - * @generated from field: int32 reload_time = 6; - */ - reloadTime: number; - - /** - * @generated from field: uint32 actions_per_round = 7; - */ - actionsPerRound: number; - - /** - * @generated from field: uint32 deck_capacity = 8; - */ - deckCapacity: number; - - /** - * @generated from field: bool shuffle_deck_when_empty = 9; - */ - shuffleDeckWhenEmpty: boolean; - - /** - * @generated from field: float spread_degrees = 10; - */ - spreadDegrees: number; - - /** - * @generated from field: float speed_multiplier = 11; - */ - speedMultiplier: number; - - /** - * @generated from field: int32 fire_rate_wait = 12; - */ - fireRateWait: number; - - /** - * @generated from field: float tip_x = 13; - */ - tipX: number; - - /** - * @generated from field: float tip_y = 14; - */ - tipY: number; - - /** - * @generated from field: float grip_x = 15; - */ - gripX: number; - - /** - * @generated from field: float grip_y = 16; - */ - gripY: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Wand.WandStats"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand_WandStats; - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand_WandStats; - - static fromJsonString(jsonString: string, options?: Partial): Wand_WandStats; - - static equals(a: Wand_WandStats | PlainMessage | undefined, b: Wand_WandStats | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.Spell - */ -export declare class Spell extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string game_id = 2; - */ - gameId: string; - - /** - * @generated from field: optional string sent_by = 3; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 4; - */ - contributedBy?: string; - - /** - * @generated from field: int32 uses_remaining = 5; - */ - usesRemaining: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Spell"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Spell; - - static fromJson(jsonValue: JsonValue, options?: Partial): Spell; - - static fromJsonString(jsonString: string, options?: Partial): Spell; - - static equals(a: Spell | PlainMessage | undefined, b: Spell | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.Item - */ -export declare class Item extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: NT.Item.Color color = 2; - */ - color?: Item_Color; - - /** - * @generated from field: repeated NT.Item.Material content = 3; - */ - content: Item_Material[]; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 5; - */ - contributedBy?: string; - - /** - * @generated from field: bool is_chest = 6 [deprecated = true]; - * @deprecated - */ - isChest: boolean; - - /** - * @generated from field: string item_type = 7; - */ - itemType: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Item"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Item; - - static fromJson(jsonValue: JsonValue, options?: Partial): Item; - - static fromJsonString(jsonString: string, options?: Partial): Item; - - static equals(a: Item | PlainMessage | undefined, b: Item | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.Item.Color - */ -export declare class Item_Color extends Message { - /** - * @generated from field: float r = 1; - */ - r: number; - - /** - * @generated from field: float g = 2; - */ - g: number; - - /** - * @generated from field: float b = 3; - */ - b: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Item.Color"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Color; - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Color; - - static fromJsonString(jsonString: string, options?: Partial): Item_Color; - - static equals(a: Item_Color | PlainMessage | undefined, b: Item_Color | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.Item.Material - */ -export declare class Item_Material extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id: number; - - /** - * @generated from field: uint32 amount = 2; - */ - amount: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.Item.Material"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Material; - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Material; - - static fromJsonString(jsonString: string, options?: Partial): Item_Material; - - static equals(a: Item_Material | PlainMessage | undefined, b: Item_Material | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.EntityItem - */ -export declare class EntityItem extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string path = 2; - */ - path: string; - - /** - * @generated from field: string sprite = 3; - */ - sprite: string; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.EntityItem"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): EntityItem; - - static fromJson(jsonValue: JsonValue, options?: Partial): EntityItem; - - static fromJsonString(jsonString: string, options?: Partial): EntityItem; - - static equals(a: EntityItem | PlainMessage | undefined, b: EntityItem | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.LobbyAction - */ -export declare class LobbyAction extends Message { - /** - * @generated from oneof NT.LobbyAction.action - */ - action: { - /** - * @generated from field: NT.ClientRoomCreate c_room_create = 1; - */ - value: ClientRoomCreate; - case: "cRoomCreate"; - } | { - /** - * @generated from field: NT.ServerRoomCreated s_room_created = 2; - */ - value: ServerRoomCreated; - case: "sRoomCreated"; - } | { - /** - * @generated from field: NT.ServerRoomCreateFailed s_room_create_failed = 3; - */ - value: ServerRoomCreateFailed; - case: "sRoomCreateFailed"; - } | { - /** - * @generated from field: NT.ClientRoomUpdate c_room_update = 4; - */ - value: ClientRoomUpdate; - case: "cRoomUpdate"; - } | { - /** - * @generated from field: NT.ServerRoomUpdated s_room_updated = 5; - */ - value: ServerRoomUpdated; - case: "sRoomUpdated"; - } | { - /** - * @generated from field: NT.ServerRoomUpdateFailed s_room_update_failed = 6; - */ - value: ServerRoomUpdateFailed; - case: "sRoomUpdateFailed"; - } | { - /** - * @generated from field: NT.ClientRoomFlagsUpdate c_room_flags_update = 7; - */ - value: ClientRoomFlagsUpdate; - case: "cRoomFlagsUpdate"; - } | { - /** - * @generated from field: NT.ServerRoomFlagsUpdated s_room_flags_updated = 8; - */ - value: ServerRoomFlagsUpdated; - case: "sRoomFlagsUpdated"; - } | { - /** - * @generated from field: NT.ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - */ - value: ServerRoomFlagsUpdateFailed; - case: "sRoomFlagsUpdateFailed"; - } | { - /** - * @generated from field: NT.ClientRoomDelete c_room_delete = 10; - */ - value: ClientRoomDelete; - case: "cRoomDelete"; - } | { - /** - * @generated from field: NT.ServerRoomDeleted s_room_deleted = 11; - */ - value: ServerRoomDeleted; - case: "sRoomDeleted"; - } | { - /** - * @generated from field: NT.ClientJoinRoom c_join_room = 12; - */ - value: ClientJoinRoom; - case: "cJoinRoom"; - } | { - /** - * @generated from field: NT.ServerJoinRoomSuccess s_join_room_success = 13; - */ - value: ServerJoinRoomSuccess; - case: "sJoinRoomSuccess"; - } | { - /** - * @generated from field: NT.ServerJoinRoomFailed s_join_room_failed = 14; - */ - value: ServerJoinRoomFailed; - case: "sJoinRoomFailed"; - } | { - /** - * @generated from field: NT.ServerUserJoinedRoom s_user_joined_room = 15; - */ - value: ServerUserJoinedRoom; - case: "sUserJoinedRoom"; - } | { - /** - * @generated from field: NT.ClientLeaveRoom c_leave_room = 16; - */ - value: ClientLeaveRoom; - case: "cLeaveRoom"; - } | { - /** - * @generated from field: NT.ServerUserLeftRoom s_user_left_room = 17; - */ - value: ServerUserLeftRoom; - case: "sUserLeftRoom"; - } | { - /** - * @generated from field: NT.ClientKickUser c_kick_user = 18; - */ - value: ClientKickUser; - case: "cKickUser"; - } | { - /** - * @generated from field: NT.ServerUserKicked s_user_kicked = 19; - */ - value: ServerUserKicked; - case: "sUserKicked"; - } | { - /** - * @generated from field: NT.ClientBanUser c_ban_user = 20; - */ - value: ClientBanUser; - case: "cBanUser"; - } | { - /** - * @generated from field: NT.ServerUserBanned s_user_banned = 21; - */ - value: ServerUserBanned; - case: "sUserBanned"; - } | { - /** - * @generated from field: NT.ClientReadyState c_ready_state = 22; - */ - value: ClientReadyState; - case: "cReadyState"; - } | { - /** - * @generated from field: NT.ServerUserReadyState s_user_ready_state = 23; - */ - value: ServerUserReadyState; - case: "sUserReadyState"; - } | { - /** - * @generated from field: NT.ClientStartRun c_start_run = 24; - */ - value: ClientStartRun; - case: "cStartRun"; - } | { - /** - * @generated from field: NT.ServerHostStart s_host_start = 25; - */ - value: ServerHostStart; - case: "sHostStart"; - } | { - /** - * @generated from field: NT.ClientRequestRoomList c_request_room_list = 27; - */ - value: ClientRequestRoomList; - case: "cRequestRoomList"; - } | { - /** - * @generated from field: NT.ServerRoomList s_room_list = 28; - */ - value: ServerRoomList; - case: "sRoomList"; - } | { - /** - * @generated from field: NT.ServerDisconnected s_disconnected = 31; - */ - value: ServerDisconnected; - case: "sDisconnected"; - } | { - /** - * @generated from field: NT.ServerRoomAddToList s_room_add_to_list = 32; - */ - value: ServerRoomAddToList; - case: "sRoomAddToList"; - } | { - /** - * @generated from field: NT.ClientRunOver c_run_over = 33; - */ - value: ClientRunOver; - case: "cRunOver"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.LobbyAction"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): LobbyAction; - - static fromJson(jsonValue: JsonValue, options?: Partial): LobbyAction; - - static fromJsonString(jsonString: string, options?: Partial): LobbyAction; - - static equals(a: LobbyAction | PlainMessage | undefined, b: LobbyAction | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRunOver - */ -export declare class ClientRunOver extends Message { - /** - * @generated from field: optional bool idk = 1; - */ - idk?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRunOver"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRunOver; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRunOver; - - static fromJsonString(jsonString: string, options?: Partial): ClientRunOver; - - static equals(a: ClientRunOver | PlainMessage | undefined, b: ClientRunOver | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerDisconnected - */ -export declare class ServerDisconnected extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerDisconnected"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerDisconnected; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerDisconnected; - - static fromJsonString(jsonString: string, options?: Partial): ServerDisconnected; - - static equals(a: ServerDisconnected | PlainMessage | undefined, b: ServerDisconnected | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRoomDelete - */ -export declare class ClientRoomDelete extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRoomDelete"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomDelete; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomDelete; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomDelete; - - static equals(a: ClientRoomDelete | PlainMessage | undefined, b: ClientRoomDelete | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomDeleted - */ -export declare class ServerRoomDeleted extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomDeleted"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomDeleted; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomDeleted; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomDeleted; - - static equals(a: ServerRoomDeleted | PlainMessage | undefined, b: ServerRoomDeleted | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRoomCreate - */ -export declare class ClientRoomCreate extends Message { - /** - * @generated from field: string name = 1; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 2; - */ - gamemode: number; - - /** - * @generated from field: uint32 max_users = 3; - */ - maxUsers: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRoomCreate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomCreate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomCreate; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomCreate; - - static equals(a: ClientRoomCreate | PlainMessage | undefined, b: ClientRoomCreate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomCreated - */ -export declare class ServerRoomCreated extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers: number; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked: boolean; - - /** - * @generated from field: repeated NT.ServerRoomCreated.User users = 7; - */ - users: ServerRoomCreated_User[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomCreated"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated; - - static equals(a: ServerRoomCreated | PlainMessage | undefined, b: ServerRoomCreated | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomCreated.User - */ -export declare class ServerRoomCreated_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: bool ready = 3; - */ - ready: boolean; - - /** - * @generated from field: bool owner = 4; - */ - owner: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomCreated.User"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated_User; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated_User; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated_User; - - static equals(a: ServerRoomCreated_User | PlainMessage | undefined, b: ServerRoomCreated_User | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomCreateFailed - */ -export declare class ServerRoomCreateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomCreateFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreateFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreateFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreateFailed; - - static equals(a: ServerRoomCreateFailed | PlainMessage | undefined, b: ServerRoomCreateFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRoomUpdate - */ -export declare class ClientRoomUpdate extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRoomUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomUpdate; - - static equals(a: ClientRoomUpdate | PlainMessage | undefined, b: ClientRoomUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomUpdated - */ -export declare class ServerRoomUpdated extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomUpdated"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdated; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdated; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdated; - - static equals(a: ServerRoomUpdated | PlainMessage | undefined, b: ServerRoomUpdated | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomUpdateFailed - */ -export declare class ServerRoomUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomUpdateFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdateFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdateFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdateFailed; - - static equals(a: ServerRoomUpdateFailed | PlainMessage | undefined, b: ServerRoomUpdateFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRoomFlagsUpdate - */ -export declare class ClientRoomFlagsUpdate extends Message { - /** - * @generated from field: repeated NT.ClientRoomFlagsUpdate.GameFlag flags = 1; - */ - flags: ClientRoomFlagsUpdate_GameFlag[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRoomFlagsUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate; - - static equals(a: ClientRoomFlagsUpdate | PlainMessage | undefined, b: ClientRoomFlagsUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRoomFlagsUpdate.GameFlag - */ -export declare class ClientRoomFlagsUpdate_GameFlag extends Message { - /** - * TODO: This seems like a hack, please improve it - * - * @generated from field: string flag = 1; - */ - flag: string; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRoomFlagsUpdate.GameFlag"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate_GameFlag; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate_GameFlag; - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate_GameFlag; - - static equals(a: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined, b: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomFlagsUpdated - */ -export declare class ServerRoomFlagsUpdated extends Message { - /** - * @generated from field: repeated NT.ServerRoomFlagsUpdated.GameFlag flags = 1; - */ - flags: ServerRoomFlagsUpdated_GameFlag[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomFlagsUpdated"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated; - - static equals(a: ServerRoomFlagsUpdated | PlainMessage | undefined, b: ServerRoomFlagsUpdated | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomFlagsUpdated.GameFlag - */ -export declare class ServerRoomFlagsUpdated_GameFlag extends Message { - /** - * @generated from field: string flag = 1; - */ - flag: string; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomFlagsUpdated.GameFlag"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated_GameFlag; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated_GameFlag; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated_GameFlag; - - static equals(a: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined, b: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomFlagsUpdateFailed - */ -export declare class ServerRoomFlagsUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomFlagsUpdateFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdateFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdateFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdateFailed; - - static equals(a: ServerRoomFlagsUpdateFailed | PlainMessage | undefined, b: ServerRoomFlagsUpdateFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientJoinRoom - */ -export declare class ClientJoinRoom extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: optional string password = 2; - */ - password?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientJoinRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientJoinRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientJoinRoom; - - static fromJsonString(jsonString: string, options?: Partial): ClientJoinRoom; - - static equals(a: ClientJoinRoom | PlainMessage | undefined, b: ClientJoinRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerJoinRoomSuccess - */ -export declare class ServerJoinRoomSuccess extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers: number; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked: boolean; - - /** - * @generated from field: repeated NT.ServerJoinRoomSuccess.User users = 7; - */ - users: ServerJoinRoomSuccess_User[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerJoinRoomSuccess"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess; - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess; - - static equals(a: ServerJoinRoomSuccess | PlainMessage | undefined, b: ServerJoinRoomSuccess | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerJoinRoomSuccess.User - */ -export declare class ServerJoinRoomSuccess_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: bool ready = 3; - */ - ready: boolean; - - /** - * @generated from field: bool owner = 4; - */ - owner: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerJoinRoomSuccess.User"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess_User; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess_User; - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess_User; - - static equals(a: ServerJoinRoomSuccess_User | PlainMessage | undefined, b: ServerJoinRoomSuccess_User | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerJoinRoomFailed - */ -export declare class ServerJoinRoomFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerJoinRoomFailed"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomFailed; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomFailed; - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomFailed; - - static equals(a: ServerJoinRoomFailed | PlainMessage | undefined, b: ServerJoinRoomFailed | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerUserJoinedRoom - */ -export declare class ServerUserJoinedRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerUserJoinedRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserJoinedRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserJoinedRoom; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserJoinedRoom; - - static equals(a: ServerUserJoinedRoom | PlainMessage | undefined, b: ServerUserJoinedRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientLeaveRoom - */ -export declare class ClientLeaveRoom extends Message { - /** - * should be empty msg - * - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientLeaveRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientLeaveRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientLeaveRoom; - - static fromJsonString(jsonString: string, options?: Partial): ClientLeaveRoom; - - static equals(a: ClientLeaveRoom | PlainMessage | undefined, b: ClientLeaveRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerUserLeftRoom - */ -export declare class ServerUserLeftRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerUserLeftRoom"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserLeftRoom; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserLeftRoom; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserLeftRoom; - - static equals(a: ServerUserLeftRoom | PlainMessage | undefined, b: ServerUserLeftRoom | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientKickUser - */ -export declare class ClientKickUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientKickUser"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientKickUser; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientKickUser; - - static fromJsonString(jsonString: string, options?: Partial): ClientKickUser; - - static equals(a: ClientKickUser | PlainMessage | undefined, b: ClientKickUser | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerUserKicked - */ -export declare class ServerUserKicked extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerUserKicked"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserKicked; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserKicked; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserKicked; - - static equals(a: ServerUserKicked | PlainMessage | undefined, b: ServerUserKicked | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientBanUser - */ -export declare class ClientBanUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientBanUser"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientBanUser; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientBanUser; - - static fromJsonString(jsonString: string, options?: Partial): ClientBanUser; - - static equals(a: ClientBanUser | PlainMessage | undefined, b: ClientBanUser | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerUserBanned - */ -export declare class ServerUserBanned extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerUserBanned"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserBanned; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserBanned; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserBanned; - - static equals(a: ServerUserBanned | PlainMessage | undefined, b: ServerUserBanned | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientReadyState - */ -export declare class ClientReadyState extends Message { - /** - * @generated from field: bool ready = 1; - */ - ready: boolean; - - /** - * @generated from field: optional string seed = 2; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 3; - */ - mods: string[]; - - /** - * @generated from field: optional string version = 4; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 5; - */ - beta?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientReadyState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientReadyState; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientReadyState; - - static fromJsonString(jsonString: string, options?: Partial): ClientReadyState; - - static equals(a: ClientReadyState | PlainMessage | undefined, b: ClientReadyState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerUserReadyState - */ -export declare class ServerUserReadyState extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId: string; - - /** - * @generated from field: bool ready = 2; - */ - ready: boolean; - - /** - * @generated from field: optional string seed = 3; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 4; - */ - mods: string[]; - - /** - * @generated from field: optional string version = 5; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 6; - */ - beta?: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerUserReadyState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserReadyState; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserReadyState; - - static fromJsonString(jsonString: string, options?: Partial): ServerUserReadyState; - - static equals(a: ServerUserReadyState | PlainMessage | undefined, b: ServerUserReadyState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientStartRun - */ -export declare class ClientStartRun extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientStartRun"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientStartRun; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientStartRun; - - static fromJsonString(jsonString: string, options?: Partial): ClientStartRun; - - static equals(a: ClientStartRun | PlainMessage | undefined, b: ClientStartRun | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerHostStart - */ -export declare class ServerHostStart extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerHostStart"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostStart; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostStart; - - static fromJsonString(jsonString: string, options?: Partial): ServerHostStart; - - static equals(a: ServerHostStart | PlainMessage | undefined, b: ServerHostStart | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ClientRequestRoomList - */ -export declare class ClientRequestRoomList extends Message { - /** - * @generated from field: uint32 page = 1; - */ - page: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ClientRequestRoomList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRequestRoomList; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRequestRoomList; - - static fromJsonString(jsonString: string, options?: Partial): ClientRequestRoomList; - - static equals(a: ClientRequestRoomList | PlainMessage | undefined, b: ClientRequestRoomList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomList - */ -export declare class ServerRoomList extends Message { - /** - * @generated from field: repeated NT.ServerRoomList.Room rooms = 1; - */ - rooms: ServerRoomList_Room[]; - - /** - * @generated from field: optional uint32 pages = 2; - */ - pages?: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList; - - static equals(a: ServerRoomList | PlainMessage | undefined, b: ServerRoomList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomList.Room - */ -export declare class ServerRoomList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers: number; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers: number; - - /** - * @generated from field: bool protected = 6; - */ - protected: boolean; - - /** - * @generated from field: string owner = 7; - */ - owner: string; - - /** - * @generated from field: bool locked = 8; - */ - locked: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomList.Room"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList_Room; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList_Room; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList_Room; - - static equals(a: ServerRoomList_Room | PlainMessage | undefined, b: ServerRoomList_Room | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomAddToList - */ -export declare class ServerRoomAddToList extends Message { - /** - * @generated from field: NT.ServerRoomAddToList.Room room = 1; - */ - room?: ServerRoomAddToList_Room; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomAddToList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList; - - static equals(a: ServerRoomAddToList | PlainMessage | undefined, b: ServerRoomAddToList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message NT.ServerRoomAddToList.Room - */ -export declare class ServerRoomAddToList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode: number; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers: number; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers: number; - - /** - * @generated from field: bool protected = 6; - */ - protected: boolean; - - /** - * @generated from field: string owner = 7; - */ - owner: string; - - /** - * @generated from field: bool locked = 8; - */ - locked: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "NT.ServerRoomAddToList.Room"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList_Room; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList_Room; - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList_Room; - - static equals(a: ServerRoomAddToList_Room | PlainMessage | undefined, b: ServerRoomAddToList_Room | PlainMessage | undefined): boolean; -} - diff --git a/nt-app/src/gen/messages_pb.js b/nt-app/src/gen/messages_pb.js deleted file mode 100644 index 3009259d..00000000 --- a/nt-app/src/gen/messages_pb.js +++ /dev/null @@ -1,1344 +0,0 @@ -// @generated by protoc-gen-es v1.4.1 -// @generated from file messages.proto (package NT, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message NT.Envelope - */ -export const Envelope = proto3.makeMessageType( - "NT.Envelope", - () => [ - { no: 1, name: "game_action", kind: "message", T: GameAction, oneof: "kind" }, - { no: 50, name: "lobby_action", kind: "message", T: LobbyAction, oneof: "kind" }, - ], -); - -/** - * @generated from message NT.GameAction - */ -export const GameAction = proto3.makeMessageType( - "NT.GameAction", - () => [ - { no: 1, name: "c_player_move", kind: "message", T: ClientPlayerMove, oneof: "action" }, - { no: 2, name: "s_player_move", kind: "message", T: ServerPlayerMove, oneof: "action" }, - { no: 3, name: "c_player_update", kind: "message", T: ClientPlayerUpdate, oneof: "action" }, - { no: 4, name: "s_player_update", kind: "message", T: ServerPlayerUpdate, oneof: "action" }, - { no: 5, name: "c_player_update_inventory", kind: "message", T: ClientPlayerUpdateInventory, oneof: "action" }, - { no: 6, name: "s_player_update_inventory", kind: "message", T: ServerPlayerUpdateInventory, oneof: "action" }, - { no: 7, name: "c_host_item_bank", kind: "message", T: ClientHostItemBank, oneof: "action" }, - { no: 8, name: "s_host_item_bank", kind: "message", T: ServerHostItemBank, oneof: "action" }, - { no: 9, name: "c_host_user_take", kind: "message", T: ClientHostUserTake, oneof: "action" }, - { no: 10, name: "s_host_user_take", kind: "message", T: ServerHostUserTake, oneof: "action" }, - { no: 11, name: "c_host_user_take_gold", kind: "message", T: ClientHostUserTakeGold, oneof: "action" }, - { no: 12, name: "s_host_user_take_gold", kind: "message", T: ServerHostUserTakeGold, oneof: "action" }, - { no: 13, name: "c_player_add_gold", kind: "message", T: ClientPlayerAddGold, oneof: "action" }, - { no: 14, name: "s_player_add_gold", kind: "message", T: ServerPlayerAddGold, oneof: "action" }, - { no: 15, name: "c_player_take_gold", kind: "message", T: ClientPlayerTakeGold, oneof: "action" }, - { no: 16, name: "s_player_take_gold", kind: "message", T: ServerPlayerTakeGold, oneof: "action" }, - { no: 17, name: "c_player_add_item", kind: "message", T: ClientPlayerAddItem, oneof: "action" }, - { no: 18, name: "s_player_add_item", kind: "message", T: ServerPlayerAddItem, oneof: "action" }, - { no: 19, name: "c_player_take_item", kind: "message", T: ClientPlayerTakeItem, oneof: "action" }, - { no: 20, name: "s_player_take_item", kind: "message", T: ServerPlayerTakeItem, oneof: "action" }, - { no: 21, name: "c_player_pickup", kind: "message", T: ClientPlayerPickup, oneof: "action" }, - { no: 22, name: "s_player_pickup", kind: "message", T: ServerPlayerPickup, oneof: "action" }, - { no: 23, name: "c_nemesis_ability", kind: "message", T: ClientNemesisAbility, oneof: "action" }, - { no: 24, name: "s_nemesis_ability", kind: "message", T: ServerNemesisAbility, oneof: "action" }, - { no: 25, name: "c_nemesis_pickup_item", kind: "message", T: ClientNemesisPickupItem, oneof: "action" }, - { no: 26, name: "s_nemesis_pickup_item", kind: "message", T: ServerNemesisPickupItem, oneof: "action" }, - { no: 27, name: "c_chat", kind: "message", T: ClientChat, oneof: "action" }, - { no: 28, name: "s_chat", kind: "message", T: ServerChat, oneof: "action" }, - { no: 29, name: "c_player_death", kind: "message", T: ClientPlayerDeath, oneof: "action" }, - { no: 30, name: "s_player_death", kind: "message", T: ServerPlayerDeath, oneof: "action" }, - { no: 31, name: "c_player_new_game_plus", kind: "message", T: ClientPlayerNewGamePlus, oneof: "action" }, - { no: 32, name: "s_player_new_game_plus", kind: "message", T: ServerPlayerNewGamePlus, oneof: "action" }, - { no: 33, name: "c_player_secret_hourglass", kind: "message", T: ClientPlayerSecretHourglass, oneof: "action" }, - { no: 34, name: "s_player_secret_hourglass", kind: "message", T: ServerPlayerSecretHourglass, oneof: "action" }, - { no: 35, name: "c_custom_mod_event", kind: "message", T: ClientCustomModEvent, oneof: "action" }, - { no: 36, name: "s_custom_mod_event", kind: "message", T: ServerCustomModEvent, oneof: "action" }, - { no: 37, name: "c_respawn_penalty", kind: "message", T: ClientRespawnPenalty, oneof: "action" }, - { no: 38, name: "s_respawn_penalty", kind: "message", T: ServerRespawnPenalty, oneof: "action" }, - { no: 39, name: "c_angery_steve", kind: "message", T: ClientAngerySteve, oneof: "action" }, - { no: 40, name: "s_angery_steve", kind: "message", T: ServerAngerySteve, oneof: "action" }, - { no: 41, name: "s_player_pos", kind: "message", T: ServerPlayerPos, oneof: "action" }, - { no: 42, name: "s_stat_update", kind: "message", T: ServerStatsUpdate, oneof: "action" }, - ], -); - -/** - * @generated from message NT.PlayerFrame - */ -export const PlayerFrame = proto3.makeMessageType( - "NT.PlayerFrame", - () => [ - { no: 1, name: "x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "arm_r", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "arm_scale_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "scale_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 6, name: "anim", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 7, name: "held", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerPlayerPos - */ -export const ServerPlayerPos = proto3.makeMessageType( - "NT.ServerPlayerPos", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerMove - */ -export const ClientPlayerMove = proto3.makeMessageType( - "NT.ClientPlayerMove", - () => [ - { no: 1, name: "frames", kind: "message", T: PlayerFrame, repeated: true }, - ], -); - -/** - * @generated from message NT.ServerPlayerMove - */ -export const ServerPlayerMove = proto3.makeMessageType( - "NT.ServerPlayerMove", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "frames", kind: "message", T: PlayerFrame, repeated: true }, - ], -); - -/** - * @generated from message NT.ClientPlayerUpdate - */ -export const ClientPlayerUpdate = proto3.makeMessageType( - "NT.ClientPlayerUpdate", - () => [ - { no: 1, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerPlayerUpdate - */ -export const ServerPlayerUpdate = proto3.makeMessageType( - "NT.ServerPlayerUpdate", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ClientPlayerUpdateInventory - */ -export const ClientPlayerUpdateInventory = proto3.makeMessageType( - "NT.ClientPlayerUpdateInventory", - () => [ - { no: 1, name: "wands", kind: "message", T: ClientPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 2, name: "items", kind: "message", T: ClientPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 3, name: "spells", kind: "message", T: ClientPlayerUpdateInventory_InventorySpell, repeated: true }, - ], -); - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventoryWand - */ -export const ClientPlayerUpdateInventory_InventoryWand = proto3.makeMessageType( - "NT.ClientPlayerUpdateInventory.InventoryWand", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ], - {localName: "ClientPlayerUpdateInventory_InventoryWand"}, -); - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventoryItem - */ -export const ClientPlayerUpdateInventory_InventoryItem = proto3.makeMessageType( - "NT.ClientPlayerUpdateInventory.InventoryItem", - () => [ - { no: 3, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "item", kind: "message", T: Item }, - ], - {localName: "ClientPlayerUpdateInventory_InventoryItem"}, -); - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventorySpell - */ -export const ClientPlayerUpdateInventory_InventorySpell = proto3.makeMessageType( - "NT.ClientPlayerUpdateInventory.InventorySpell", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ], - {localName: "ClientPlayerUpdateInventory_InventorySpell"}, -); - -/** - * @generated from message NT.ServerPlayerUpdateInventory - */ -export const ServerPlayerUpdateInventory = proto3.makeMessageType( - "NT.ServerPlayerUpdateInventory", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wands", kind: "message", T: ServerPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 3, name: "items", kind: "message", T: ServerPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 4, name: "spells", kind: "message", T: ServerPlayerUpdateInventory_InventorySpell, repeated: true }, - ], -); - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventoryWand - */ -export const ServerPlayerUpdateInventory_InventoryWand = proto3.makeMessageType( - "NT.ServerPlayerUpdateInventory.InventoryWand", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ], - {localName: "ServerPlayerUpdateInventory_InventoryWand"}, -); - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventoryItem - */ -export const ServerPlayerUpdateInventory_InventoryItem = proto3.makeMessageType( - "NT.ServerPlayerUpdateInventory.InventoryItem", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "item", kind: "message", T: Item }, - ], - {localName: "ServerPlayerUpdateInventory_InventoryItem"}, -); - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventorySpell - */ -export const ServerPlayerUpdateInventory_InventorySpell = proto3.makeMessageType( - "NT.ServerPlayerUpdateInventory.InventorySpell", - () => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ], - {localName: "ServerPlayerUpdateInventory_InventorySpell"}, -); - -/** - * @generated from message NT.ClientHostItemBank - */ -export const ClientHostItemBank = proto3.makeMessageType( - "NT.ClientHostItemBank", - () => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ], -); - -/** - * @generated from message NT.ServerHostItemBank - */ -export const ServerHostItemBank = proto3.makeMessageType( - "NT.ServerHostItemBank", - () => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ], -); - -/** - * @generated from message NT.ClientHostUserTake - */ -export const ClientHostUserTake = proto3.makeMessageType( - "NT.ClientHostUserTake", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ServerHostUserTake - */ -export const ServerHostUserTake = proto3.makeMessageType( - "NT.ServerHostUserTake", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ClientHostUserTakeGold - */ -export const ClientHostUserTakeGold = proto3.makeMessageType( - "NT.ClientHostUserTakeGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ServerHostUserTakeGold - */ -export const ServerHostUserTakeGold = proto3.makeMessageType( - "NT.ServerHostUserTakeGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerAddGold - */ -export const ClientPlayerAddGold = proto3.makeMessageType( - "NT.ClientPlayerAddGold", - () => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ServerPlayerAddGold - */ -export const ServerPlayerAddGold = proto3.makeMessageType( - "NT.ServerPlayerAddGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerTakeGold - */ -export const ClientPlayerTakeGold = proto3.makeMessageType( - "NT.ClientPlayerTakeGold", - () => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ServerPlayerTakeGold - */ -export const ServerPlayerTakeGold = proto3.makeMessageType( - "NT.ServerPlayerTakeGold", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerAddItem - */ -export const ClientPlayerAddItem = proto3.makeMessageType( - "NT.ClientPlayerAddItem", - () => [ - { no: 1, name: "spells", kind: "message", T: ClientPlayerAddItem_Spells, oneof: "item" }, - { no: 2, name: "wands", kind: "message", T: ClientPlayerAddItem_Wands, oneof: "item" }, - { no: 3, name: "flasks", kind: "message", T: ClientPlayerAddItem_Items, oneof: "item" }, - { no: 4, name: "objects", kind: "message", T: ClientPlayerAddItem_Entities, oneof: "item" }, - ], -); - -/** - * @generated from message NT.ClientPlayerAddItem.Spells - */ -export const ClientPlayerAddItem_Spells = proto3.makeMessageType( - "NT.ClientPlayerAddItem.Spells", - () => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Spells"}, -); - -/** - * @generated from message NT.ClientPlayerAddItem.Wands - */ -export const ClientPlayerAddItem_Wands = proto3.makeMessageType( - "NT.ClientPlayerAddItem.Wands", - () => [ - { no: 1, name: "list", kind: "message", T: Wand, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Wands"}, -); - -/** - * @generated from message NT.ClientPlayerAddItem.Items - */ -export const ClientPlayerAddItem_Items = proto3.makeMessageType( - "NT.ClientPlayerAddItem.Items", - () => [ - { no: 1, name: "list", kind: "message", T: Item, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Items"}, -); - -/** - * @generated from message NT.ClientPlayerAddItem.Entities - */ -export const ClientPlayerAddItem_Entities = proto3.makeMessageType( - "NT.ClientPlayerAddItem.Entities", - () => [ - { no: 1, name: "list", kind: "message", T: EntityItem, repeated: true }, - ], - {localName: "ClientPlayerAddItem_Entities"}, -); - -/** - * @generated from message NT.ServerPlayerAddItem - */ -export const ServerPlayerAddItem = proto3.makeMessageType( - "NT.ServerPlayerAddItem", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "spells", kind: "message", T: ServerPlayerAddItem_Spells, oneof: "item" }, - { no: 3, name: "wands", kind: "message", T: ServerPlayerAddItem_Wands, oneof: "item" }, - { no: 4, name: "flasks", kind: "message", T: ServerPlayerAddItem_Items, oneof: "item" }, - { no: 5, name: "objects", kind: "message", T: ServerPlayerAddItem_Entities, oneof: "item" }, - ], -); - -/** - * @generated from message NT.ServerPlayerAddItem.Spells - */ -export const ServerPlayerAddItem_Spells = proto3.makeMessageType( - "NT.ServerPlayerAddItem.Spells", - () => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Spells"}, -); - -/** - * @generated from message NT.ServerPlayerAddItem.Wands - */ -export const ServerPlayerAddItem_Wands = proto3.makeMessageType( - "NT.ServerPlayerAddItem.Wands", - () => [ - { no: 2, name: "list", kind: "message", T: Wand, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Wands"}, -); - -/** - * @generated from message NT.ServerPlayerAddItem.Items - */ -export const ServerPlayerAddItem_Items = proto3.makeMessageType( - "NT.ServerPlayerAddItem.Items", - () => [ - { no: 3, name: "list", kind: "message", T: Item, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Items"}, -); - -/** - * @generated from message NT.ServerPlayerAddItem.Entities - */ -export const ServerPlayerAddItem_Entities = proto3.makeMessageType( - "NT.ServerPlayerAddItem.Entities", - () => [ - { no: 4, name: "list", kind: "message", T: EntityItem, repeated: true }, - ], - {localName: "ServerPlayerAddItem_Entities"}, -); - -/** - * @generated from message NT.ClientPlayerTakeItem - */ -export const ClientPlayerTakeItem = proto3.makeMessageType( - "NT.ClientPlayerTakeItem", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerPlayerTakeItem - */ -export const ServerPlayerTakeItem = proto3.makeMessageType( - "NT.ServerPlayerTakeItem", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientChat - */ -export const ClientChat = proto3.makeMessageType( - "NT.ClientChat", - () => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerChat - */ -export const ServerChat = proto3.makeMessageType( - "NT.ServerChat", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerStatsUpdate - */ -export const ServerStatsUpdate = proto3.makeMessageType( - "NT.ServerStatsUpdate", - () => [ - { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerPickup - */ -export const ClientPlayerPickup = proto3.makeMessageType( - "NT.ClientPlayerPickup", - () => [ - { no: 1, name: "heart", kind: "message", T: ClientPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 2, name: "orb", kind: "message", T: ClientPlayerPickup_OrbPickup, oneof: "kind" }, - ], -); - -/** - * @generated from message NT.ClientPlayerPickup.HeartPickup - */ -export const ClientPlayerPickup_HeartPickup = proto3.makeMessageType( - "NT.ClientPlayerPickup.HeartPickup", - () => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ClientPlayerPickup_HeartPickup"}, -); - -/** - * @generated from message NT.ClientPlayerPickup.OrbPickup - */ -export const ClientPlayerPickup_OrbPickup = proto3.makeMessageType( - "NT.ClientPlayerPickup.OrbPickup", - () => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], - {localName: "ClientPlayerPickup_OrbPickup"}, -); - -/** - * @generated from message NT.ServerPlayerPickup - */ -export const ServerPlayerPickup = proto3.makeMessageType( - "NT.ServerPlayerPickup", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "heart", kind: "message", T: ServerPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 3, name: "orb", kind: "message", T: ServerPlayerPickup_OrbPickup, oneof: "kind" }, - ], -); - -/** - * @generated from message NT.ServerPlayerPickup.HeartPickup - */ -export const ServerPlayerPickup_HeartPickup = proto3.makeMessageType( - "NT.ServerPlayerPickup.HeartPickup", - () => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerPlayerPickup_HeartPickup"}, -); - -/** - * @generated from message NT.ServerPlayerPickup.OrbPickup - */ -export const ServerPlayerPickup_OrbPickup = proto3.makeMessageType( - "NT.ServerPlayerPickup.OrbPickup", - () => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], - {localName: "ServerPlayerPickup_OrbPickup"}, -); - -/** - * @generated from message NT.ClientNemesisPickupItem - */ -export const ClientNemesisPickupItem = proto3.makeMessageType( - "NT.ClientNemesisPickupItem", - () => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerNemesisPickupItem - */ -export const ServerNemesisPickupItem = proto3.makeMessageType( - "NT.ServerNemesisPickupItem", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientNemesisAbility - */ -export const ClientNemesisAbility = proto3.makeMessageType( - "NT.ClientNemesisAbility", - () => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerNemesisAbility - */ -export const ServerNemesisAbility = proto3.makeMessageType( - "NT.ServerNemesisAbility", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerDeath - */ -export const ClientPlayerDeath = proto3.makeMessageType( - "NT.ClientPlayerDeath", - () => [ - { no: 1, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerPlayerDeath - */ -export const ServerPlayerDeath = proto3.makeMessageType( - "NT.ServerPlayerDeath", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], -); - -/** - * @generated from message NT.ClientPlayerNewGamePlus - */ -export const ClientPlayerNewGamePlus = proto3.makeMessageType( - "NT.ClientPlayerNewGamePlus", - () => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ServerPlayerNewGamePlus - */ -export const ServerPlayerNewGamePlus = proto3.makeMessageType( - "NT.ServerPlayerNewGamePlus", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ClientPlayerSecretHourglass - */ -export const ClientPlayerSecretHourglass = proto3.makeMessageType( - "NT.ClientPlayerSecretHourglass", - () => [ - { no: 1, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerPlayerSecretHourglass - */ -export const ServerPlayerSecretHourglass = proto3.makeMessageType( - "NT.ServerPlayerSecretHourglass", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientCustomModEvent - */ -export const ClientCustomModEvent = proto3.makeMessageType( - "NT.ClientCustomModEvent", - () => [ - { no: 1, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerCustomModEvent - */ -export const ServerCustomModEvent = proto3.makeMessageType( - "NT.ServerCustomModEvent", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientRespawnPenalty - */ -export const ClientRespawnPenalty = proto3.makeMessageType( - "NT.ClientRespawnPenalty", - () => [ - { no: 1, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ServerRespawnPenalty - */ -export const ServerRespawnPenalty = proto3.makeMessageType( - "NT.ServerRespawnPenalty", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ClientAngerySteve - */ -export const ClientAngerySteve = proto3.makeMessageType( - "NT.ClientAngerySteve", - () => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ServerAngerySteve - */ -export const ServerAngerySteve = proto3.makeMessageType( - "NT.ServerAngerySteve", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.Wand - */ -export const Wand = proto3.makeMessageType( - "NT.Wand", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "stats", kind: "message", T: Wand_WandStats }, - { no: 3, name: "always_cast", kind: "message", T: Spell, repeated: true }, - { no: 4, name: "deck", kind: "message", T: Spell, repeated: true }, - { no: 5, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NT.Wand.WandStats - */ -export const Wand_WandStats = proto3.makeMessageType( - "NT.Wand.WandStats", - () => [ - { no: 1, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "named", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "ui_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "mana_max", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 5, name: "mana_charge_speed", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 6, name: "reload_time", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "actions_per_round", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "deck_capacity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "shuffle_deck_when_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "spread_degrees", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 11, name: "speed_multiplier", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 12, name: "fire_rate_wait", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 13, name: "tip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 14, name: "tip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 15, name: "grip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 16, name: "grip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ], - {localName: "Wand_WandStats"}, -); - -/** - * @generated from message NT.Spell - */ -export const Spell = proto3.makeMessageType( - "NT.Spell", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "uses_remaining", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ], -); - -/** - * @generated from message NT.Item - */ -export const Item = proto3.makeMessageType( - "NT.Item", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "color", kind: "message", T: Item_Color }, - { no: 3, name: "content", kind: "message", T: Item_Material, repeated: true }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "is_chest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "item_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.Item.Color - */ -export const Item_Color = proto3.makeMessageType( - "NT.Item.Color", - () => [ - { no: 1, name: "r", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 2, name: "g", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "b", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ], - {localName: "Item_Color"}, -); - -/** - * @generated from message NT.Item.Material - */ -export const Item_Material = proto3.makeMessageType( - "NT.Item.Material", - () => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], - {localName: "Item_Material"}, -); - -/** - * @generated from message NT.EntityItem - */ -export const EntityItem = proto3.makeMessageType( - "NT.EntityItem", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NT.LobbyAction - */ -export const LobbyAction = proto3.makeMessageType( - "NT.LobbyAction", - () => [ - { no: 1, name: "c_room_create", kind: "message", T: ClientRoomCreate, oneof: "action" }, - { no: 2, name: "s_room_created", kind: "message", T: ServerRoomCreated, oneof: "action" }, - { no: 3, name: "s_room_create_failed", kind: "message", T: ServerRoomCreateFailed, oneof: "action" }, - { no: 4, name: "c_room_update", kind: "message", T: ClientRoomUpdate, oneof: "action" }, - { no: 5, name: "s_room_updated", kind: "message", T: ServerRoomUpdated, oneof: "action" }, - { no: 6, name: "s_room_update_failed", kind: "message", T: ServerRoomUpdateFailed, oneof: "action" }, - { no: 7, name: "c_room_flags_update", kind: "message", T: ClientRoomFlagsUpdate, oneof: "action" }, - { no: 8, name: "s_room_flags_updated", kind: "message", T: ServerRoomFlagsUpdated, oneof: "action" }, - { no: 9, name: "s_room_flags_update_failed", kind: "message", T: ServerRoomFlagsUpdateFailed, oneof: "action" }, - { no: 10, name: "c_room_delete", kind: "message", T: ClientRoomDelete, oneof: "action" }, - { no: 11, name: "s_room_deleted", kind: "message", T: ServerRoomDeleted, oneof: "action" }, - { no: 12, name: "c_join_room", kind: "message", T: ClientJoinRoom, oneof: "action" }, - { no: 13, name: "s_join_room_success", kind: "message", T: ServerJoinRoomSuccess, oneof: "action" }, - { no: 14, name: "s_join_room_failed", kind: "message", T: ServerJoinRoomFailed, oneof: "action" }, - { no: 15, name: "s_user_joined_room", kind: "message", T: ServerUserJoinedRoom, oneof: "action" }, - { no: 16, name: "c_leave_room", kind: "message", T: ClientLeaveRoom, oneof: "action" }, - { no: 17, name: "s_user_left_room", kind: "message", T: ServerUserLeftRoom, oneof: "action" }, - { no: 18, name: "c_kick_user", kind: "message", T: ClientKickUser, oneof: "action" }, - { no: 19, name: "s_user_kicked", kind: "message", T: ServerUserKicked, oneof: "action" }, - { no: 20, name: "c_ban_user", kind: "message", T: ClientBanUser, oneof: "action" }, - { no: 21, name: "s_user_banned", kind: "message", T: ServerUserBanned, oneof: "action" }, - { no: 22, name: "c_ready_state", kind: "message", T: ClientReadyState, oneof: "action" }, - { no: 23, name: "s_user_ready_state", kind: "message", T: ServerUserReadyState, oneof: "action" }, - { no: 24, name: "c_start_run", kind: "message", T: ClientStartRun, oneof: "action" }, - { no: 25, name: "s_host_start", kind: "message", T: ServerHostStart, oneof: "action" }, - { no: 27, name: "c_request_room_list", kind: "message", T: ClientRequestRoomList, oneof: "action" }, - { no: 28, name: "s_room_list", kind: "message", T: ServerRoomList, oneof: "action" }, - { no: 31, name: "s_disconnected", kind: "message", T: ServerDisconnected, oneof: "action" }, - { no: 32, name: "s_room_add_to_list", kind: "message", T: ServerRoomAddToList, oneof: "action" }, - { no: 33, name: "c_run_over", kind: "message", T: ClientRunOver, oneof: "action" }, - ], -); - -/** - * @generated from message NT.ClientRunOver - */ -export const ClientRunOver = proto3.makeMessageType( - "NT.ClientRunOver", - () => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerDisconnected - */ -export const ServerDisconnected = proto3.makeMessageType( - "NT.ServerDisconnected", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientRoomDelete - */ -export const ClientRoomDelete = proto3.makeMessageType( - "NT.ClientRoomDelete", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerRoomDeleted - */ -export const ServerRoomDeleted = proto3.makeMessageType( - "NT.ServerRoomDeleted", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientRoomCreate - */ -export const ClientRoomCreate = proto3.makeMessageType( - "NT.ClientRoomCreate", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerRoomCreated - */ -export const ServerRoomCreated = proto3.makeMessageType( - "NT.ServerRoomCreated", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerRoomCreated_User, repeated: true }, - ], -); - -/** - * @generated from message NT.ServerRoomCreated.User - */ -export const ServerRoomCreated_User = proto3.makeMessageType( - "NT.ServerRoomCreated.User", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerRoomCreated_User"}, -); - -/** - * @generated from message NT.ServerRoomCreateFailed - */ -export const ServerRoomCreateFailed = proto3.makeMessageType( - "NT.ServerRoomCreateFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientRoomUpdate - */ -export const ClientRoomUpdate = proto3.makeMessageType( - "NT.ClientRoomUpdate", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerRoomUpdated - */ -export const ServerRoomUpdated = proto3.makeMessageType( - "NT.ServerRoomUpdated", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerRoomUpdateFailed - */ -export const ServerRoomUpdateFailed = proto3.makeMessageType( - "NT.ServerRoomUpdateFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientRoomFlagsUpdate - */ -export const ClientRoomFlagsUpdate = proto3.makeMessageType( - "NT.ClientRoomFlagsUpdate", - () => [ - { no: 1, name: "flags", kind: "message", T: ClientRoomFlagsUpdate_GameFlag, repeated: true }, - ], -); - -/** - * @generated from message NT.ClientRoomFlagsUpdate.GameFlag - */ -export const ClientRoomFlagsUpdate_GameFlag = proto3.makeMessageType( - "NT.ClientRoomFlagsUpdate.GameFlag", - () => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], - {localName: "ClientRoomFlagsUpdate_GameFlag"}, -); - -/** - * @generated from message NT.ServerRoomFlagsUpdated - */ -export const ServerRoomFlagsUpdated = proto3.makeMessageType( - "NT.ServerRoomFlagsUpdated", - () => [ - { no: 1, name: "flags", kind: "message", T: ServerRoomFlagsUpdated_GameFlag, repeated: true }, - ], -); - -/** - * @generated from message NT.ServerRoomFlagsUpdated.GameFlag - */ -export const ServerRoomFlagsUpdated_GameFlag = proto3.makeMessageType( - "NT.ServerRoomFlagsUpdated.GameFlag", - () => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], - {localName: "ServerRoomFlagsUpdated_GameFlag"}, -); - -/** - * @generated from message NT.ServerRoomFlagsUpdateFailed - */ -export const ServerRoomFlagsUpdateFailed = proto3.makeMessageType( - "NT.ServerRoomFlagsUpdateFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientJoinRoom - */ -export const ClientJoinRoom = proto3.makeMessageType( - "NT.ClientJoinRoom", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerJoinRoomSuccess - */ -export const ServerJoinRoomSuccess = proto3.makeMessageType( - "NT.ServerJoinRoomSuccess", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerJoinRoomSuccess_User, repeated: true }, - ], -); - -/** - * @generated from message NT.ServerJoinRoomSuccess.User - */ -export const ServerJoinRoomSuccess_User = proto3.makeMessageType( - "NT.ServerJoinRoomSuccess.User", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerJoinRoomSuccess_User"}, -); - -/** - * @generated from message NT.ServerJoinRoomFailed - */ -export const ServerJoinRoomFailed = proto3.makeMessageType( - "NT.ServerJoinRoomFailed", - () => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerUserJoinedRoom - */ -export const ServerUserJoinedRoom = proto3.makeMessageType( - "NT.ServerUserJoinedRoom", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientLeaveRoom - */ -export const ClientLeaveRoom = proto3.makeMessageType( - "NT.ClientLeaveRoom", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerUserLeftRoom - */ -export const ServerUserLeftRoom = proto3.makeMessageType( - "NT.ServerUserLeftRoom", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientKickUser - */ -export const ClientKickUser = proto3.makeMessageType( - "NT.ClientKickUser", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerUserKicked - */ -export const ServerUserKicked = proto3.makeMessageType( - "NT.ServerUserKicked", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientBanUser - */ -export const ClientBanUser = proto3.makeMessageType( - "NT.ClientBanUser", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ServerUserBanned - */ -export const ServerUserBanned = proto3.makeMessageType( - "NT.ServerUserBanned", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message NT.ClientReadyState - */ -export const ClientReadyState = proto3.makeMessageType( - "NT.ClientReadyState", - () => [ - { no: 1, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 3, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerUserReadyState - */ -export const ServerUserReadyState = proto3.makeMessageType( - "NT.ServerUserReadyState", - () => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ], -); - -/** - * @generated from message NT.ClientStartRun - */ -export const ClientStartRun = proto3.makeMessageType( - "NT.ClientStartRun", - () => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ServerHostStart - */ -export const ServerHostStart = proto3.makeMessageType( - "NT.ServerHostStart", - () => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message NT.ClientRequestRoomList - */ -export const ClientRequestRoomList = proto3.makeMessageType( - "NT.ClientRequestRoomList", - () => [ - { no: 1, name: "page", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message NT.ServerRoomList - */ -export const ServerRoomList = proto3.makeMessageType( - "NT.ServerRoomList", - () => [ - { no: 1, name: "rooms", kind: "message", T: ServerRoomList_Room, repeated: true }, - { no: 2, name: "pages", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ], -); - -/** - * @generated from message NT.ServerRoomList.Room - */ -export const ServerRoomList_Room = proto3.makeMessageType( - "NT.ServerRoomList.Room", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerRoomList_Room"}, -); - -/** - * @generated from message NT.ServerRoomAddToList - */ -export const ServerRoomAddToList = proto3.makeMessageType( - "NT.ServerRoomAddToList", - () => [ - { no: 1, name: "room", kind: "message", T: ServerRoomAddToList_Room }, - ], -); - -/** - * @generated from message NT.ServerRoomAddToList.Room - */ -export const ServerRoomAddToList_Room = proto3.makeMessageType( - "NT.ServerRoomAddToList.Room", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], - {localName: "ServerRoomAddToList_Room"}, -); - diff --git a/nt-app/src/handlers/messageHandler.js b/nt-app/src/handlers/messageHandler.js index 555d8a7c..3e8310f3 100644 --- a/nt-app/src/handlers/messageHandler.js +++ b/nt-app/src/handlers/messageHandler.js @@ -1,61 +1,35 @@ -/** @type {import('../gen/alt_pb')} */ -const { Envelope } = require('../gen/alt_pb.js'); +const { NT } = require("@noita-together/nt-message") +/** + * @returns {NT.Envelope} + */ function decode(buf) { - try { - return Envelope.fromBinary(buf); - } catch (err) { - console.log(`Something fked up decoding ${err}`); - } + try { + const decoded = NT.Envelope.decode(buf) + return decoded + } catch (err) { + console.log(`Something fked up decoding ${err}`) + } } /** - * @param {import('../gen/messages_pb').Envelope} obj + * @param {NT.Envelope} obj * @returns */ function encode(obj) { - try { - return new Envelope(obj).toBinary(); - } catch (err) { - console.log(`Something fked up encoding ${err}`); - } + try { + return NT.Envelope.encode(obj).finish() + } catch (err) { + console.log(`Something fked up encoding ${err}`) + } } function encodeGameMsg(type, data) { - /** @type {import('../gen/messages_pb').GameAction} */ - const gameAction = { - action: { - case: type, - value: data, - }, - }; - return encode({ - kind: { - case: 'gameAction', - value: gameAction, - }, - }); + return encode({ gameAction: { [type]: data } }) } function encodeLobbyMsg(type, data) { - /** @type {import('../gen/messages_pb').LobbyAction} */ - const lobbyAction = { - action: { - case: type, - value: data, - }, - }; - return encode({ - kind: { - case: 'lobbyAction', - value: lobbyAction, - }, - }); + return encode({ lobbyAction: { [type]: data } }) } -module.exports = { - decode, - encode, - encodeGameMsg, - encodeLobbyMsg, -}; +export { decode, encode, encodeGameMsg, encodeLobbyMsg } diff --git a/nt-app/src/noita.js b/nt-app/src/noita.js index 0b53bbd5..747ae86d 100644 --- a/nt-app/src/noita.js +++ b/nt-app/src/noita.js @@ -3,8 +3,10 @@ const path = require("path") const ws = require("ws") const { v4: uuidv4 } = require("uuid") const appEvent = require("./appEvent") -const cmdLineArgs = require("./cmdLineArgs"); +const cmdLineArgs = require("./cmdLineArgs") const { ipcMain } = require("electron") +const { NT } = require("@noita-together/nt-message") +const { decodeFrames } = require("./frameCoder") function sysMsg(message) { appEvent("sChat", { id: uuidv4(), @@ -20,11 +22,11 @@ function lerp(a, b, weight) { function rotLerp(a, b, weight) { const pi2 = Math.PI * 2 - const shortest = ((a - b) + Math.PI) % pi2 - Math.PI - return b + (shortest * weight) % pi2 + const shortest = ((a - b + Math.PI) % pi2) - Math.PI + return b + ((shortest * weight) % pi2) } -const distSquaredThreshold = 400 * 400; +const distSquaredThreshold = 400 * 400 class NoitaGame extends EventEmitter { constructor() { @@ -51,23 +53,29 @@ class NoitaGame extends EventEmitter { gold: 0 } this.onDeathKick = false - this.lastX = 0; - this.lastY = 0; + this.lastX = 0 + this.lastY = 0 ipcMain.once("game_listen", () => { this.gameListen() }) } setLastPosition(x, y) { - if (typeof x === 'number' && typeof y === 'number') { - this.lastX = x; - this.lastY = y; + if (typeof x === "number" && typeof y === "number") { + this.lastX = x + this.lastY = y } } isConnectionLocalhost(ws) { const addr = ws._socket.remoteAddress - return (addr == "::1") || (addr == "127.0.0.1") || (addr == "localhost") || (addr == "::ffff:127.0.0.1") || cmdLineArgs.isAllowRemoteNoita() + return ( + addr == "::1" || + addr == "127.0.0.1" || + addr == "localhost" || + addr == "::ffff:127.0.0.1" || + cmdLineArgs.isAllowRemoteNoita() + ) } gameListen() { @@ -82,7 +90,9 @@ class NoitaGame extends EventEmitter { return } - socket.on("message", (data) => { this.gameMessage(data, socket) }) + socket.on("message", (data) => { + this.gameMessage(data, socket) + }) socket.on("close", () => { if (this.client === socket) { @@ -93,7 +103,9 @@ class NoitaGame extends EventEmitter { }) }) - this.on("GameSpellList", (payload) => { this.setSpellList(payload) }) + this.on("GameSpellList", (payload) => { + this.setSpellList(payload) + }) this.on("RequestPlayerList", () => { this.sendPlayerList() this.sendEvt("UpdateFlags", this.gameFlags) @@ -122,13 +134,13 @@ class NoitaGame extends EventEmitter { gameMessage(data, socket) { let dataJSON = null if (data.slice(0, 1) == ">") { - if (data == ">RES> [no value]") { return } - else { + if (data == ">RES> [no value]") { + return + } else { //console.log(data) return } - } - else { + } else { try { dataJSON = JSON.parse(data) } catch (e) { @@ -144,8 +156,7 @@ class NoitaGame extends EventEmitter { this.emit("GAME_OPEN") this.bankToGame() } - } - else { + } else { /* console.log({ dataJSON }) console.log() @@ -166,7 +177,9 @@ class NoitaGame extends EventEmitter { this.user = user } - setHost(val) { this.user.host = val } + setHost(val) { + this.user.host = val + } sendEvt(key, payload = {}) { this.toGame({ event: key, payload }) @@ -188,21 +201,49 @@ class NoitaGame extends EventEmitter { } } + /** @param {NT.ServerRoomFlagsUpdated.GameFlag[]} toGameData */ updateFlags(data) { - const onDeathKick = data.some(entry => entry.flag == "NT_ondeath_kick") + // don't mutate the input! + const toGameData = data.map((v) => ({ ...v })) + + // to avoid making changes to how the mod deals with flags, convert our pseudo-enum + // ("NT_death_penalty", "end") into a boolean flag ("NT_death_penalty_end") before + // sending to the mod + const deathPenalty = toGameData.findIndex( + (flag) => flag.flag === "NT_death_penalty" + ) + if (deathPenalty > -1) { + /** @type {NT.ServerRoomFlagsUpdated.GameFlag} */ + const flag = toGameData[deathPenalty] + if (flag.strVal) { + toGameData[deathPenalty] = { + flag: `${flag.flag}_${flag.strVal}` + } + } + } + + const onDeathKick = toGameData.some( + (entry) => entry.flag == "NT_ondeath_kick" + ) if (this.isHost) { this.onDeathKick = onDeathKick - data.push({ flag: "NT_is_host"}) + toGameData.push({ flag: "NT_is_host" }) } - data.push({ flag: "NT_GAMEMODE_CO_OP" })//hardcode this for now :) <3 - this.gameFlags = data - this.sendEvt("UpdateFlags", data) + toGameData.push({ flag: "NT_GAMEMODE_CO_OP" }) //hardcode this for now :) <3 + + // store a copy in case the game asks for it + this.gameFlags = toGameData.map((v) => + NT.ServerRoomFlagsUpdated.GameFlag.create(v) + ) + this.sendEvt("UpdateFlags", this.gameFlags) } addPlayer(data) { this.players[data.userId] = data - if (!this.client) { return } + if (!this.client) { + return + } this.sendEvt("AddPlayer", data) } @@ -228,9 +269,7 @@ class NoitaGame extends EventEmitter { this.sendEvt("ItemBank", { items: bank, gold: this.bank.gold }) } - setSpellList(data) { - - } + setSpellList(data) {} sendPlayerList() { for (let player in this.players) { @@ -253,32 +292,44 @@ class NoitaGame extends EventEmitter { } } - playerMove(payload) { + /** + * @param {NT.ServerPlayerMoves} payload + */ + sPlayerMoves(payload) { + payload.userFrames.forEach(this.sPlayerMove, this) + } + + /** + * @param {NT.CompactPlayerFrames} payload + */ + sPlayerMove(payload) { try { if (payload.userId == this.user.userId || !this.client) { return } + // convert PlayerMove -> PlayerPosition when the player in question is too far // away from us. this saves client resources by not "replaying" the movements // of players we can't see - if (payload.frames && payload.frames.length > 0) { - const mid = payload.frames[Math.floor(payload.frames.length/2)] - const dist = (mid.x-this.lastX)**2 + (mid.y-this.lastY)**2 - if (dist > distSquaredThreshold) { - this.sendEvt("PlayerPos", { - userId: payload.userId, - x: mid.x, - y: mid.y, - }) - return + const dist = + (payload.xInit - this.lastX) ** 2 + + (payload.yInit - this.lastY) ** 2 + if (!isNaN(dist) && dist > distSquaredThreshold) { + const playerPos = { + userId: payload.userId, + x: payload.xInit, + y: payload.yInit } + this.sendEvt("PlayerPos", playerPos) + return } + const decoded = decodeFrames(payload) // normal frame behavior instead const frames = [] - for (const [index, current] of payload.frames.entries()) { + for (const [index, current] of decoded.entries()) { frames.push(current) - const next = payload.frames[index + 1] + const next = decoded[index + 1] if (typeof next !== "undefined") { const med = { x: lerp(current.x, next.x, 0.869), @@ -292,9 +343,11 @@ class NoitaGame extends EventEmitter { frames.push(med) } } - const jank = frames.map(current => { - return `${current.armR},${current.armScaleY},${current.x},${current.y},${current.scaleX},${current.anim},${current.held},` - }).join(",") + const jank = frames + .map((current) => { + return `${current.armR},${current.armScaleY},${current.x},${current.y},${current.scaleX},${current.anim},${current.held},` + }) + .join(",") this.sendEvt("PlayerMove", { userId: payload.userId, frames, jank }) } catch (error) { console.log(error) @@ -313,7 +366,9 @@ class NoitaGame extends EventEmitter { this.sendEvt("PlayerUpdate", payload) } sPlayerUpdateInventory(payload) { - if (payload.userId == this.user.userId) { return } + if (payload.userId == this.user.userId) { + return + } this.sendEvt("PlayerUpdateInventory", payload) } sHostItemBank(payload) { @@ -334,122 +389,195 @@ class NoitaGame extends EventEmitter { return } for (const key in this.bank) { - if (key == "gold") { continue } + if (key == "gold") { + continue + } for (const [index, item] of this.bank[key].entries()) { if (item.id == payload.id) { this.bank[key].splice(index, 1) - this.sendEvt("UserTakeSuccess", { me: payload.userId == this.user.userId, ...payload }) + this.sendEvt("UserTakeSuccess", { + me: payload.userId == this.user.userId, + ...payload + }) } } } } /** - * @param {import('./gen/messages_pb').ServerPlayerAddItem} message + * @param {NT.ServerPlayerAddItem} message */ sPlayerAddItem(message) { - const key = message.item.case - const payload = message.item.value + const pbjs = NT.ServerPlayerAddItem.create(message) + + const key = pbjs.item + if (key == null) return + + const payload = pbjs[key] if (!payload) return const items = payload.list Array.prototype.push.apply(this.bank[key], items) - this.sendEvt("UserAddItems", { userId: payload.userId, items })//filter later? + this.sendEvt("UserAddItems", { userId: payload.userId, items }) //filter later? } sPlayerAddGold(payload) { this.bank.gold += payload.amount this.sendEvt("UserAddGold", payload) } sPlayerTakeGold(payload) { - if (!this.isHost) { return } - if (this.bank.gold >= payload.amount) { - this.emit("HostTakeGold", { userId: payload.userId, amount: payload.amount, success: true }) + if (!this.isHost) { + return } - else { - this.emit("HostTakeGold", { userId: payload.userId, amount: payload.amount, success: false }) + if (this.bank.gold >= payload.amount) { + this.emit("HostTakeGold", { + userId: payload.userId, + amount: payload.amount, + success: true + }) + } else { + this.emit("HostTakeGold", { + userId: payload.userId, + amount: payload.amount, + success: false + }) } } sHostUserTakeGold(payload) { if (payload.success) { this.bank.gold -= payload.amount - this.sendEvt("UserTakeGoldSuccess", { me: payload.userId == this.user.userId, ...payload }) - } - else if (payload.userId == this.user.userId) { - this.sendEvt("UserTakeGoldFailed", { me: payload.userId == this.user.userId, ...payload }) + this.sendEvt("UserTakeGoldSuccess", { + me: payload.userId == this.user.userId, + ...payload + }) + } else if (payload.userId == this.user.userId) { + this.sendEvt("UserTakeGoldFailed", { + me: payload.userId == this.user.userId, + ...payload + }) } } sPlayerTakeItem(payload) { - if (!this.isHost) { return } + if (!this.isHost) { + return + } for (const key in this.bank) { - if (key == "gold") { continue } + if (key == "gold") { + continue + } for (const item of this.bank[key]) { if (item.id == payload.id) { - this.emit("HostTake", { userId: payload.userId, id: payload.id, success: true }) + this.emit("HostTake", { + userId: payload.userId, + id: payload.id, + success: true + }) return } } } - this.emit("HostTake", { userId: payload.userId, id: payload.id, success: false }) + this.emit("HostTake", { + userId: payload.userId, + id: payload.id, + success: false + }) } /** - * @param {import('./gen/messages_pb').ServerPlayerPickup} message + * @param {NT.ServerPlayerPickup} message */ sPlayerPickup(message) { - const player = message.userId == this.user.userId ? this.user : this.players[message.userId] - const type = message.kind.case - const payload = message.kind.value - if (!type || !payload) return; + const pbjs = NT.ServerPlayerPickup.create(message) + + const player = + message.userId == this.user.userId + ? this.user + : this.players[message.userId] + const type = pbjs.kind + if (type == null) return + + const payload = pbjs[type] + if (!payload) return if (player) { sysMsg(`${player.name} picked up a ${type}.`) } - if (message.userId == this.user.userId) { return } - this.sendEvt("PlayerPickup", {userId: message.userId, [type]: payload}) + if (message.userId == this.user.userId) { + return + } + this.sendEvt("PlayerPickup", { + userId: message.userId, + [type]: payload + }) } sPlayerDeath(payload) { - const player = payload.userId == this.user.userId ? this.user : this.players[payload.userId] + const player = + payload.userId == this.user.userId + ? this.user + : this.players[payload.userId] if (player) { sysMsg(`${player.name} has ${payload.isWin ? "won" : "died"}.`) - if (this.isHost && this.onDeathKick && !payload.isWin && this.user.userId != payload.userId) { + if ( + this.isHost && + this.onDeathKick && + !payload.isWin && + this.user.userId != payload.userId + ) { this.emit("death_kick", payload.userId) } } - if (payload.userId == this.user.userId) { return } + if (payload.userId == this.user.userId) { + return + } this.sendEvt("PlayerDeath", payload) - } //sPlayerNewGamePlus (payload) => {}, sPlayerSecretHourglass(payload) { - if (payload.userId == this.user.userId) { return } + if (payload.userId == this.user.userId) { + return + } this.sendEvt("SecretHourglass", payload) } sCustomModEvent(payload) { - if (payload.userId == this.user.userId) { return } - try { - this.sendEvt("CustomModEvent", { userId: payload.userId, ...JSON.parse(payload.payload) }) - } catch (error) { - + if (payload.userId == this.user.userId) { + return } + try { + this.sendEvt("CustomModEvent", { + userId: payload.userId, + ...JSON.parse(payload.payload) + }) + } catch (error) {} } sRespawnPenalty(payload) { - const player = payload.userId == this.user.userId ? this.user : this.players[payload.userId] + const player = + payload.userId == this.user.userId + ? this.user + : this.players[payload.userId] if (player) { sysMsg(`${player.name} had to respawn against their will.`) - if (this.isHost && this.onDeathKick && this.user.userId != payload.userId) { + if ( + this.isHost && + this.onDeathKick && + this.user.userId != payload.userId + ) { this.emit("death_kick", payload.userId) } } - if (payload.userId == this.user.userId) { return } + if (payload.userId == this.user.userId) { + return + } this.sendEvt("RespawnPenalty", payload) - } sAngerySteve(payload) { - const player = payload.userId == this.user.userId ? this.user : this.players[payload.userId] + const player = + payload.userId == this.user.userId + ? this.user + : this.players[payload.userId] if (player) { sysMsg(`${player.name} has angered the gods.`) } - if (payload.userId == this.user.userId) { return } + if (payload.userId == this.user.userId) { + return + } this.sendEvt("AngerySteve", payload) - } /* sNemesisPickupItem (payload) => {}, @@ -460,4 +588,4 @@ class NoitaGame extends EventEmitter { } } -module.exports = new NoitaGame() \ No newline at end of file +module.exports = new NoitaGame() diff --git a/nt-app/src/store/index.js b/nt-app/src/store/index.js index 7629ee97..be93c2af 100644 --- a/nt-app/src/store/index.js +++ b/nt-app/src/store/index.js @@ -1,18 +1,233 @@ -import Vue from 'vue' -import Vuex from 'vuex' -import { ipcRenderer } from 'electron' +import Vue from "vue" +import Vuex from "vuex" +import { ipcRenderer } from "electron" + +/** @typedef {{'boolean': boolean, 'string': string, 'number': number}} VueFlagTypes */ +/** @typedef {import('@noita-together/nt-message').NT.ClientRoomFlagsUpdate.IGameFlag} IGameFlag */ Vue.use(Vuex) const randomColor = (name) => { var hash = 0 for (var i = 0; i < name.length; i++) { - hash = ((hash << 5) - hash) + name.charCodeAt(i); + hash = (hash << 5) - hash + name.charCodeAt(i) } - var hue = Math.floor(hash / 100 * 360) + var hue = Math.floor((hash / 100) * 360) return `hsl(${hue}, 70%, 60%)` } +const firstOfType = (type, ...vs) => (vs || []).find((v) => typeof v === type) + +/** @typedef {{ type: 'boolean', value: boolean, id: string }} BooleanFlag */ +/** @typedef {{ type: 'string', value: string, id: string }} StringFlag */ +/** @typedef {{ type: 'number', value: number, id: string }} NumberFlag */ +/** @typedef {{ type: 'enum', value: string, choices: string[] }} EnumFlag */ +/** @typedef {BooleanFlag|StringFlag|NumberFlag|EnumFlag} VueFlag */ + +export const gamemodes = { + 0: "Co-op", + 1: "Race", + 2: "Nemesis" +} +/** @typedef {keyof typeof gamemodes} GameMode */ + +// prettier-ignore +/** @typedef {{ name: string, tooltip: string }} FlagDescriptor */ +/** @type {Record>>} */ +export const flagInfo = { + 0: { + "NT_sync_perks": { name: "Share all perks", tooltip: "When grabbing perks the whole team will also get them." }, + "NT_team_perks": { name: "Team Perks", tooltip: "When grabbing certain perks (not all) the whole team will also get them." }, + "NT_sync_steve": { name: "Sync Steve", tooltip: "Angers the gods for everyone." }, + "NT_sync_hearts": { name: "Sync Hearts", tooltip: "When someone picks up a heart everyone else gets it too." }, + "NT_sync_orbs": { name: "Sync Orbs", tooltip: "When someone picks up an orb everyone else gets it too." }, + "NT_sync_shift": { name: "Sync Shifts", tooltip: "When someone fungal shifts everyone also gets the same shift, cooldown also applies." }, + "NT_send_wands": { name: "Send Wands", tooltip: "Allow players to deposit/take wands." }, + "NT_send_flasks": { name: "Send Flasks", tooltip: "Allow players to deposit/take flasks." }, + "NT_send_gold": { name: "Send Gold", tooltip: "Allow players to deposit/take gold." }, + "NT_send_items": { name: "Send Items", tooltip: "Allow players to deposit/take items." }, + "NT_world_randomize_loot": { name: "Randomize loot", tooltip: "Only applies when playing on the same seed, makes it so everyone gets different loot." }, + "NT_sync_world_seed": { name: "Sync Seed", tooltip: "All players play in the same world seed (requires everyone to start a new game) 0 means random seed." }, + "NT_death_penalty": { + "end": { name: "End run", tooltip: "Run ends for all players when someone dies." }, + "weak_respawn": { name: "Respawn Penalty", tooltip: "Player respawns and everyone takes a % drop on their max hp, once it goes below certain threshold on the weakest player the run ends for everyone." }, + "full_respawn": { name: "Respawn", tooltip: "Player will respawn on their last checkpoint and no penalties." }, + }, + "NT_ondeath_kick": { name: "Kick on death", tooltip: "Kicks whoever dies, more customisable soonâ„¢. "}, + }, + 2: { + "NT_NEMESIS_ban_ambrosia": { name: "Ban Ambrosia", tooltip: "will shift ambrosia away." }, + "NT_NEMESIS_ban_invis": { name: "Ban Invisibility", tooltip: "will shift invisibility away and remove the perk." }, + "NT_NEMESIS_nemesis_abilities": { name: "Nemesis abilities", tooltip: "Abilities will appear in each holy mountain with an NP cost." }, + "NT_sync_steve": { name: "Sync Steve", tooltip: "Angers the gods for everyone." }, + "NT_sync_orbs": { name: "Sync Orbs", tooltip: "When someone picks up an orb everyone else gets it too." }, + "NT_world_randomize_loot": { name: "Randomize loot", tooltip: "Only applies when playing on the same seed, makes it so everyone gets different loot." }, + "NT_sync_world_seed": { name: "Sync Seed", tooltip: "All players play in the same world seed (requires everyone to start a new game) 0 means random seed." }, + "NT_death_penalty": { + "weak_respawn": { name: "Last noita standing.", tooltip: "Run ends when there's only one player left." }, + }, + "NT_ondeath_kick": { name: "Kick on death (do not disable)", tooltip: "Kicks whoever dies, more customisable soonâ„¢. "} + }, +}; + +// prettier-ignore +export const defaultFlags = { + /** @type {VueFlag[]} */ + 0: [ + { id: "NT_sync_perks", type: "boolean", value: false, }, + { id: "NT_team_perks", type: "boolean", value: true, }, + { id: "NT_sync_steve", type: "boolean", value: true, }, + { id: "NT_sync_hearts", type: "boolean", value: true, }, + { id: "NT_sync_orbs", type: "boolean", value: true, }, + { id: "NT_sync_shift", type: "boolean", value: true, }, + { id: "NT_send_wands", type: "boolean", value: true, }, + { id: "NT_send_flasks", type: "boolean", value: true, }, + { id: "NT_send_gold", type: "boolean", value: true, }, + { id: "NT_send_items", type: "boolean", value: true, }, + { id: "NT_world_randomize_loot", type: "boolean", value: true, }, + { id: "NT_sync_world_seed", type: "number" , value: 0, }, + { id: "NT_death_penalty", type: "enum", value: 'end', choices: ['end', 'weak_respawn', 'full_respawn'], }, + { id: "NT_ondeath_kick", type: "boolean", value: false, }, + ], + /** @type {VueFlag[]} */ + 2: [ + { id: "NT_NEMESIS_ban_ambrosia", type: "boolean", value: true, }, + { id: "NT_NEMESIS_ban_invis", type: "boolean", value: true, }, + { id: "NT_NEMESIS_nemesis_abilities", type: "boolean", value: true, }, + { id: "NT_sync_steve", type: "boolean", value: false, }, + { id: "NT_sync_orbs", type: "boolean", value: false, }, + { id: "NT_world_randomize_loot", type: "boolean", value: true, }, + { id: "NT_sync_world_seed", type: "number" , value: 0, }, + { id: "NT_death_penalty", type: "boolean", value: 'weak_respawn', choices: ['weak_respawn'], }, + { id: "NT_ondeath_kick", type: "boolean", value: true, } + ] +}; + +/** + * @param {GameMode} gamemode + * @param {VueFlag[]} current + * @param {IGameFlag[]} update + * @returns {VueFlag[]} + */ +export const updateFlagsFromProto = (gamemode, current, update) => { + /** @type {VueFlag[]} */ + const defaults = defaultFlags[gamemode] + /* eslint-disable no-unused-vars */ + return defaults.map((spec, _idx, _defaults) => { + const found = update.find((f) => f.flag === spec.id) + const prev = current.find((f) => f.id === spec.id) || spec + /** @type {VueFlag} */ + const vueFlag = { ...spec } + + switch (spec.type) { + case "boolean": + // presence of a boolean flag currently indicates true, + // absence indicates false. in the future, we should + // send explicit true/false, and leave undefined for "unchanged" + vueFlag.value = !!found + break + case "enum": + var valid = spec.choices.find( + (choice) => choice === (found && found.strVal) + ) + // we might receive an enum value that isn't a valid option - if so, ignore it + vueFlag.value = firstOfType("string", valid, prev.value) + break + case "string": + vueFlag.value = firstOfType("string", found.strVal, prev.value) + break + default: // numeric types + vueFlag.value = firstOfType( + "number", + found.uIntVal, + found.intVal, + found.floatVal, + prev.value + ) + break + } + return vueFlag + }) +} + +/** + * @param {GameMode} gamemode + * @param {VueFlag[]} current + * @param {VueFlag[]} update + * @returns {VueFlag[]} + */ +export const updateFlagsFromUI = (gamemode, current, update) => { + /** @type {VueFlag[]} */ + const defaults = defaultFlags[gamemode] + /* eslint-disable no-unused-vars */ + return defaults.map((spec, _idx, _defaults) => { + const found = update.find((f) => f.id === spec.id) + const prev = current.find((f) => f.id === spec.id) || spec + /** @type {VueFlag} */ + const vueFlag = { ...spec } + + switch (spec.type) { + case "boolean": + vueFlag.value = firstOfType("boolean", found.value, prev.value) + break + case "enum": + // this should be unable to be incorrect, but we'll prevent sending erroneous data + // by being "forward" about our error-checking, in case of a mistake + var valid = spec.choices.find( + (choice) => choice === (found && found.value) + ) + vueFlag.value = firstOfType("string", valid, prev.value) + break + case "string": + vueFlag.value = firstOfType("string", found.value, prev.value) + break + default: // numeric types + vueFlag.value = firstOfType("number", found.value, prev.value) + break + } + return vueFlag + }) +} + +/** + * @param {GameMode} gamemode + * @param {VueFlag[]} current + * @returns {import('@noita-together/nt-message').NT.ClientRoomFlagsUpdate} + */ +export const flagsToProto = (gamemode, current) => { + /** @type {VueFlag[]} */ + const defaults = defaultFlags[gamemode] + return { + /* eslint-disable no-unused-vars */ + flags: defaults.reduce((acc, spec, _idx, _defaults) => { + const found = current.find((f) => f.id === spec.id) + + /** @type {IGameFlag} */ + const flag = { flag: spec.id } + + switch (spec.type) { + case "boolean": + // presence of a boolean flag currently indicates true, + // absence indicates false. in the future, we should + // send explicit true/false, and leave undefined for "unchanged" + if (!found.value) return acc + break + case "enum": + case "string": + flag.strVal = found.value + break + default: + if (!Number.isInteger(found.value)) + flag.floatVal = found.value + else if (found.value < 0) flag.intVal = found.value + else flag.uIntVal = found.value + break + } + return acc.concat(flag) + }, []) + } +} + const ipcPlugin = (ipc) => { - return store => { + return (store) => { ipc.on("CONNECTED", (event, data) => { store.commit("setUser", data) }) @@ -52,7 +267,7 @@ const ipcPlugin = (ipc) => { }) ipc.on("sRoomFlagsUpdated", (event, data) => { - store.commit("roomFlagsUpdated", data) + store.commit("sRoomFlagsUpdated", data) }) ipc.on("sRoomDeleted", (event, data) => { @@ -67,8 +282,7 @@ const ipcPlugin = (ipc) => { //store.commit("chatMsg", `[System] ${store.state.rooms.users[data.userId]} has left the room.`) if (data.userId == store.state.user.id) { store.commit("resetRoom") - } - else { + } else { store.commit("userLeftRoom", data) } }) @@ -77,8 +291,7 @@ const ipcPlugin = (ipc) => { //store.commit("chatMsg", `[System] ${store.state.rooms.users[data.userId]} has been kicked.`) if (data.userId == store.state.user.id) { store.commit("resetRoom") - } - else { + } else { store.commit("userLeftRoom", data) } }) @@ -87,8 +300,7 @@ const ipcPlugin = (ipc) => { //store.commit("chatMsg", `[System] ${store.state.rooms.users[data.userId]} has been banned.`) if (data.userId == store.state.user.id) { store.commit("resetRoom") - } - else { + } else { store.commit("userLeftRoom", data) } }) @@ -118,7 +330,6 @@ const ipcPlugin = (ipc) => { store.commit("setStats", data) }) - /* ipc.on("sDisconnected", (e, reason) => { //Show disconnection msg ? @@ -132,52 +343,20 @@ const ipcStuff = ipcPlugin(ipcRenderer) //TODO plugins https://vuex.vuejs.org/guide/plugins.html export default new Vuex.Store({ state: { - defaultFlags: { - 0: [ - { id: "NT_sync_perks", name: "Share all perks", tooltip: "When grabbing perks the whole team will also get them.", type: "boolean", value: false }, - { id: "NT_team_perks", name: "Team Perks", tooltip: "When grabbing certain perks (not all) the whole team will also get them.", type: "boolean", value: true }, - { id: "NT_sync_steve", name: "Sync Steve", tooltip: "Angers the gods for everyone.", type: "boolean", value: true }, - { id: "NT_sync_hearts", name: "Sync Hearts", tooltip: "When someone picks up a heart everyone else gets it too.", type: "boolean", value: true }, - { id: "NT_sync_orbs", name: "Sync Orbs", tooltip: "When someone picks up an orb everyone else gets it too.", type: "boolean", value: true }, - { id: "NT_sync_shift", name: "Sync Shifts", tooltip: "When someone fungal shifts everyone also gets the same shift, cooldown also applies.", type: "boolean", value: true }, - { id: "NT_send_wands", name: "Send Wands", tooltip: "Allow players to deposit/take wands.", type: "boolean", value: true }, - { id: "NT_send_flasks", name: "Send Flasks", tooltip: "Allow players to deposit/take flasks.", type: "boolean", value: true }, - { id: "NT_send_gold", name: "Send Gold", tooltip: "Allow players to deposit/take gold.", type: "boolean", value: true }, - { id: "NT_send_items", name: "Send Items", tooltip: "Allow players to deposit/take items.", type: "boolean", value: true }, - { id: "NT_world_randomize_loot", name: "Randomize loot", tooltip: "Only applies when playing on the same seed, makes it so everyone gets different loot.", type: "boolean", value: true }, - { id: "NT_sync_world_seed", name: "Sync Seed", tooltip: "All players play in the same world seed (requires everyone to start a new game) 0 means random seed.", type: "number", value: 0 }, - { id: "NT_death_penalty_end", name: "End run", tooltip: "Run ends for all players when someone dies.", type: "boolean", value: true }, - { id: "NT_death_penalty_weak_respawn", name: "Respawn Penalty", tooltip: "Player respawns and everyone takes a % drop on their max hp, once it goes below certain threshold on the weakest player the run ends for everyone.", type: "boolean", value: true }, - { id: "NT_death_penalty_full_respawn", name: "Respawn", tooltip: "Player will respawn on their last checkpoint and no penalties.", type: "boolean", value: true }, - { id: "NT_ondeath_kick", name: "Kick on death", tooltip: "Kicks whoever dies, more customisable soonâ„¢.", type: "boolean", value: false } - ], - 2: [ - { id: "NT_NEMESIS_ban_ambrosia", name: "Ban Ambrosia", tooltip: "will shift ambrosia away.", type: "boolean", value: true }, - { id: "NT_NEMESIS_ban_invis", name: "Ban Invisibility", tooltip: "will shift invisibility away and remove the perk.", type: "boolean", value: true }, - { id: "NT_NEMESIS_nemesis_abilities", name: "Nemesis abilities", tooltip: "Abilities will appear in each holy mountain with an NP cost.", type: "boolean", value: true }, - { id: "NT_sync_steve", name: "Sync Steve", tooltip: "Angers the gods for everyone.", type: "boolean", value: false }, - { id: "NT_sync_orbs", name: "Sync Orbs", tooltip: "When someone picks up an orb everyone else gets it too.", type: "boolean", value: false }, - { id: "NT_world_randomize_loot", name: "Randomize loot", tooltip: "Only applies when playing on the same seed, makes it so everyone gets different loot.", type: "boolean", value: true }, - { id: "NT_sync_world_seed", name: "Sync Seed", tooltip: "All players play in the same world seed (requires everyone to start a new game) 0 means random seed.", type: "number", value: 0 }, - { id: "NT_death_penalty_weak_respawn", name: "Last noita standing.", tooltip: "Run ends when there's only one player left.", type: "boolean", value: true }, - { id: "NT_ondeath_kick", name: "Kick on death (do not disable)", tooltip: "Kicks whoever dies, more customisable soonâ„¢.", type: "boolean", value: true } - ] - }, - gamemodes: { - "0": "Co-op", - "1": "Race", - "2": "Nemesis" - }, + // TODO: these should not be part of state, but I'm leaving them here + // so that I don't have to hunt down references to them and fix everything + defaultFlags: defaultFlags, + gamemodes: gamemodes, tabs: { - "0": 'Users', - "1": 'Mods', - "2": 'Seeds', + 0: "Users", + 1: "Mods", + 2: "Seeds" }, user: { name: "", id: 0, extra: 0, - color: "", + color: "" }, savedUser: false, savedUserName: "", @@ -251,18 +430,10 @@ export default new Vuex.Store({ return JSON.parse(state.stats) }, flags: (state) => { - const mode = state.room.gamemode - const fDefaults = state.defaultFlags[mode] - return fDefaults.map(flag => { - const found = state.roomFlags.find(f => f.id == flag.id) - if (!found && flag.type == "boolean") { - return { ...flag, value: false } - } - else if (found) { - return flag - } - else { return undefined } - }).filter(v => typeof v !== "undefined") + return state.roomFlags + }, + protoFlags: (state) => { + return flagsToProto(state.room.gamemode, state.roomFlags) } }, mutations: { @@ -275,20 +446,20 @@ export default new Vuex.Store({ setLoading: (state, value) => { state.loading = value }, - setTab: (state, value)=>{ + setTab: (state, value) => { state.roomTab = value }, joinState: (state, payload) => { state.joining = payload }, userReadyState: (state, payload) => { - state.room.users = state.room.users.map(user => { + state.room.users = state.room.users.map((user) => { if (user.userId == payload.userId) { user.ready = payload.ready user.seed = payload.seed user.mods = payload.mods - user.version = payload.version, - user.beta = payload.beta + user.version = payload.version + user.beta = payload.beta } return user }) @@ -306,7 +477,7 @@ export default new Vuex.Store({ state.lobbies.push(payload) }, deleteRoom: (state, id) => { - state.lobbies = state.lobbies.filter(room => room.id != id) + state.lobbies = state.lobbies.filter((room) => room.id != id) }, setRooms: (state, payload) => { state.lobbies = payload @@ -321,19 +492,19 @@ export default new Vuex.Store({ let room = Object.assign(state.room) state.room = Object.assign(room, payload) }, - roomFlagsUpdated: (state, payload) => { - const mode = state.room.gamemode - const fDefaults = state.defaultFlags[mode] - if (!fDefaults) { return } - state.roomFlags = payload.flags.map(val => { - const flag = fDefaults.find(f => f.id == val.flag) - if (!flag) { return } - else { - if (typeof val.value == "number") { flag.value = val.value } - if (flag.type == "boolean") { flag.value = true } - return flag - } - }).filter(v => typeof v !== "undefined") + sRoomFlagsUpdated: (state, payload) => { + state.roomFlags = updateFlagsFromProto( + state.room.gamemode, + state.roomFlags, + payload.flags + ) + }, + cRoomFlagsUpdated: (state, payload) => { + state.roomFlags = updateFlagsFromUI( + state.room.gamemode, + state.roomFlags, + payload + ) }, resetRoom: (state) => { state.stats = null @@ -381,21 +552,35 @@ export default new Vuex.Store({ }, pushChat: (state, payload) => { const time = new Date() - let timeStr = ("0" + time.getHours()).slice(-2) + ":" + ("0" + time.getMinutes()).slice(-2) - const found = state.room.users.find(user => user.userId == payload.userId) + let timeStr = + ("0" + time.getHours()).slice(-2) + + ":" + + ("0" + time.getMinutes()).slice(-2) + const found = state.room.users.find( + (user) => user.userId == payload.userId + ) let userColor = randomColor(payload.name) - userColor = found && found.color || userColor - let userRegex = new RegExp(`(@${state.user.name})(?= |$)`,'i') - let messageClass = userRegex.test(payload.message) ? "mention" : "chat-entry" + userColor = (found && found.color) || userColor + let userRegex = new RegExp(`(@${state.user.name})(?= |$)`, "i") + let messageClass = userRegex.test(payload.message) + ? "mention" + : "chat-entry" console.log(payload.name) - let messageSpans = payload.message.split(userRegex).filter(String).map(msg => ({ - message: msg, - style: { - color: userRegex.test(msg) ? randomColor(state.user.name) : "rgba(255, 255, 255, 0.8)", - fontWeight: userRegex.test(msg) ? 600 : 400, - }, - })) - if (payload.userId === "-1") { userColor = "#e69569" } + let messageSpans = payload.message + .split(userRegex) + .filter(String) + .map((msg) => ({ + message: msg, + style: { + color: userRegex.test(msg) + ? randomColor(state.user.name) + : "rgba(255, 255, 255, 0.8)", + fontWeight: userRegex.test(msg) ? 600 : 400 + } + })) + if (payload.userId === "-1") { + userColor = "#e69569" + } state.roomChat.push({ id: payload.id, time: timeStr, @@ -403,7 +588,7 @@ export default new Vuex.Store({ name: payload.name.trim(), class: messageClass, spans: messageSpans, - color: userColor, + color: userColor }) if (state.roomChat.length > 250) { state.roomChat.shift() @@ -416,8 +601,8 @@ export default new Vuex.Store({ } }, actions: { - updateTab: async ({commit}, payload)=>{ - commit('setTab', payload) + updateTab: async ({ commit }, payload) => { + commit("setTab", payload) }, continueSavedUser: ({ state, commit, dispatch }) => { commit("setLoading", true) @@ -507,8 +692,7 @@ export default new Vuex.Store({ commit("setLoading", false) return true } - } - else { + } else { commit("setLoading", false) return true } @@ -550,24 +734,16 @@ export default new Vuex.Store({ }, sendClientAlert: ({ commit }, payload) => { commit("pushChat", { - id: 'alert', + id: "alert", userId: "-1", name: "Alert", message: payload.message.trim() }) }, - sendFlags: ({ getters }) => { - const flags = getters.flags.map(val => { - let flag = { flag: val.id } - if (typeof val.value == "number") { flag.uIntVal = val.value }//temp fix - if (val.type == "boolean" && !val.value) { - flag = undefined - } - return flag - }).filter(v => typeof v !== "undefined") + sendFlags: ({ getters, state }) => { ipcRenderer.send("CLIENT_MESSAGE", { key: "cRoomFlagsUpdate", - payload: { flags } + payload: flagsToProto(state.room.gamemode, getters.flags) }) }, startRun: (context, payload) => { @@ -578,4 +754,4 @@ export default new Vuex.Store({ } }, plugins: [ipcStuff] -}) \ No newline at end of file +}) diff --git a/nt-app/src/views/Room.vue b/nt-app/src/views/Room.vue index 6273127f..e80dcf42 100644 --- a/nt-app/src/views/Room.vue +++ b/nt-app/src/views/Room.vue @@ -352,7 +352,7 @@ export default { this.chatMsg = "" }, sendFlags(payload) { - this.$store.commit("roomFlagsUpdated", payload) + this.$store.commit("cRoomFlagsUpdated", payload) this.$store.dispatch("sendFlags") this.closeRoomFlags() }, diff --git a/nt-app/src/ws.js b/nt-app/src/ws.js index fa777f2f..df4fbcaa 100644 --- a/nt-app/src/ws.js +++ b/nt-app/src/ws.js @@ -1,18 +1,27 @@ const { v4: uuidv4 } = require("uuid") const { ipcMain } = require("electron") const ws = require("ws") -const {encodeLobbyMsg, encodeGameMsg, decode} = require("./handlers/messageHandler") +const { + encodeLobbyMsg, + encodeGameMsg, + decode +} = require("./handlers/messageHandler") const appEvent = require("./appEvent") const noita = require("./noita") +const { NT } = require("@noita-together/nt-message") +const { encodeFrames } = require("./frameCoder") -const {host, sni} = (() => { - const prefix = process.env.VUE_APP_LOBBY_SERVER_WS_URL_BASE || `wss://${process.env.VUE_APP_HOSTNAME_WS}` || 'wss://noitatogether.com/ws/' - const host = prefix.endsWith('/') ? prefix : `${prefix}/`; - const url = new URL(host); - const sni = url.hostname; +const { host, sni } = (() => { + const prefix = + process.env.VUE_APP_LOBBY_SERVER_WS_URL_BASE || + `wss://${process.env.VUE_APP_HOSTNAME_WS}` || + "wss://noitatogether.com/ws/" + const host = prefix.endsWith("/") ? prefix : `${prefix}/` + const url = new URL(host) + const sni = url.hostname - return { host, sni }; -})(); + return { host, sni } +})() const print = true module.exports = (data) => { @@ -22,9 +31,9 @@ module.exports = (data) => { console.log(`Connect to lobby server ${host}`) let client = new ws(`${host}${data.token}`, { - servername: sni, - }); - + servername: sni + }) + const lobby = { sHostStart: (payload) => { if (isHost) { @@ -38,29 +47,25 @@ module.exports = (data) => { sendMsg(msg) } noita.sendEvt("StartRun") - }, sUserBanned: (payload) => { if (payload.userId == user.userId) { noita.reset() - } - else { + } else { noita.removePlayer(payload) } }, sUserKicked: (payload) => { if (payload.userId == user.userId) { noita.reset() - } - else { + } else { noita.removePlayer(payload) } }, sUserLeftRoom: (payload) => { if (payload.userId == user.userId) { noita.reset() - } - else { + } else { noita.removePlayer(payload) } }, @@ -70,7 +75,9 @@ module.exports = (data) => { sJoinRoomSuccess: (payload) => { noita.rejectConnections = false for (const player of payload.users) { - if (player.userId == user.userId) { continue } + if (player.userId == user.userId) { + continue + } noita.addPlayer({ userId: player.userId, name: player.name }) } }, @@ -84,7 +91,7 @@ module.exports = (data) => { }, sRoomDeleted: (payload) => { noita.reset() - }, + } } client.on("open", () => { @@ -97,35 +104,60 @@ module.exports = (data) => { client = null }) + /** + * @param {NT.GameAction} gameAction + */ + function handleGameAction(gameAction) { + const action = gameAction.action + if (!action) return + + switch (action) { + case "sChat": + case "sStatUpdate": + appEvent(action, gameAction[action]) + break + default: + if (typeof noita[action] === "function") { + noita[action](gameAction[action]) + } else { + console.error(`No handler for gameAction=${action}`) + } + break + } + } + + /** + * @param {NT.LobbyAction} lobbyAction + */ + function handleLobbyAction(lobbyAction) { + const action = lobbyAction.action + if (!action) return + + const payload = lobbyAction[action] + if (!payload) return + + if (typeof lobby[action] == "function") { + lobby[action](payload) + } + appEvent(action, payload) + } + client.on("message", (data) => { try { const msg = decode(data) - if (!msg) return; - - const actionType = msg.kind.case - const action = msg.kind.value.action.case - const payload = msg.kind.value.action.value - - if (!actionType || !action || !payload) { - console.error(`Failed to decode message actionType=${actionType} action=${action} payload=${payload}`) - return - } + if (!msg) return + const actionType = msg.kind switch (actionType) { - case 'gameAction': - if (action === "sChat") { appEvent(action, payload) } - if (action === "sStatUpdate") { appEvent(action, payload) } - if (typeof noita[action] == "function") { - noita[action](payload) - } - break; - case 'lobbyAction': - if (typeof lobby[action] == "function") { lobby[action](payload) } - appEvent(action, payload) - break; + case "gameAction": + handleGameAction(msg.gameAction) + break + case "lobbyAction": + handleLobbyAction(msg.lobbyAction) + break default: - console.log('Unknown Envelope case: '+msg.kind.case) - break; + console.error(`Unknown actionType=${actionType}`) + break } } catch (error) { console.log(error) @@ -169,13 +201,14 @@ module.exports = (data) => { noita.on("PlayerMove", (event) => { // don't send empty move updates. don't know why this happens... - if (!event || !event.frames || event.frames.length === 0) return; - + if (!event || !event.frames || event.frames.length === 0) return + if (event && event.frames && event.frames.length > 0) { - const {x, y} = event.frames[event.frames.length-1]; - noita.setLastPosition(x, y); + const { x, y } = event.frames[event.frames.length - 1] + noita.setLastPosition(x, y) } - const msg = encodeGameMsg("playerMove", event) + const cf = encodeFrames(event.frames) + const msg = encodeGameMsg("cPlayerMove", cf) sendMsg(msg) }) @@ -185,19 +218,7 @@ module.exports = (data) => { }) noita.on("PlayerPickup", (event) => { - /** @type {import('./gen/messages_pb').ClientPlayerPickup} */ - const payload = {} - - if (event.heart) { - payload.case = 'heart' - payload.value = event.heart - } - else if (event.orb) { - payload.case = 'orb' - payload.value = event.orb - } - - const msg = encodeGameMsg("cPlayerPickup", { kind: payload }) + const msg = encodeGameMsg("cPlayerPickup", event) sendMsg(msg) }) @@ -236,27 +257,19 @@ module.exports = (data) => { }) noita.on("SendItems", (event) => { - /** @type {import('./gen/messages_pb').ClientPlayerAddItem} */ - const payload = {} + /** @type {NT.ClientPlayerAddItem} */ + const msg = {} if (event.spells) { - payload.case = 'spells' - payload.value = { list: event.spells.map(mapSpells) } - } - else if (event.flasks) { - payload.case = 'flasks' - payload.value = { list: event.flasks.map(mapFlasks) } + msg.spells = { list: event.spells.map(mapSpells) } + } else if (event.flasks) { + msg.flasks = { list: event.flasks.map(mapFlasks) } + } else if (event.wands) { + msg.wands = { list: event.wands.map(mapWands) } + } else if (event.objects) { + msg.objects = { list: event.objects.map(mapObjects) } } - else if (event.wands) { - payload.case = 'wands' - payload.value = { list: event.wands.map(mapWands) } - } - else if (event.objects) { - payload.case = 'objects' - payload.value = { list: event.objects.map(mapObjects) } - } - const msg = encodeGameMsg("cPlayerAddItem", {item: payload}) - sendMsg(msg) + sendMsg(encodeGameMsg("cPlayerAddItem", msg)) }) noita.on("PlayerTake", (event) => { @@ -299,7 +312,9 @@ module.exports = (data) => { return { id: uuidv4(), stats: keysToCamel(wand.stats), - alwaysCast: wand.always_cast ? wand.always_cast.map(mapSpells) : undefined, + alwaysCast: wand.always_cast + ? wand.always_cast.map(mapSpells) + : undefined, deck: wand.deck.map(mapSpells), sentBy: user.userId } @@ -338,9 +353,8 @@ module.exports = (data) => { } function toCamel(str) { - return str.replace(/([_][a-z])/ig, ($1) => { - return $1.toUpperCase() - .replace('_', '') + return str.replace(/([_][a-z])/gi, ($1) => { + return $1.toUpperCase().replace("_", "") }) } @@ -351,4 +365,4 @@ module.exports = (data) => { } return n } -} \ No newline at end of file +} diff --git a/nt-app/vue.config.js b/nt-app/vue.config.js index f6de6aed..1c8fab77 100644 --- a/nt-app/vue.config.js +++ b/nt-app/vue.config.js @@ -2,22 +2,22 @@ module.exports = { pluginOptions: { electronBuilder: { nodeIntegration: true, - externals: ['keytar'], + externals: ["keytar"], builderOptions: { productName: "Noita Together", artifactName: 'Noita-Together-Setup-${version}.${ext}', win: { target: "nsis", - requestedExecutionLevel: "requireAdministrator"//eugh + requestedExecutionLevel: "requireAdministrator" //eugh }, nsis: { perMachine: true, oneClick: false, - allowToChangeInstallationDirectory: true, + allowToChangeInstallationDirectory: true }, publish: ["github"] } } }, filenameHashing: false -} \ No newline at end of file +} diff --git a/nt-web-app/jest.config.js b/nt-web-app/jest.config.js new file mode 100644 index 00000000..557bf4a7 --- /dev/null +++ b/nt-web-app/jest.config.js @@ -0,0 +1,13 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + // preset: 'ts-jest', + testEnvironment: 'node', + testMatch: ['**/*.test.ts'], + transform: { + '\\.js$': 'babel-jest', + '\\.ts$': 'ts-jest', + }, + moduleNameMapper: { + '^@/(.*)$': '/$1', + }, +}; diff --git a/nt-web-app/package.json b/nt-web-app/package.json index 32a1e7e7..bc5bdfac 100644 --- a/nt-web-app/package.json +++ b/nt-web-app/package.json @@ -12,16 +12,16 @@ "serve-websocket": "ts-node nt-websocket.ts", "init-db": "ts-node nt-database-init.ts", "serverInitOnce": "node create-jwt-secret.js", - "serveDev": "ts-node-dev nt-webserver.ts", - "type-gen2": "pbjs -t static-module --ts --no-comments --no-delimited --out websocket/messages.ts websocket/messages.proto", - "type-gen": "pbjs -t static-module --wrap es6 --no-comments --no-delimited --out websocket/messages.js websocket/messages.proto && pbjs -t static-module --no-delimited websocket/messages.proto | pbts -o websocket/messages.d.ts -" + "serveDev": "ts-node-dev nt-webserver.ts" }, "dependencies": { + "@babel/plugin-transform-modules-commonjs": "^7.23.3", "@popperjs/core": "^2.6.0", "@types/node": "^16.11.7", "@types/react": "18.2.8", "@types/react-dom": "18.2.4", "@types/ws": "8.5.5", + "babel-jest": "^29.7.0", "dotenv": "^16.3.1", "eslint": "8.41.0", "eslint-config-next": "13.4.4", @@ -30,11 +30,11 @@ "keytar": "^7.9.0", "next": "13.4.4", "pg": "^8.11.3", - "protobufjs": "^6.11.4", "react": "18.2.0", "react-dom": "18.2.0", "reflect-metadata": "^0.1.13", "shared-lib": "1.0.0", + "ts-jest": "^29.1.1", "typeorm": "^0.3.17", "typescript": "5.1.3", "uuid": "^9.0.0", diff --git a/nt-web-app/tsconfig.json b/nt-web-app/tsconfig.json index 63b2a0a3..a78386b4 100644 --- a/nt-web-app/tsconfig.json +++ b/nt-web-app/tsconfig.json @@ -17,7 +17,10 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, + "paths": { + "@/*": ["./*"] + } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "websocket/test_databaseAccessts"], "exclude": ["node_modules"] } diff --git a/nt-web-app/websocket/gen/alt_pb.ts b/nt-web-app/websocket/gen/alt_pb.ts deleted file mode 100644 index 4aa60a3a..00000000 --- a/nt-web-app/websocket/gen/alt_pb.ts +++ /dev/null @@ -1,5486 +0,0 @@ -// @generated by protoc-gen-es v1.4.1 with parameter "target=ts" -// @generated from file alt.proto (package NTALT, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message NTALT.Envelope - */ -export class Envelope extends Message { - /** - * @generated from oneof NTALT.Envelope.kind - */ - kind: { - /** - * @generated from field: NTALT.GameAction game_action = 1; - */ - value: GameAction; - case: "gameAction"; - } | { - /** - * @generated from field: NTALT.LobbyAction lobby_action = 50; - */ - value: LobbyAction; - case: "lobbyAction"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Envelope"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "game_action", kind: "message", T: GameAction, oneof: "kind" }, - { no: 50, name: "lobby_action", kind: "message", T: LobbyAction, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Envelope { - return new Envelope().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Envelope { - return new Envelope().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Envelope { - return new Envelope().fromJsonString(jsonString, options); - } - - static equals(a: Envelope | PlainMessage | undefined, b: Envelope | PlainMessage | undefined): boolean { - return proto3.util.equals(Envelope, a, b); - } -} - -/** - * @generated from message NTALT.GameAction - */ -export class GameAction extends Message { - /** - * The c prefix stands for "client", which refers to this application - * The s prefix stands for "server", which refers to the online Noita game server - * - * @generated from oneof NTALT.GameAction.action - */ - action: { - /** - * @generated from field: NTALT.PlayerMove player_move = 1; - */ - value: PlayerMove; - case: "playerMove"; - } | { - /** - * @generated from field: NTALT.PlayerPosition player_position = 2; - */ - value: PlayerPosition; - case: "playerPosition"; - } | { - /** - * @generated from field: NTALT.ClientPlayerUpdate c_player_update = 3; - */ - value: ClientPlayerUpdate; - case: "cPlayerUpdate"; - } | { - /** - * @generated from field: NTALT.ServerPlayerUpdate s_player_update = 4; - */ - value: ServerPlayerUpdate; - case: "sPlayerUpdate"; - } | { - /** - * @generated from field: NTALT.ClientPlayerUpdateInventory c_player_update_inventory = 5; - */ - value: ClientPlayerUpdateInventory; - case: "cPlayerUpdateInventory"; - } | { - /** - * @generated from field: NTALT.ServerPlayerUpdateInventory s_player_update_inventory = 6; - */ - value: ServerPlayerUpdateInventory; - case: "sPlayerUpdateInventory"; - } | { - /** - * @generated from field: NTALT.ClientHostItemBank c_host_item_bank = 7; - */ - value: ClientHostItemBank; - case: "cHostItemBank"; - } | { - /** - * @generated from field: NTALT.ServerHostItemBank s_host_item_bank = 8; - */ - value: ServerHostItemBank; - case: "sHostItemBank"; - } | { - /** - * @generated from field: NTALT.ClientHostUserTake c_host_user_take = 9; - */ - value: ClientHostUserTake; - case: "cHostUserTake"; - } | { - /** - * @generated from field: NTALT.ServerHostUserTake s_host_user_take = 10; - */ - value: ServerHostUserTake; - case: "sHostUserTake"; - } | { - /** - * @generated from field: NTALT.ClientHostUserTakeGold c_host_user_take_gold = 11; - */ - value: ClientHostUserTakeGold; - case: "cHostUserTakeGold"; - } | { - /** - * @generated from field: NTALT.ServerHostUserTakeGold s_host_user_take_gold = 12; - */ - value: ServerHostUserTakeGold; - case: "sHostUserTakeGold"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddGold c_player_add_gold = 13; - */ - value: ClientPlayerAddGold; - case: "cPlayerAddGold"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddGold s_player_add_gold = 14; - */ - value: ServerPlayerAddGold; - case: "sPlayerAddGold"; - } | { - /** - * @generated from field: NTALT.ClientPlayerTakeGold c_player_take_gold = 15; - */ - value: ClientPlayerTakeGold; - case: "cPlayerTakeGold"; - } | { - /** - * @generated from field: NTALT.ServerPlayerTakeGold s_player_take_gold = 16; - */ - value: ServerPlayerTakeGold; - case: "sPlayerTakeGold"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem c_player_add_item = 17; - */ - value: ClientPlayerAddItem; - case: "cPlayerAddItem"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem s_player_add_item = 18; - */ - value: ServerPlayerAddItem; - case: "sPlayerAddItem"; - } | { - /** - * @generated from field: NTALT.ClientPlayerTakeItem c_player_take_item = 19; - */ - value: ClientPlayerTakeItem; - case: "cPlayerTakeItem"; - } | { - /** - * @generated from field: NTALT.ServerPlayerTakeItem s_player_take_item = 20; - */ - value: ServerPlayerTakeItem; - case: "sPlayerTakeItem"; - } | { - /** - * @generated from field: NTALT.ClientPlayerPickup c_player_pickup = 21; - */ - value: ClientPlayerPickup; - case: "cPlayerPickup"; - } | { - /** - * @generated from field: NTALT.ServerPlayerPickup s_player_pickup = 22; - */ - value: ServerPlayerPickup; - case: "sPlayerPickup"; - } | { - /** - * @generated from field: NTALT.ClientNemesisAbility c_nemesis_ability = 23; - */ - value: ClientNemesisAbility; - case: "cNemesisAbility"; - } | { - /** - * @generated from field: NTALT.ServerNemesisAbility s_nemesis_ability = 24; - */ - value: ServerNemesisAbility; - case: "sNemesisAbility"; - } | { - /** - * @generated from field: NTALT.ClientNemesisPickupItem c_nemesis_pickup_item = 25; - */ - value: ClientNemesisPickupItem; - case: "cNemesisPickupItem"; - } | { - /** - * @generated from field: NTALT.ServerNemesisPickupItem s_nemesis_pickup_item = 26; - */ - value: ServerNemesisPickupItem; - case: "sNemesisPickupItem"; - } | { - /** - * @generated from field: NTALT.ClientChat c_chat = 27; - */ - value: ClientChat; - case: "cChat"; - } | { - /** - * @generated from field: NTALT.ServerChat s_chat = 28; - */ - value: ServerChat; - case: "sChat"; - } | { - /** - * @generated from field: NTALT.ClientPlayerDeath c_player_death = 29; - */ - value: ClientPlayerDeath; - case: "cPlayerDeath"; - } | { - /** - * @generated from field: NTALT.ServerPlayerDeath s_player_death = 30; - */ - value: ServerPlayerDeath; - case: "sPlayerDeath"; - } | { - /** - * @generated from field: NTALT.ClientPlayerNewGamePlus c_player_new_game_plus = 31; - */ - value: ClientPlayerNewGamePlus; - case: "cPlayerNewGamePlus"; - } | { - /** - * @generated from field: NTALT.ServerPlayerNewGamePlus s_player_new_game_plus = 32; - */ - value: ServerPlayerNewGamePlus; - case: "sPlayerNewGamePlus"; - } | { - /** - * @generated from field: NTALT.ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - */ - value: ClientPlayerSecretHourglass; - case: "cPlayerSecretHourglass"; - } | { - /** - * @generated from field: NTALT.ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - */ - value: ServerPlayerSecretHourglass; - case: "sPlayerSecretHourglass"; - } | { - /** - * @generated from field: NTALT.ClientCustomModEvent c_custom_mod_event = 35; - */ - value: ClientCustomModEvent; - case: "cCustomModEvent"; - } | { - /** - * @generated from field: NTALT.ServerCustomModEvent s_custom_mod_event = 36; - */ - value: ServerCustomModEvent; - case: "sCustomModEvent"; - } | { - /** - * @generated from field: NTALT.ClientRespawnPenalty c_respawn_penalty = 37; - */ - value: ClientRespawnPenalty; - case: "cRespawnPenalty"; - } | { - /** - * @generated from field: NTALT.ServerRespawnPenalty s_respawn_penalty = 38; - */ - value: ServerRespawnPenalty; - case: "sRespawnPenalty"; - } | { - /** - * @generated from field: NTALT.ClientAngerySteve c_angery_steve = 39; - */ - value: ClientAngerySteve; - case: "cAngerySteve"; - } | { - /** - * @generated from field: NTALT.ServerAngerySteve s_angery_steve = 40; - */ - value: ServerAngerySteve; - case: "sAngerySteve"; - } | { - /** - * @generated from field: NTALT.ServerStatsUpdate s_stat_update = 42; - */ - value: ServerStatsUpdate; - case: "sStatUpdate"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.GameAction"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "player_move", kind: "message", T: PlayerMove, oneof: "action" }, - { no: 2, name: "player_position", kind: "message", T: PlayerPosition, oneof: "action" }, - { no: 3, name: "c_player_update", kind: "message", T: ClientPlayerUpdate, oneof: "action" }, - { no: 4, name: "s_player_update", kind: "message", T: ServerPlayerUpdate, oneof: "action" }, - { no: 5, name: "c_player_update_inventory", kind: "message", T: ClientPlayerUpdateInventory, oneof: "action" }, - { no: 6, name: "s_player_update_inventory", kind: "message", T: ServerPlayerUpdateInventory, oneof: "action" }, - { no: 7, name: "c_host_item_bank", kind: "message", T: ClientHostItemBank, oneof: "action" }, - { no: 8, name: "s_host_item_bank", kind: "message", T: ServerHostItemBank, oneof: "action" }, - { no: 9, name: "c_host_user_take", kind: "message", T: ClientHostUserTake, oneof: "action" }, - { no: 10, name: "s_host_user_take", kind: "message", T: ServerHostUserTake, oneof: "action" }, - { no: 11, name: "c_host_user_take_gold", kind: "message", T: ClientHostUserTakeGold, oneof: "action" }, - { no: 12, name: "s_host_user_take_gold", kind: "message", T: ServerHostUserTakeGold, oneof: "action" }, - { no: 13, name: "c_player_add_gold", kind: "message", T: ClientPlayerAddGold, oneof: "action" }, - { no: 14, name: "s_player_add_gold", kind: "message", T: ServerPlayerAddGold, oneof: "action" }, - { no: 15, name: "c_player_take_gold", kind: "message", T: ClientPlayerTakeGold, oneof: "action" }, - { no: 16, name: "s_player_take_gold", kind: "message", T: ServerPlayerTakeGold, oneof: "action" }, - { no: 17, name: "c_player_add_item", kind: "message", T: ClientPlayerAddItem, oneof: "action" }, - { no: 18, name: "s_player_add_item", kind: "message", T: ServerPlayerAddItem, oneof: "action" }, - { no: 19, name: "c_player_take_item", kind: "message", T: ClientPlayerTakeItem, oneof: "action" }, - { no: 20, name: "s_player_take_item", kind: "message", T: ServerPlayerTakeItem, oneof: "action" }, - { no: 21, name: "c_player_pickup", kind: "message", T: ClientPlayerPickup, oneof: "action" }, - { no: 22, name: "s_player_pickup", kind: "message", T: ServerPlayerPickup, oneof: "action" }, - { no: 23, name: "c_nemesis_ability", kind: "message", T: ClientNemesisAbility, oneof: "action" }, - { no: 24, name: "s_nemesis_ability", kind: "message", T: ServerNemesisAbility, oneof: "action" }, - { no: 25, name: "c_nemesis_pickup_item", kind: "message", T: ClientNemesisPickupItem, oneof: "action" }, - { no: 26, name: "s_nemesis_pickup_item", kind: "message", T: ServerNemesisPickupItem, oneof: "action" }, - { no: 27, name: "c_chat", kind: "message", T: ClientChat, oneof: "action" }, - { no: 28, name: "s_chat", kind: "message", T: ServerChat, oneof: "action" }, - { no: 29, name: "c_player_death", kind: "message", T: ClientPlayerDeath, oneof: "action" }, - { no: 30, name: "s_player_death", kind: "message", T: ServerPlayerDeath, oneof: "action" }, - { no: 31, name: "c_player_new_game_plus", kind: "message", T: ClientPlayerNewGamePlus, oneof: "action" }, - { no: 32, name: "s_player_new_game_plus", kind: "message", T: ServerPlayerNewGamePlus, oneof: "action" }, - { no: 33, name: "c_player_secret_hourglass", kind: "message", T: ClientPlayerSecretHourglass, oneof: "action" }, - { no: 34, name: "s_player_secret_hourglass", kind: "message", T: ServerPlayerSecretHourglass, oneof: "action" }, - { no: 35, name: "c_custom_mod_event", kind: "message", T: ClientCustomModEvent, oneof: "action" }, - { no: 36, name: "s_custom_mod_event", kind: "message", T: ServerCustomModEvent, oneof: "action" }, - { no: 37, name: "c_respawn_penalty", kind: "message", T: ClientRespawnPenalty, oneof: "action" }, - { no: 38, name: "s_respawn_penalty", kind: "message", T: ServerRespawnPenalty, oneof: "action" }, - { no: 39, name: "c_angery_steve", kind: "message", T: ClientAngerySteve, oneof: "action" }, - { no: 40, name: "s_angery_steve", kind: "message", T: ServerAngerySteve, oneof: "action" }, - { no: 42, name: "s_stat_update", kind: "message", T: ServerStatsUpdate, oneof: "action" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GameAction { - return new GameAction().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GameAction { - return new GameAction().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GameAction { - return new GameAction().fromJsonString(jsonString, options); - } - - static equals(a: GameAction | PlainMessage | undefined, b: GameAction | PlainMessage | undefined): boolean { - return proto3.util.equals(GameAction, a, b); - } -} - -/** - * @generated from message NTALT.PlayerFrame - */ -export class PlayerFrame extends Message { - /** - * @generated from field: optional float x = 1; - */ - x?: number; - - /** - * @generated from field: optional float y = 2; - */ - y?: number; - - /** - * @generated from field: optional float arm_r = 3; - */ - armR?: number; - - /** - * @generated from field: optional float arm_scale_y = 4; - */ - armScaleY?: number; - - /** - * @generated from field: optional float scale_x = 5; - */ - scaleX?: number; - - /** - * @generated from field: optional int32 anim = 6; - */ - anim?: number; - - /** - * @generated from field: optional int32 held = 7; - */ - held?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.PlayerFrame"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "arm_r", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "arm_scale_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "scale_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 6, name: "anim", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 7, name: "held", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerFrame { - return new PlayerFrame().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerFrame { - return new PlayerFrame().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PlayerFrame { - return new PlayerFrame().fromJsonString(jsonString, options); - } - - static equals(a: PlayerFrame | PlainMessage | undefined, b: PlayerFrame | PlainMessage | undefined): boolean { - return proto3.util.equals(PlayerFrame, a, b); - } -} - -/** - * @generated from message NTALT.PlayerMove - */ -export class PlayerMove extends Message { - /** - * @generated from field: repeated NTALT.PlayerFrame frames = 1; - */ - frames: PlayerFrame[] = []; - - /** - * @generated from field: string user_id = 15; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.PlayerMove"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "frames", kind: "message", T: PlayerFrame, repeated: true }, - { no: 15, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerMove { - return new PlayerMove().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerMove { - return new PlayerMove().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PlayerMove { - return new PlayerMove().fromJsonString(jsonString, options); - } - - static equals(a: PlayerMove | PlainMessage | undefined, b: PlayerMove | PlainMessage | undefined): boolean { - return proto3.util.equals(PlayerMove, a, b); - } -} - -/** - * @generated from message NTALT.PlayerPosition - */ -export class PlayerPosition extends Message { - /** - * @generated from field: NTALT.PlayerFrame frame = 1; - */ - frame?: PlayerFrame; - - /** - * @generated from field: string user_id = 15; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.PlayerPosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "frame", kind: "message", T: PlayerFrame }, - { no: 15, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerPosition { - return new PlayerPosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerPosition { - return new PlayerPosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PlayerPosition { - return new PlayerPosition().fromJsonString(jsonString, options); - } - - static equals(a: PlayerPosition | PlainMessage | undefined, b: PlayerPosition | PlainMessage | undefined): boolean { - return proto3.util.equals(PlayerPosition, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerUpdate - */ -export class ClientPlayerUpdate extends Message { - /** - * @generated from field: optional float cur_hp = 1; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 2; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 3; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 4; - */ - sampo?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdate { - return new ClientPlayerUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdate { - return new ClientPlayerUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdate { - return new ClientPlayerUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdate | PlainMessage | undefined, b: ClientPlayerUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdate, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerUpdate - */ -export class ServerPlayerUpdate extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: optional float cur_hp = 2; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 3; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 4; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 5; - */ - sampo?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdate { - return new ServerPlayerUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdate { - return new ServerPlayerUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdate { - return new ServerPlayerUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdate | PlainMessage | undefined, b: ServerPlayerUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdate, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory - */ -export class ClientPlayerUpdateInventory extends Message { - /** - * @generated from field: repeated NTALT.ClientPlayerUpdateInventory.InventoryWand wands = 1; - */ - wands: ClientPlayerUpdateInventory_InventoryWand[] = []; - - /** - * @generated from field: repeated NTALT.ClientPlayerUpdateInventory.InventoryItem items = 2; - */ - items: ClientPlayerUpdateInventory_InventoryItem[] = []; - - /** - * @generated from field: repeated NTALT.ClientPlayerUpdateInventory.InventorySpell spells = 3; - */ - spells: ClientPlayerUpdateInventory_InventorySpell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wands", kind: "message", T: ClientPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 2, name: "items", kind: "message", T: ClientPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 3, name: "spells", kind: "message", T: ClientPlayerUpdateInventory_InventorySpell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory { - return new ClientPlayerUpdateInventory().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory { - return new ClientPlayerUpdateInventory().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory { - return new ClientPlayerUpdateInventory().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory | PlainMessage | undefined, b: ClientPlayerUpdateInventory | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventoryWand - */ -export class ClientPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NTALT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryWand { - return new ClientPlayerUpdateInventory_InventoryWand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryWand { - return new ClientPlayerUpdateInventory_InventoryWand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryWand { - return new ClientPlayerUpdateInventory_InventoryWand().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory_InventoryWand, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventoryItem - */ -export class ClientPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 3; - */ - index = 0; - - /** - * @generated from field: NTALT.Item item = 4; - */ - item?: Item; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "item", kind: "message", T: Item }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryItem { - return new ClientPlayerUpdateInventory_InventoryItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryItem { - return new ClientPlayerUpdateInventory_InventoryItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryItem { - return new ClientPlayerUpdateInventory_InventoryItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory_InventoryItem, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerUpdateInventory.InventorySpell - */ -export class ClientPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NTALT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventorySpell { - return new ClientPlayerUpdateInventory_InventorySpell().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventorySpell { - return new ClientPlayerUpdateInventory_InventorySpell().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventorySpell { - return new ClientPlayerUpdateInventory_InventorySpell().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory_InventorySpell, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory - */ -export class ServerPlayerUpdateInventory extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: repeated NTALT.ServerPlayerUpdateInventory.InventoryWand wands = 2; - */ - wands: ServerPlayerUpdateInventory_InventoryWand[] = []; - - /** - * @generated from field: repeated NTALT.ServerPlayerUpdateInventory.InventoryItem items = 3; - */ - items: ServerPlayerUpdateInventory_InventoryItem[] = []; - - /** - * @generated from field: repeated NTALT.ServerPlayerUpdateInventory.InventorySpell spells = 4; - */ - spells: ServerPlayerUpdateInventory_InventorySpell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wands", kind: "message", T: ServerPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 3, name: "items", kind: "message", T: ServerPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 4, name: "spells", kind: "message", T: ServerPlayerUpdateInventory_InventorySpell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory { - return new ServerPlayerUpdateInventory().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory { - return new ServerPlayerUpdateInventory().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory { - return new ServerPlayerUpdateInventory().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory | PlainMessage | undefined, b: ServerPlayerUpdateInventory | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventoryWand - */ -export class ServerPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NTALT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryWand { - return new ServerPlayerUpdateInventory_InventoryWand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryWand { - return new ServerPlayerUpdateInventory_InventoryWand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryWand { - return new ServerPlayerUpdateInventory_InventoryWand().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory_InventoryWand, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventoryItem - */ -export class ServerPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NTALT.Item item = 2; - */ - item?: Item; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "item", kind: "message", T: Item }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryItem { - return new ServerPlayerUpdateInventory_InventoryItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryItem { - return new ServerPlayerUpdateInventory_InventoryItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryItem { - return new ServerPlayerUpdateInventory_InventoryItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory_InventoryItem, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerUpdateInventory.InventorySpell - */ -export class ServerPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NTALT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventorySpell { - return new ServerPlayerUpdateInventory_InventorySpell().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventorySpell { - return new ServerPlayerUpdateInventory_InventorySpell().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventorySpell { - return new ServerPlayerUpdateInventory_InventorySpell().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory_InventorySpell, a, b); - } -} - -/** - * @generated from message NTALT.ClientHostItemBank - */ -export class ClientHostItemBank extends Message { - /** - * @generated from field: repeated NTALT.Wand wands = 1; - */ - wands: Wand[] = []; - - /** - * @generated from field: repeated NTALT.Spell spells = 2; - */ - spells: Spell[] = []; - - /** - * @generated from field: repeated NTALT.Item items = 3; - */ - items: Item[] = []; - - /** - * @generated from field: uint32 gold = 4; - */ - gold = 0; - - /** - * @generated from field: repeated NTALT.EntityItem objects = 5; - */ - objects: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientHostItemBank"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostItemBank { - return new ClientHostItemBank().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostItemBank { - return new ClientHostItemBank().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientHostItemBank { - return new ClientHostItemBank().fromJsonString(jsonString, options); - } - - static equals(a: ClientHostItemBank | PlainMessage | undefined, b: ClientHostItemBank | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientHostItemBank, a, b); - } -} - -/** - * @generated from message NTALT.ServerHostItemBank - */ -export class ServerHostItemBank extends Message { - /** - * @generated from field: repeated NTALT.Wand wands = 1; - */ - wands: Wand[] = []; - - /** - * @generated from field: repeated NTALT.Spell spells = 2; - */ - spells: Spell[] = []; - - /** - * @generated from field: repeated NTALT.Item items = 3; - */ - items: Item[] = []; - - /** - * @generated from field: uint32 gold = 4; - */ - gold = 0; - - /** - * @generated from field: repeated NTALT.EntityItem objects = 5; - */ - objects: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerHostItemBank"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostItemBank { - return new ServerHostItemBank().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostItemBank { - return new ServerHostItemBank().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostItemBank { - return new ServerHostItemBank().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostItemBank | PlainMessage | undefined, b: ServerHostItemBank | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostItemBank, a, b); - } -} - -/** - * @generated from message NTALT.ClientHostUserTake - */ -export class ClientHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string id = 2; - */ - id = ""; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientHostUserTake"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTake { - return new ClientHostUserTake().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTake { - return new ClientHostUserTake().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTake { - return new ClientHostUserTake().fromJsonString(jsonString, options); - } - - static equals(a: ClientHostUserTake | PlainMessage | undefined, b: ClientHostUserTake | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientHostUserTake, a, b); - } -} - -/** - * @generated from message NTALT.ServerHostUserTake - */ -export class ServerHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string id = 2; - */ - id = ""; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerHostUserTake"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTake { - return new ServerHostUserTake().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTake { - return new ServerHostUserTake().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTake { - return new ServerHostUserTake().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostUserTake | PlainMessage | undefined, b: ServerHostUserTake | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostUserTake, a, b); - } -} - -/** - * @generated from message NTALT.ClientHostUserTakeGold - */ -export class ClientHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientHostUserTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTakeGold { - return new ClientHostUserTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTakeGold { - return new ClientHostUserTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTakeGold { - return new ClientHostUserTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ClientHostUserTakeGold | PlainMessage | undefined, b: ClientHostUserTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientHostUserTakeGold, a, b); - } -} - -/** - * @generated from message NTALT.ServerHostUserTakeGold - */ -export class ServerHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerHostUserTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTakeGold { - return new ServerHostUserTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTakeGold { - return new ServerHostUserTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTakeGold { - return new ServerHostUserTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostUserTakeGold | PlainMessage | undefined, b: ServerHostUserTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostUserTakeGold, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerAddGold - */ -export class ClientPlayerAddGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerAddGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddGold { - return new ClientPlayerAddGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddGold { - return new ClientPlayerAddGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddGold { - return new ClientPlayerAddGold().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddGold | PlainMessage | undefined, b: ClientPlayerAddGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddGold, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerAddGold - */ -export class ServerPlayerAddGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerAddGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddGold { - return new ServerPlayerAddGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddGold { - return new ServerPlayerAddGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddGold { - return new ServerPlayerAddGold().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddGold | PlainMessage | undefined, b: ServerPlayerAddGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddGold, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerTakeGold - */ -export class ClientPlayerTakeGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeGold { - return new ClientPlayerTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeGold { - return new ClientPlayerTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeGold { - return new ClientPlayerTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerTakeGold | PlainMessage | undefined, b: ClientPlayerTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerTakeGold, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerTakeGold - */ -export class ServerPlayerTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeGold { - return new ServerPlayerTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeGold { - return new ServerPlayerTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeGold { - return new ServerPlayerTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerTakeGold | PlainMessage | undefined, b: ServerPlayerTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerTakeGold, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerAddItem - */ -export class ClientPlayerAddItem extends Message { - /** - * @generated from oneof NTALT.ClientPlayerAddItem.item - */ - item: { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Spells spells = 1; - */ - value: ClientPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Wands wands = 2; - */ - value: ClientPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Items flasks = 3; - */ - value: ClientPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NTALT.ClientPlayerAddItem.Entities objects = 4; - */ - value: ClientPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spells", kind: "message", T: ClientPlayerAddItem_Spells, oneof: "item" }, - { no: 2, name: "wands", kind: "message", T: ClientPlayerAddItem_Wands, oneof: "item" }, - { no: 3, name: "flasks", kind: "message", T: ClientPlayerAddItem_Items, oneof: "item" }, - { no: 4, name: "objects", kind: "message", T: ClientPlayerAddItem_Entities, oneof: "item" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem { - return new ClientPlayerAddItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem { - return new ClientPlayerAddItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem { - return new ClientPlayerAddItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem | PlainMessage | undefined, b: ClientPlayerAddItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Spells - */ -export class ClientPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NTALT.Spell list = 1; - */ - list: Spell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Spells"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Spells { - return new ClientPlayerAddItem_Spells().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Spells { - return new ClientPlayerAddItem_Spells().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Spells { - return new ClientPlayerAddItem_Spells().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Spells | PlainMessage | undefined, b: ClientPlayerAddItem_Spells | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Spells, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Wands - */ -export class ClientPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NTALT.Wand list = 1; - */ - list: Wand[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Wands"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Wand, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Wands { - return new ClientPlayerAddItem_Wands().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Wands { - return new ClientPlayerAddItem_Wands().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Wands { - return new ClientPlayerAddItem_Wands().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Wands | PlainMessage | undefined, b: ClientPlayerAddItem_Wands | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Wands, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Items - */ -export class ClientPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NTALT.Item list = 1; - */ - list: Item[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Items"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Item, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Items { - return new ClientPlayerAddItem_Items().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Items { - return new ClientPlayerAddItem_Items().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Items { - return new ClientPlayerAddItem_Items().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Items | PlainMessage | undefined, b: ClientPlayerAddItem_Items | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Items, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerAddItem.Entities - */ -export class ClientPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NTALT.EntityItem list = 1; - */ - list: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerAddItem.Entities"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Entities { - return new ClientPlayerAddItem_Entities().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Entities { - return new ClientPlayerAddItem_Entities().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Entities { - return new ClientPlayerAddItem_Entities().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Entities | PlainMessage | undefined, b: ClientPlayerAddItem_Entities | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Entities, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerAddItem - */ -export class ServerPlayerAddItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from oneof NTALT.ServerPlayerAddItem.item - */ - item: { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Spells spells = 2; - */ - value: ServerPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Wands wands = 3; - */ - value: ServerPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Items flasks = 4; - */ - value: ServerPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NTALT.ServerPlayerAddItem.Entities objects = 5; - */ - value: ServerPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "spells", kind: "message", T: ServerPlayerAddItem_Spells, oneof: "item" }, - { no: 3, name: "wands", kind: "message", T: ServerPlayerAddItem_Wands, oneof: "item" }, - { no: 4, name: "flasks", kind: "message", T: ServerPlayerAddItem_Items, oneof: "item" }, - { no: 5, name: "objects", kind: "message", T: ServerPlayerAddItem_Entities, oneof: "item" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem { - return new ServerPlayerAddItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem { - return new ServerPlayerAddItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem { - return new ServerPlayerAddItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem | PlainMessage | undefined, b: ServerPlayerAddItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Spells - */ -export class ServerPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NTALT.Spell list = 1; - */ - list: Spell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Spells"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Spells { - return new ServerPlayerAddItem_Spells().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Spells { - return new ServerPlayerAddItem_Spells().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Spells { - return new ServerPlayerAddItem_Spells().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Spells | PlainMessage | undefined, b: ServerPlayerAddItem_Spells | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Spells, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Wands - */ -export class ServerPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NTALT.Wand list = 2; - */ - list: Wand[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Wands"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "list", kind: "message", T: Wand, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Wands { - return new ServerPlayerAddItem_Wands().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Wands { - return new ServerPlayerAddItem_Wands().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Wands { - return new ServerPlayerAddItem_Wands().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Wands | PlainMessage | undefined, b: ServerPlayerAddItem_Wands | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Wands, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Items - */ -export class ServerPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NTALT.Item list = 3; - */ - list: Item[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Items"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "list", kind: "message", T: Item, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Items { - return new ServerPlayerAddItem_Items().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Items { - return new ServerPlayerAddItem_Items().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Items { - return new ServerPlayerAddItem_Items().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Items | PlainMessage | undefined, b: ServerPlayerAddItem_Items | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Items, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerAddItem.Entities - */ -export class ServerPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NTALT.EntityItem list = 4; - */ - list: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerAddItem.Entities"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 4, name: "list", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Entities { - return new ServerPlayerAddItem_Entities().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Entities { - return new ServerPlayerAddItem_Entities().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Entities { - return new ServerPlayerAddItem_Entities().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Entities | PlainMessage | undefined, b: ServerPlayerAddItem_Entities | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Entities, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerTakeItem - */ -export class ClientPlayerTakeItem extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerTakeItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeItem { - return new ClientPlayerTakeItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeItem { - return new ClientPlayerTakeItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeItem { - return new ClientPlayerTakeItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerTakeItem | PlainMessage | undefined, b: ClientPlayerTakeItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerTakeItem, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerTakeItem - */ -export class ServerPlayerTakeItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string id = 2; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerTakeItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeItem { - return new ServerPlayerTakeItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeItem { - return new ServerPlayerTakeItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeItem { - return new ServerPlayerTakeItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerTakeItem | PlainMessage | undefined, b: ServerPlayerTakeItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerTakeItem, a, b); - } -} - -/** - * @generated from message NTALT.ClientChat - */ -export class ClientChat extends Message { - /** - * @generated from field: string message = 1; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientChat"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientChat { - return new ClientChat().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientChat { - return new ClientChat().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientChat { - return new ClientChat().fromJsonString(jsonString, options); - } - - static equals(a: ClientChat | PlainMessage | undefined, b: ClientChat | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientChat, a, b); - } -} - -/** - * @generated from message NTALT.ServerChat - */ -export class ServerChat extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string user_id = 2; - */ - userId = ""; - - /** - * @generated from field: string name = 3; - */ - name = ""; - - /** - * @generated from field: string message = 4; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerChat"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerChat { - return new ServerChat().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerChat { - return new ServerChat().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerChat { - return new ServerChat().fromJsonString(jsonString, options); - } - - static equals(a: ServerChat | PlainMessage | undefined, b: ServerChat | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerChat, a, b); - } -} - -/** - * @generated from message NTALT.ServerStatsUpdate - */ -export class ServerStatsUpdate extends Message { - /** - * @generated from field: string data = 1; - */ - data = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerStatsUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerStatsUpdate { - return new ServerStatsUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerStatsUpdate { - return new ServerStatsUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerStatsUpdate { - return new ServerStatsUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ServerStatsUpdate | PlainMessage | undefined, b: ServerStatsUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerStatsUpdate, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerPickup - */ -export class ClientPlayerPickup extends Message { - /** - * @generated from oneof NTALT.ClientPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NTALT.ClientPlayerPickup.HeartPickup heart = 1; - */ - value: ClientPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NTALT.ClientPlayerPickup.OrbPickup orb = 2; - */ - value: ClientPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "heart", kind: "message", T: ClientPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 2, name: "orb", kind: "message", T: ClientPlayerPickup_OrbPickup, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup { - return new ClientPlayerPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup { - return new ClientPlayerPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup { - return new ClientPlayerPickup().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerPickup | PlainMessage | undefined, b: ClientPlayerPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerPickup, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerPickup.HeartPickup - */ -export class ClientPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerPickup.HeartPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_HeartPickup { - return new ClientPlayerPickup_HeartPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_HeartPickup { - return new ClientPlayerPickup_HeartPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_HeartPickup { - return new ClientPlayerPickup_HeartPickup().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerPickup_HeartPickup | PlainMessage | undefined, b: ClientPlayerPickup_HeartPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerPickup_HeartPickup, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerPickup.OrbPickup - */ -export class ClientPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerPickup.OrbPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_OrbPickup { - return new ClientPlayerPickup_OrbPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_OrbPickup { - return new ClientPlayerPickup_OrbPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_OrbPickup { - return new ClientPlayerPickup_OrbPickup().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerPickup_OrbPickup | PlainMessage | undefined, b: ClientPlayerPickup_OrbPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerPickup_OrbPickup, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerPickup - */ -export class ServerPlayerPickup extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from oneof NTALT.ServerPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NTALT.ServerPlayerPickup.HeartPickup heart = 2; - */ - value: ServerPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NTALT.ServerPlayerPickup.OrbPickup orb = 3; - */ - value: ServerPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "heart", kind: "message", T: ServerPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 3, name: "orb", kind: "message", T: ServerPlayerPickup_OrbPickup, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup { - return new ServerPlayerPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup { - return new ServerPlayerPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup { - return new ServerPlayerPickup().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPickup | PlainMessage | undefined, b: ServerPlayerPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPickup, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerPickup.HeartPickup - */ -export class ServerPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerPickup.HeartPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_HeartPickup { - return new ServerPlayerPickup_HeartPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_HeartPickup { - return new ServerPlayerPickup_HeartPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_HeartPickup { - return new ServerPlayerPickup_HeartPickup().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPickup_HeartPickup | PlainMessage | undefined, b: ServerPlayerPickup_HeartPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPickup_HeartPickup, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerPickup.OrbPickup - */ -export class ServerPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerPickup.OrbPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_OrbPickup { - return new ServerPlayerPickup_OrbPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_OrbPickup { - return new ServerPlayerPickup_OrbPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_OrbPickup { - return new ServerPlayerPickup_OrbPickup().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPickup_OrbPickup | PlainMessage | undefined, b: ServerPlayerPickup_OrbPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPickup_OrbPickup, a, b); - } -} - -/** - * @generated from message NTALT.ClientNemesisPickupItem - */ -export class ClientNemesisPickupItem extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientNemesisPickupItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisPickupItem { - return new ClientNemesisPickupItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisPickupItem { - return new ClientNemesisPickupItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisPickupItem { - return new ClientNemesisPickupItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientNemesisPickupItem | PlainMessage | undefined, b: ClientNemesisPickupItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientNemesisPickupItem, a, b); - } -} - -/** - * @generated from message NTALT.ServerNemesisPickupItem - */ -export class ServerNemesisPickupItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string game_id = 2; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerNemesisPickupItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisPickupItem { - return new ServerNemesisPickupItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisPickupItem { - return new ServerNemesisPickupItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisPickupItem { - return new ServerNemesisPickupItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerNemesisPickupItem | PlainMessage | undefined, b: ServerNemesisPickupItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerNemesisPickupItem, a, b); - } -} - -/** - * @generated from message NTALT.ClientNemesisAbility - */ -export class ClientNemesisAbility extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientNemesisAbility"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisAbility { - return new ClientNemesisAbility().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisAbility { - return new ClientNemesisAbility().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisAbility { - return new ClientNemesisAbility().fromJsonString(jsonString, options); - } - - static equals(a: ClientNemesisAbility | PlainMessage | undefined, b: ClientNemesisAbility | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientNemesisAbility, a, b); - } -} - -/** - * @generated from message NTALT.ServerNemesisAbility - */ -export class ServerNemesisAbility extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string game_id = 2; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerNemesisAbility"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisAbility { - return new ServerNemesisAbility().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisAbility { - return new ServerNemesisAbility().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisAbility { - return new ServerNemesisAbility().fromJsonString(jsonString, options); - } - - static equals(a: ServerNemesisAbility | PlainMessage | undefined, b: ServerNemesisAbility | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerNemesisAbility, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerDeath - */ -export class ClientPlayerDeath extends Message { - /** - * @generated from field: bool is_win = 1; - */ - isWin = false; - - /** - * @generated from field: optional uint32 game_time = 2; - */ - gameTime?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerDeath"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerDeath { - return new ClientPlayerDeath().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerDeath { - return new ClientPlayerDeath().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerDeath { - return new ClientPlayerDeath().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerDeath | PlainMessage | undefined, b: ClientPlayerDeath | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerDeath, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerDeath - */ -export class ServerPlayerDeath extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: bool is_win = 2; - */ - isWin = false; - - /** - * @generated from field: optional uint32 game_time = 3; - */ - gameTime?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerDeath"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerDeath { - return new ServerPlayerDeath().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerDeath { - return new ServerPlayerDeath().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerDeath { - return new ServerPlayerDeath().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerDeath | PlainMessage | undefined, b: ServerPlayerDeath | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerDeath, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerNewGamePlus - */ -export class ClientPlayerNewGamePlus extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerNewGamePlus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerNewGamePlus { - return new ClientPlayerNewGamePlus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerNewGamePlus { - return new ClientPlayerNewGamePlus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerNewGamePlus { - return new ClientPlayerNewGamePlus().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerNewGamePlus | PlainMessage | undefined, b: ClientPlayerNewGamePlus | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerNewGamePlus, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerNewGamePlus - */ -export class ServerPlayerNewGamePlus extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerNewGamePlus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerNewGamePlus { - return new ServerPlayerNewGamePlus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerNewGamePlus { - return new ServerPlayerNewGamePlus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerNewGamePlus { - return new ServerPlayerNewGamePlus().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerNewGamePlus | PlainMessage | undefined, b: ServerPlayerNewGamePlus | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerNewGamePlus, a, b); - } -} - -/** - * @generated from message NTALT.ClientPlayerSecretHourglass - */ -export class ClientPlayerSecretHourglass extends Message { - /** - * @generated from field: string material = 1; - */ - material = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientPlayerSecretHourglass"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerSecretHourglass { - return new ClientPlayerSecretHourglass().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerSecretHourglass { - return new ClientPlayerSecretHourglass().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerSecretHourglass { - return new ClientPlayerSecretHourglass().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerSecretHourglass | PlainMessage | undefined, b: ClientPlayerSecretHourglass | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerSecretHourglass, a, b); - } -} - -/** - * @generated from message NTALT.ServerPlayerSecretHourglass - */ -export class ServerPlayerSecretHourglass extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string material = 2; - */ - material = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerPlayerSecretHourglass"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerSecretHourglass { - return new ServerPlayerSecretHourglass().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerSecretHourglass { - return new ServerPlayerSecretHourglass().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerSecretHourglass { - return new ServerPlayerSecretHourglass().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerSecretHourglass | PlainMessage | undefined, b: ServerPlayerSecretHourglass | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerSecretHourglass, a, b); - } -} - -/** - * @generated from message NTALT.ClientCustomModEvent - */ -export class ClientCustomModEvent extends Message { - /** - * @generated from field: string payload = 1; - */ - payload = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientCustomModEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientCustomModEvent { - return new ClientCustomModEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientCustomModEvent { - return new ClientCustomModEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientCustomModEvent { - return new ClientCustomModEvent().fromJsonString(jsonString, options); - } - - static equals(a: ClientCustomModEvent | PlainMessage | undefined, b: ClientCustomModEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientCustomModEvent, a, b); - } -} - -/** - * @generated from message NTALT.ServerCustomModEvent - */ -export class ServerCustomModEvent extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string payload = 2; - */ - payload = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerCustomModEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerCustomModEvent { - return new ServerCustomModEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerCustomModEvent { - return new ServerCustomModEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerCustomModEvent { - return new ServerCustomModEvent().fromJsonString(jsonString, options); - } - - static equals(a: ServerCustomModEvent | PlainMessage | undefined, b: ServerCustomModEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerCustomModEvent, a, b); - } -} - -/** - * @generated from message NTALT.ClientRespawnPenalty - */ -export class ClientRespawnPenalty extends Message { - /** - * @generated from field: uint32 deaths = 1; - */ - deaths = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRespawnPenalty"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRespawnPenalty { - return new ClientRespawnPenalty().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRespawnPenalty { - return new ClientRespawnPenalty().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRespawnPenalty { - return new ClientRespawnPenalty().fromJsonString(jsonString, options); - } - - static equals(a: ClientRespawnPenalty | PlainMessage | undefined, b: ClientRespawnPenalty | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRespawnPenalty, a, b); - } -} - -/** - * @generated from message NTALT.ServerRespawnPenalty - */ -export class ServerRespawnPenalty extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 deaths = 2; - */ - deaths = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRespawnPenalty"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRespawnPenalty { - return new ServerRespawnPenalty().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRespawnPenalty { - return new ServerRespawnPenalty().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRespawnPenalty { - return new ServerRespawnPenalty().fromJsonString(jsonString, options); - } - - static equals(a: ServerRespawnPenalty | PlainMessage | undefined, b: ServerRespawnPenalty | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRespawnPenalty, a, b); - } -} - -/** - * @generated from message NTALT.ClientAngerySteve - */ -export class ClientAngerySteve extends Message { - /** - * @generated from field: bool idk = 1; - */ - idk = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientAngerySteve"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientAngerySteve { - return new ClientAngerySteve().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientAngerySteve { - return new ClientAngerySteve().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientAngerySteve { - return new ClientAngerySteve().fromJsonString(jsonString, options); - } - - static equals(a: ClientAngerySteve | PlainMessage | undefined, b: ClientAngerySteve | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientAngerySteve, a, b); - } -} - -/** - * @generated from message NTALT.ServerAngerySteve - */ -export class ServerAngerySteve extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerAngerySteve"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerAngerySteve { - return new ServerAngerySteve().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerAngerySteve { - return new ServerAngerySteve().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerAngerySteve { - return new ServerAngerySteve().fromJsonString(jsonString, options); - } - - static equals(a: ServerAngerySteve | PlainMessage | undefined, b: ServerAngerySteve | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerAngerySteve, a, b); - } -} - -/** - * @generated from message NTALT.Wand - */ -export class Wand extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: NTALT.Wand.WandStats stats = 2; - */ - stats?: Wand_WandStats; - - /** - * @generated from field: repeated NTALT.Spell always_cast = 3; - */ - alwaysCast: Spell[] = []; - - /** - * @generated from field: repeated NTALT.Spell deck = 4; - */ - deck: Spell[] = []; - - /** - * @generated from field: optional string sent_by = 5; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 6; - */ - contributedBy?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Wand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "stats", kind: "message", T: Wand_WandStats }, - { no: 3, name: "always_cast", kind: "message", T: Spell, repeated: true }, - { no: 4, name: "deck", kind: "message", T: Spell, repeated: true }, - { no: 5, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand { - return new Wand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand { - return new Wand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Wand { - return new Wand().fromJsonString(jsonString, options); - } - - static equals(a: Wand | PlainMessage | undefined, b: Wand | PlainMessage | undefined): boolean { - return proto3.util.equals(Wand, a, b); - } -} - -/** - * @generated from message NTALT.Wand.WandStats - */ -export class Wand_WandStats extends Message { - /** - * @generated from field: string sprite = 1; - */ - sprite = ""; - - /** - * @generated from field: bool named = 2; - */ - named = false; - - /** - * @generated from field: string ui_name = 3; - */ - uiName = ""; - - /** - * @generated from field: float mana_max = 4; - */ - manaMax = 0; - - /** - * @generated from field: float mana_charge_speed = 5; - */ - manaChargeSpeed = 0; - - /** - * @generated from field: int32 reload_time = 6; - */ - reloadTime = 0; - - /** - * @generated from field: uint32 actions_per_round = 7; - */ - actionsPerRound = 0; - - /** - * @generated from field: uint32 deck_capacity = 8; - */ - deckCapacity = 0; - - /** - * @generated from field: bool shuffle_deck_when_empty = 9; - */ - shuffleDeckWhenEmpty = false; - - /** - * @generated from field: float spread_degrees = 10; - */ - spreadDegrees = 0; - - /** - * @generated from field: float speed_multiplier = 11; - */ - speedMultiplier = 0; - - /** - * @generated from field: int32 fire_rate_wait = 12; - */ - fireRateWait = 0; - - /** - * @generated from field: float tip_x = 13; - */ - tipX = 0; - - /** - * @generated from field: float tip_y = 14; - */ - tipY = 0; - - /** - * @generated from field: float grip_x = 15; - */ - gripX = 0; - - /** - * @generated from field: float grip_y = 16; - */ - gripY = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Wand.WandStats"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "named", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "ui_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "mana_max", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 5, name: "mana_charge_speed", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 6, name: "reload_time", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "actions_per_round", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "deck_capacity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "shuffle_deck_when_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "spread_degrees", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 11, name: "speed_multiplier", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 12, name: "fire_rate_wait", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 13, name: "tip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 14, name: "tip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 15, name: "grip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 16, name: "grip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand_WandStats { - return new Wand_WandStats().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand_WandStats { - return new Wand_WandStats().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Wand_WandStats { - return new Wand_WandStats().fromJsonString(jsonString, options); - } - - static equals(a: Wand_WandStats | PlainMessage | undefined, b: Wand_WandStats | PlainMessage | undefined): boolean { - return proto3.util.equals(Wand_WandStats, a, b); - } -} - -/** - * @generated from message NTALT.Spell - */ -export class Spell extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string game_id = 2; - */ - gameId = ""; - - /** - * @generated from field: optional string sent_by = 3; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 4; - */ - contributedBy?: string; - - /** - * @generated from field: int32 uses_remaining = 5; - */ - usesRemaining = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Spell"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "uses_remaining", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Spell { - return new Spell().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Spell { - return new Spell().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Spell { - return new Spell().fromJsonString(jsonString, options); - } - - static equals(a: Spell | PlainMessage | undefined, b: Spell | PlainMessage | undefined): boolean { - return proto3.util.equals(Spell, a, b); - } -} - -/** - * @generated from message NTALT.Item - */ -export class Item extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: NTALT.Item.Color color = 2; - */ - color?: Item_Color; - - /** - * @generated from field: repeated NTALT.Item.Material content = 3; - */ - content: Item_Material[] = []; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 5; - */ - contributedBy?: string; - - /** - * @generated from field: bool is_chest = 6 [deprecated = true]; - * @deprecated - */ - isChest = false; - - /** - * @generated from field: string item_type = 7; - */ - itemType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Item"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "color", kind: "message", T: Item_Color }, - { no: 3, name: "content", kind: "message", T: Item_Material, repeated: true }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "is_chest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "item_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item { - return new Item().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item { - return new Item().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item { - return new Item().fromJsonString(jsonString, options); - } - - static equals(a: Item | PlainMessage | undefined, b: Item | PlainMessage | undefined): boolean { - return proto3.util.equals(Item, a, b); - } -} - -/** - * @generated from message NTALT.Item.Color - */ -export class Item_Color extends Message { - /** - * @generated from field: float r = 1; - */ - r = 0; - - /** - * @generated from field: float g = 2; - */ - g = 0; - - /** - * @generated from field: float b = 3; - */ - b = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Item.Color"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "r", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 2, name: "g", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "b", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Color { - return new Item_Color().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Color { - return new Item_Color().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item_Color { - return new Item_Color().fromJsonString(jsonString, options); - } - - static equals(a: Item_Color | PlainMessage | undefined, b: Item_Color | PlainMessage | undefined): boolean { - return proto3.util.equals(Item_Color, a, b); - } -} - -/** - * @generated from message NTALT.Item.Material - */ -export class Item_Material extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id = 0; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.Item.Material"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Material { - return new Item_Material().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Material { - return new Item_Material().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item_Material { - return new Item_Material().fromJsonString(jsonString, options); - } - - static equals(a: Item_Material | PlainMessage | undefined, b: Item_Material | PlainMessage | undefined): boolean { - return proto3.util.equals(Item_Material, a, b); - } -} - -/** - * @generated from message NTALT.EntityItem - */ -export class EntityItem extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string path = 2; - */ - path = ""; - - /** - * @generated from field: string sprite = 3; - */ - sprite = ""; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.EntityItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EntityItem { - return new EntityItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EntityItem { - return new EntityItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EntityItem { - return new EntityItem().fromJsonString(jsonString, options); - } - - static equals(a: EntityItem | PlainMessage | undefined, b: EntityItem | PlainMessage | undefined): boolean { - return proto3.util.equals(EntityItem, a, b); - } -} - -/** - * @generated from message NTALT.LobbyAction - */ -export class LobbyAction extends Message { - /** - * @generated from oneof NTALT.LobbyAction.action - */ - action: { - /** - * @generated from field: NTALT.ClientRoomCreate c_room_create = 1; - */ - value: ClientRoomCreate; - case: "cRoomCreate"; - } | { - /** - * @generated from field: NTALT.ServerRoomCreated s_room_created = 2; - */ - value: ServerRoomCreated; - case: "sRoomCreated"; - } | { - /** - * @generated from field: NTALT.ServerRoomCreateFailed s_room_create_failed = 3; - */ - value: ServerRoomCreateFailed; - case: "sRoomCreateFailed"; - } | { - /** - * @generated from field: NTALT.ClientRoomUpdate c_room_update = 4; - */ - value: ClientRoomUpdate; - case: "cRoomUpdate"; - } | { - /** - * @generated from field: NTALT.ServerRoomUpdated s_room_updated = 5; - */ - value: ServerRoomUpdated; - case: "sRoomUpdated"; - } | { - /** - * @generated from field: NTALT.ServerRoomUpdateFailed s_room_update_failed = 6; - */ - value: ServerRoomUpdateFailed; - case: "sRoomUpdateFailed"; - } | { - /** - * @generated from field: NTALT.ClientRoomFlagsUpdate c_room_flags_update = 7; - */ - value: ClientRoomFlagsUpdate; - case: "cRoomFlagsUpdate"; - } | { - /** - * @generated from field: NTALT.ServerRoomFlagsUpdated s_room_flags_updated = 8; - */ - value: ServerRoomFlagsUpdated; - case: "sRoomFlagsUpdated"; - } | { - /** - * @generated from field: NTALT.ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - */ - value: ServerRoomFlagsUpdateFailed; - case: "sRoomFlagsUpdateFailed"; - } | { - /** - * @generated from field: NTALT.ClientRoomDelete c_room_delete = 10; - */ - value: ClientRoomDelete; - case: "cRoomDelete"; - } | { - /** - * @generated from field: NTALT.ServerRoomDeleted s_room_deleted = 11; - */ - value: ServerRoomDeleted; - case: "sRoomDeleted"; - } | { - /** - * @generated from field: NTALT.ClientJoinRoom c_join_room = 12; - */ - value: ClientJoinRoom; - case: "cJoinRoom"; - } | { - /** - * @generated from field: NTALT.ServerJoinRoomSuccess s_join_room_success = 13; - */ - value: ServerJoinRoomSuccess; - case: "sJoinRoomSuccess"; - } | { - /** - * @generated from field: NTALT.ServerJoinRoomFailed s_join_room_failed = 14; - */ - value: ServerJoinRoomFailed; - case: "sJoinRoomFailed"; - } | { - /** - * @generated from field: NTALT.ServerUserJoinedRoom s_user_joined_room = 15; - */ - value: ServerUserJoinedRoom; - case: "sUserJoinedRoom"; - } | { - /** - * @generated from field: NTALT.ClientLeaveRoom c_leave_room = 16; - */ - value: ClientLeaveRoom; - case: "cLeaveRoom"; - } | { - /** - * @generated from field: NTALT.ServerUserLeftRoom s_user_left_room = 17; - */ - value: ServerUserLeftRoom; - case: "sUserLeftRoom"; - } | { - /** - * @generated from field: NTALT.ClientKickUser c_kick_user = 18; - */ - value: ClientKickUser; - case: "cKickUser"; - } | { - /** - * @generated from field: NTALT.ServerUserKicked s_user_kicked = 19; - */ - value: ServerUserKicked; - case: "sUserKicked"; - } | { - /** - * @generated from field: NTALT.ClientBanUser c_ban_user = 20; - */ - value: ClientBanUser; - case: "cBanUser"; - } | { - /** - * @generated from field: NTALT.ServerUserBanned s_user_banned = 21; - */ - value: ServerUserBanned; - case: "sUserBanned"; - } | { - /** - * @generated from field: NTALT.ClientReadyState c_ready_state = 22; - */ - value: ClientReadyState; - case: "cReadyState"; - } | { - /** - * @generated from field: NTALT.ServerUserReadyState s_user_ready_state = 23; - */ - value: ServerUserReadyState; - case: "sUserReadyState"; - } | { - /** - * @generated from field: NTALT.ClientStartRun c_start_run = 24; - */ - value: ClientStartRun; - case: "cStartRun"; - } | { - /** - * @generated from field: NTALT.ServerHostStart s_host_start = 25; - */ - value: ServerHostStart; - case: "sHostStart"; - } | { - /** - * @generated from field: NTALT.ClientRequestRoomList c_request_room_list = 27; - */ - value: ClientRequestRoomList; - case: "cRequestRoomList"; - } | { - /** - * @generated from field: NTALT.ServerRoomList s_room_list = 28; - */ - value: ServerRoomList; - case: "sRoomList"; - } | { - /** - * @generated from field: NTALT.ServerDisconnected s_disconnected = 31; - */ - value: ServerDisconnected; - case: "sDisconnected"; - } | { - /** - * @generated from field: NTALT.ServerRoomAddToList s_room_add_to_list = 32; - */ - value: ServerRoomAddToList; - case: "sRoomAddToList"; - } | { - /** - * @generated from field: NTALT.ClientRunOver c_run_over = 33; - */ - value: ClientRunOver; - case: "cRunOver"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.LobbyAction"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "c_room_create", kind: "message", T: ClientRoomCreate, oneof: "action" }, - { no: 2, name: "s_room_created", kind: "message", T: ServerRoomCreated, oneof: "action" }, - { no: 3, name: "s_room_create_failed", kind: "message", T: ServerRoomCreateFailed, oneof: "action" }, - { no: 4, name: "c_room_update", kind: "message", T: ClientRoomUpdate, oneof: "action" }, - { no: 5, name: "s_room_updated", kind: "message", T: ServerRoomUpdated, oneof: "action" }, - { no: 6, name: "s_room_update_failed", kind: "message", T: ServerRoomUpdateFailed, oneof: "action" }, - { no: 7, name: "c_room_flags_update", kind: "message", T: ClientRoomFlagsUpdate, oneof: "action" }, - { no: 8, name: "s_room_flags_updated", kind: "message", T: ServerRoomFlagsUpdated, oneof: "action" }, - { no: 9, name: "s_room_flags_update_failed", kind: "message", T: ServerRoomFlagsUpdateFailed, oneof: "action" }, - { no: 10, name: "c_room_delete", kind: "message", T: ClientRoomDelete, oneof: "action" }, - { no: 11, name: "s_room_deleted", kind: "message", T: ServerRoomDeleted, oneof: "action" }, - { no: 12, name: "c_join_room", kind: "message", T: ClientJoinRoom, oneof: "action" }, - { no: 13, name: "s_join_room_success", kind: "message", T: ServerJoinRoomSuccess, oneof: "action" }, - { no: 14, name: "s_join_room_failed", kind: "message", T: ServerJoinRoomFailed, oneof: "action" }, - { no: 15, name: "s_user_joined_room", kind: "message", T: ServerUserJoinedRoom, oneof: "action" }, - { no: 16, name: "c_leave_room", kind: "message", T: ClientLeaveRoom, oneof: "action" }, - { no: 17, name: "s_user_left_room", kind: "message", T: ServerUserLeftRoom, oneof: "action" }, - { no: 18, name: "c_kick_user", kind: "message", T: ClientKickUser, oneof: "action" }, - { no: 19, name: "s_user_kicked", kind: "message", T: ServerUserKicked, oneof: "action" }, - { no: 20, name: "c_ban_user", kind: "message", T: ClientBanUser, oneof: "action" }, - { no: 21, name: "s_user_banned", kind: "message", T: ServerUserBanned, oneof: "action" }, - { no: 22, name: "c_ready_state", kind: "message", T: ClientReadyState, oneof: "action" }, - { no: 23, name: "s_user_ready_state", kind: "message", T: ServerUserReadyState, oneof: "action" }, - { no: 24, name: "c_start_run", kind: "message", T: ClientStartRun, oneof: "action" }, - { no: 25, name: "s_host_start", kind: "message", T: ServerHostStart, oneof: "action" }, - { no: 27, name: "c_request_room_list", kind: "message", T: ClientRequestRoomList, oneof: "action" }, - { no: 28, name: "s_room_list", kind: "message", T: ServerRoomList, oneof: "action" }, - { no: 31, name: "s_disconnected", kind: "message", T: ServerDisconnected, oneof: "action" }, - { no: 32, name: "s_room_add_to_list", kind: "message", T: ServerRoomAddToList, oneof: "action" }, - { no: 33, name: "c_run_over", kind: "message", T: ClientRunOver, oneof: "action" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LobbyAction { - return new LobbyAction().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LobbyAction { - return new LobbyAction().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LobbyAction { - return new LobbyAction().fromJsonString(jsonString, options); - } - - static equals(a: LobbyAction | PlainMessage | undefined, b: LobbyAction | PlainMessage | undefined): boolean { - return proto3.util.equals(LobbyAction, a, b); - } -} - -/** - * @generated from message NTALT.ClientRunOver - */ -export class ClientRunOver extends Message { - /** - * @generated from field: optional bool idk = 1; - */ - idk?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRunOver"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRunOver { - return new ClientRunOver().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRunOver { - return new ClientRunOver().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRunOver { - return new ClientRunOver().fromJsonString(jsonString, options); - } - - static equals(a: ClientRunOver | PlainMessage | undefined, b: ClientRunOver | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRunOver, a, b); - } -} - -/** - * @generated from message NTALT.ServerDisconnected - */ -export class ServerDisconnected extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerDisconnected"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerDisconnected { - return new ServerDisconnected().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerDisconnected { - return new ServerDisconnected().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerDisconnected { - return new ServerDisconnected().fromJsonString(jsonString, options); - } - - static equals(a: ServerDisconnected | PlainMessage | undefined, b: ServerDisconnected | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerDisconnected, a, b); - } -} - -/** - * @generated from message NTALT.ClientRoomDelete - */ -export class ClientRoomDelete extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRoomDelete"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomDelete { - return new ClientRoomDelete().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomDelete { - return new ClientRoomDelete().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomDelete { - return new ClientRoomDelete().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomDelete | PlainMessage | undefined, b: ClientRoomDelete | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomDelete, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomDeleted - */ -export class ServerRoomDeleted extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomDeleted"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomDeleted { - return new ServerRoomDeleted().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomDeleted { - return new ServerRoomDeleted().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomDeleted { - return new ServerRoomDeleted().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomDeleted | PlainMessage | undefined, b: ServerRoomDeleted | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomDeleted, a, b); - } -} - -/** - * @generated from message NTALT.ClientRoomCreate - */ -export class ClientRoomCreate extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 2; - */ - gamemode = 0; - - /** - * @generated from field: uint32 max_users = 3; - */ - maxUsers = 0; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRoomCreate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomCreate { - return new ClientRoomCreate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomCreate { - return new ClientRoomCreate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomCreate { - return new ClientRoomCreate().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomCreate | PlainMessage | undefined, b: ClientRoomCreate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomCreate, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomCreated - */ -export class ServerRoomCreated extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers = 0; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked = false; - - /** - * @generated from field: repeated NTALT.ServerRoomCreated.User users = 7; - */ - users: ServerRoomCreated_User[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomCreated"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerRoomCreated_User, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated { - return new ServerRoomCreated().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated { - return new ServerRoomCreated().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated { - return new ServerRoomCreated().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomCreated | PlainMessage | undefined, b: ServerRoomCreated | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomCreated, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomCreated.User - */ -export class ServerRoomCreated_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: bool ready = 3; - */ - ready = false; - - /** - * @generated from field: bool owner = 4; - */ - owner = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomCreated.User"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated_User { - return new ServerRoomCreated_User().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated_User { - return new ServerRoomCreated_User().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated_User { - return new ServerRoomCreated_User().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomCreated_User | PlainMessage | undefined, b: ServerRoomCreated_User | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomCreated_User, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomCreateFailed - */ -export class ServerRoomCreateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomCreateFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreateFailed { - return new ServerRoomCreateFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreateFailed { - return new ServerRoomCreateFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreateFailed { - return new ServerRoomCreateFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomCreateFailed | PlainMessage | undefined, b: ServerRoomCreateFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomCreateFailed, a, b); - } -} - -/** - * @generated from message NTALT.ClientRoomUpdate - */ -export class ClientRoomUpdate extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRoomUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomUpdate { - return new ClientRoomUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomUpdate { - return new ClientRoomUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomUpdate { - return new ClientRoomUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomUpdate | PlainMessage | undefined, b: ClientRoomUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomUpdate, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomUpdated - */ -export class ServerRoomUpdated extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomUpdated"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdated { - return new ServerRoomUpdated().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdated { - return new ServerRoomUpdated().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdated { - return new ServerRoomUpdated().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomUpdated | PlainMessage | undefined, b: ServerRoomUpdated | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomUpdated, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomUpdateFailed - */ -export class ServerRoomUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomUpdateFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdateFailed { - return new ServerRoomUpdateFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdateFailed { - return new ServerRoomUpdateFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdateFailed { - return new ServerRoomUpdateFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomUpdateFailed | PlainMessage | undefined, b: ServerRoomUpdateFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomUpdateFailed, a, b); - } -} - -/** - * @generated from message NTALT.ClientRoomFlagsUpdate - */ -export class ClientRoomFlagsUpdate extends Message { - /** - * @generated from field: repeated NTALT.ClientRoomFlagsUpdate.GameFlag flags = 1; - */ - flags: ClientRoomFlagsUpdate_GameFlag[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRoomFlagsUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flags", kind: "message", T: ClientRoomFlagsUpdate_GameFlag, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate { - return new ClientRoomFlagsUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate { - return new ClientRoomFlagsUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate { - return new ClientRoomFlagsUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomFlagsUpdate | PlainMessage | undefined, b: ClientRoomFlagsUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomFlagsUpdate, a, b); - } -} - -/** - * @generated from message NTALT.ClientRoomFlagsUpdate.GameFlag - */ -export class ClientRoomFlagsUpdate_GameFlag extends Message { - /** - * TODO: This seems like a hack, please improve it - * - * @generated from field: string flag = 1; - */ - flag = ""; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRoomFlagsUpdate.GameFlag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate_GameFlag { - return new ClientRoomFlagsUpdate_GameFlag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate_GameFlag { - return new ClientRoomFlagsUpdate_GameFlag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate_GameFlag { - return new ClientRoomFlagsUpdate_GameFlag().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined, b: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomFlagsUpdate_GameFlag, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomFlagsUpdated - */ -export class ServerRoomFlagsUpdated extends Message { - /** - * @generated from field: repeated NTALT.ServerRoomFlagsUpdated.GameFlag flags = 1; - */ - flags: ServerRoomFlagsUpdated_GameFlag[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomFlagsUpdated"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flags", kind: "message", T: ServerRoomFlagsUpdated_GameFlag, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated { - return new ServerRoomFlagsUpdated().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated { - return new ServerRoomFlagsUpdated().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated { - return new ServerRoomFlagsUpdated().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomFlagsUpdated | PlainMessage | undefined, b: ServerRoomFlagsUpdated | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomFlagsUpdated, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomFlagsUpdated.GameFlag - */ -export class ServerRoomFlagsUpdated_GameFlag extends Message { - /** - * @generated from field: string flag = 1; - */ - flag = ""; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomFlagsUpdated.GameFlag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated_GameFlag { - return new ServerRoomFlagsUpdated_GameFlag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated_GameFlag { - return new ServerRoomFlagsUpdated_GameFlag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated_GameFlag { - return new ServerRoomFlagsUpdated_GameFlag().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined, b: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomFlagsUpdated_GameFlag, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomFlagsUpdateFailed - */ -export class ServerRoomFlagsUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomFlagsUpdateFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdateFailed { - return new ServerRoomFlagsUpdateFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdateFailed { - return new ServerRoomFlagsUpdateFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdateFailed { - return new ServerRoomFlagsUpdateFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomFlagsUpdateFailed | PlainMessage | undefined, b: ServerRoomFlagsUpdateFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomFlagsUpdateFailed, a, b); - } -} - -/** - * @generated from message NTALT.ClientJoinRoom - */ -export class ClientJoinRoom extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: optional string password = 2; - */ - password?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientJoinRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientJoinRoom { - return new ClientJoinRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientJoinRoom { - return new ClientJoinRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientJoinRoom { - return new ClientJoinRoom().fromJsonString(jsonString, options); - } - - static equals(a: ClientJoinRoom | PlainMessage | undefined, b: ClientJoinRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientJoinRoom, a, b); - } -} - -/** - * @generated from message NTALT.ServerJoinRoomSuccess - */ -export class ServerJoinRoomSuccess extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers = 0; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked = false; - - /** - * @generated from field: repeated NTALT.ServerJoinRoomSuccess.User users = 7; - */ - users: ServerJoinRoomSuccess_User[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerJoinRoomSuccess"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerJoinRoomSuccess_User, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess { - return new ServerJoinRoomSuccess().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess { - return new ServerJoinRoomSuccess().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess { - return new ServerJoinRoomSuccess().fromJsonString(jsonString, options); - } - - static equals(a: ServerJoinRoomSuccess | PlainMessage | undefined, b: ServerJoinRoomSuccess | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerJoinRoomSuccess, a, b); - } -} - -/** - * @generated from message NTALT.ServerJoinRoomSuccess.User - */ -export class ServerJoinRoomSuccess_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: bool ready = 3; - */ - ready = false; - - /** - * @generated from field: bool owner = 4; - */ - owner = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerJoinRoomSuccess.User"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess_User { - return new ServerJoinRoomSuccess_User().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess_User { - return new ServerJoinRoomSuccess_User().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess_User { - return new ServerJoinRoomSuccess_User().fromJsonString(jsonString, options); - } - - static equals(a: ServerJoinRoomSuccess_User | PlainMessage | undefined, b: ServerJoinRoomSuccess_User | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerJoinRoomSuccess_User, a, b); - } -} - -/** - * @generated from message NTALT.ServerJoinRoomFailed - */ -export class ServerJoinRoomFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerJoinRoomFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomFailed { - return new ServerJoinRoomFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomFailed { - return new ServerJoinRoomFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomFailed { - return new ServerJoinRoomFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerJoinRoomFailed | PlainMessage | undefined, b: ServerJoinRoomFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerJoinRoomFailed, a, b); - } -} - -/** - * @generated from message NTALT.ServerUserJoinedRoom - */ -export class ServerUserJoinedRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerUserJoinedRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserJoinedRoom { - return new ServerUserJoinedRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserJoinedRoom { - return new ServerUserJoinedRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserJoinedRoom { - return new ServerUserJoinedRoom().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserJoinedRoom | PlainMessage | undefined, b: ServerUserJoinedRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserJoinedRoom, a, b); - } -} - -/** - * @generated from message NTALT.ClientLeaveRoom - */ -export class ClientLeaveRoom extends Message { - /** - * should be empty msg - * - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientLeaveRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientLeaveRoom { - return new ClientLeaveRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientLeaveRoom { - return new ClientLeaveRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientLeaveRoom { - return new ClientLeaveRoom().fromJsonString(jsonString, options); - } - - static equals(a: ClientLeaveRoom | PlainMessage | undefined, b: ClientLeaveRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientLeaveRoom, a, b); - } -} - -/** - * @generated from message NTALT.ServerUserLeftRoom - */ -export class ServerUserLeftRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerUserLeftRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserLeftRoom { - return new ServerUserLeftRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserLeftRoom { - return new ServerUserLeftRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserLeftRoom { - return new ServerUserLeftRoom().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserLeftRoom | PlainMessage | undefined, b: ServerUserLeftRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserLeftRoom, a, b); - } -} - -/** - * @generated from message NTALT.ClientKickUser - */ -export class ClientKickUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientKickUser"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientKickUser { - return new ClientKickUser().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientKickUser { - return new ClientKickUser().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientKickUser { - return new ClientKickUser().fromJsonString(jsonString, options); - } - - static equals(a: ClientKickUser | PlainMessage | undefined, b: ClientKickUser | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientKickUser, a, b); - } -} - -/** - * @generated from message NTALT.ServerUserKicked - */ -export class ServerUserKicked extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerUserKicked"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserKicked { - return new ServerUserKicked().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserKicked { - return new ServerUserKicked().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserKicked { - return new ServerUserKicked().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserKicked | PlainMessage | undefined, b: ServerUserKicked | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserKicked, a, b); - } -} - -/** - * @generated from message NTALT.ClientBanUser - */ -export class ClientBanUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientBanUser"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientBanUser { - return new ClientBanUser().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientBanUser { - return new ClientBanUser().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientBanUser { - return new ClientBanUser().fromJsonString(jsonString, options); - } - - static equals(a: ClientBanUser | PlainMessage | undefined, b: ClientBanUser | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientBanUser, a, b); - } -} - -/** - * @generated from message NTALT.ServerUserBanned - */ -export class ServerUserBanned extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerUserBanned"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserBanned { - return new ServerUserBanned().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserBanned { - return new ServerUserBanned().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserBanned { - return new ServerUserBanned().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserBanned | PlainMessage | undefined, b: ServerUserBanned | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserBanned, a, b); - } -} - -/** - * @generated from message NTALT.ClientReadyState - */ -export class ClientReadyState extends Message { - /** - * @generated from field: bool ready = 1; - */ - ready = false; - - /** - * @generated from field: optional string seed = 2; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 3; - */ - mods: string[] = []; - - /** - * @generated from field: optional string version = 4; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 5; - */ - beta?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientReadyState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 3, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientReadyState { - return new ClientReadyState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientReadyState { - return new ClientReadyState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientReadyState { - return new ClientReadyState().fromJsonString(jsonString, options); - } - - static equals(a: ClientReadyState | PlainMessage | undefined, b: ClientReadyState | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientReadyState, a, b); - } -} - -/** - * @generated from message NTALT.ServerUserReadyState - */ -export class ServerUserReadyState extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: bool ready = 2; - */ - ready = false; - - /** - * @generated from field: optional string seed = 3; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 4; - */ - mods: string[] = []; - - /** - * @generated from field: optional string version = 5; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 6; - */ - beta?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerUserReadyState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserReadyState { - return new ServerUserReadyState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserReadyState { - return new ServerUserReadyState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserReadyState { - return new ServerUserReadyState().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserReadyState | PlainMessage | undefined, b: ServerUserReadyState | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserReadyState, a, b); - } -} - -/** - * @generated from message NTALT.ClientStartRun - */ -export class ClientStartRun extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientStartRun"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientStartRun { - return new ClientStartRun().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientStartRun { - return new ClientStartRun().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientStartRun { - return new ClientStartRun().fromJsonString(jsonString, options); - } - - static equals(a: ClientStartRun | PlainMessage | undefined, b: ClientStartRun | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientStartRun, a, b); - } -} - -/** - * @generated from message NTALT.ServerHostStart - */ -export class ServerHostStart extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerHostStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostStart { - return new ServerHostStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostStart { - return new ServerHostStart().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostStart { - return new ServerHostStart().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostStart | PlainMessage | undefined, b: ServerHostStart | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostStart, a, b); - } -} - -/** - * @generated from message NTALT.ClientRequestRoomList - */ -export class ClientRequestRoomList extends Message { - /** - * @generated from field: uint32 page = 1; - */ - page = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ClientRequestRoomList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "page", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRequestRoomList { - return new ClientRequestRoomList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRequestRoomList { - return new ClientRequestRoomList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRequestRoomList { - return new ClientRequestRoomList().fromJsonString(jsonString, options); - } - - static equals(a: ClientRequestRoomList | PlainMessage | undefined, b: ClientRequestRoomList | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRequestRoomList, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomList - */ -export class ServerRoomList extends Message { - /** - * @generated from field: repeated NTALT.ServerRoomList.Room rooms = 1; - */ - rooms: ServerRoomList_Room[] = []; - - /** - * @generated from field: optional uint32 pages = 2; - */ - pages?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rooms", kind: "message", T: ServerRoomList_Room, repeated: true }, - { no: 2, name: "pages", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList { - return new ServerRoomList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList { - return new ServerRoomList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList { - return new ServerRoomList().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomList | PlainMessage | undefined, b: ServerRoomList | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomList, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomList.Room - */ -export class ServerRoomList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers = 0; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers = 0; - - /** - * @generated from field: bool protected = 6; - */ - protected = false; - - /** - * @generated from field: string owner = 7; - */ - owner = ""; - - /** - * @generated from field: bool locked = 8; - */ - locked = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomList.Room"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList_Room { - return new ServerRoomList_Room().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList_Room { - return new ServerRoomList_Room().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList_Room { - return new ServerRoomList_Room().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomList_Room | PlainMessage | undefined, b: ServerRoomList_Room | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomList_Room, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomAddToList - */ -export class ServerRoomAddToList extends Message { - /** - * @generated from field: NTALT.ServerRoomAddToList.Room room = 1; - */ - room?: ServerRoomAddToList_Room; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomAddToList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "room", kind: "message", T: ServerRoomAddToList_Room }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList { - return new ServerRoomAddToList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList { - return new ServerRoomAddToList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList { - return new ServerRoomAddToList().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomAddToList | PlainMessage | undefined, b: ServerRoomAddToList | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomAddToList, a, b); - } -} - -/** - * @generated from message NTALT.ServerRoomAddToList.Room - */ -export class ServerRoomAddToList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers = 0; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers = 0; - - /** - * @generated from field: bool protected = 6; - */ - protected = false; - - /** - * @generated from field: string owner = 7; - */ - owner = ""; - - /** - * @generated from field: bool locked = 8; - */ - locked = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NTALT.ServerRoomAddToList.Room"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList_Room { - return new ServerRoomAddToList_Room().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList_Room { - return new ServerRoomAddToList_Room().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList_Room { - return new ServerRoomAddToList_Room().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomAddToList_Room | PlainMessage | undefined, b: ServerRoomAddToList_Room | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomAddToList_Room, a, b); - } -} - diff --git a/nt-web-app/websocket/gen/messages_pb.ts b/nt-web-app/websocket/gen/messages_pb.ts deleted file mode 100644 index cd0dc087..00000000 --- a/nt-web-app/websocket/gen/messages_pb.ts +++ /dev/null @@ -1,5536 +0,0 @@ -// @generated by protoc-gen-es v1.4.1 with parameter "target=ts" -// @generated from file messages.proto (package NT, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message NT.Envelope - */ -export class Envelope extends Message { - /** - * @generated from oneof NT.Envelope.kind - */ - kind: { - /** - * @generated from field: NT.GameAction game_action = 1; - */ - value: GameAction; - case: "gameAction"; - } | { - /** - * @generated from field: NT.LobbyAction lobby_action = 50; - */ - value: LobbyAction; - case: "lobbyAction"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Envelope"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "game_action", kind: "message", T: GameAction, oneof: "kind" }, - { no: 50, name: "lobby_action", kind: "message", T: LobbyAction, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Envelope { - return new Envelope().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Envelope { - return new Envelope().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Envelope { - return new Envelope().fromJsonString(jsonString, options); - } - - static equals(a: Envelope | PlainMessage | undefined, b: Envelope | PlainMessage | undefined): boolean { - return proto3.util.equals(Envelope, a, b); - } -} - -/** - * @generated from message NT.GameAction - */ -export class GameAction extends Message { - /** - * The c prefix stands for "client", which refers to this application - * The s prefix stands for "server", which refers to the online Noita game server - * - * @generated from oneof NT.GameAction.action - */ - action: { - /** - * @generated from field: NT.ClientPlayerMove c_player_move = 1; - */ - value: ClientPlayerMove; - case: "cPlayerMove"; - } | { - /** - * @generated from field: NT.ServerPlayerMove s_player_move = 2; - */ - value: ServerPlayerMove; - case: "sPlayerMove"; - } | { - /** - * @generated from field: NT.ClientPlayerUpdate c_player_update = 3; - */ - value: ClientPlayerUpdate; - case: "cPlayerUpdate"; - } | { - /** - * @generated from field: NT.ServerPlayerUpdate s_player_update = 4; - */ - value: ServerPlayerUpdate; - case: "sPlayerUpdate"; - } | { - /** - * @generated from field: NT.ClientPlayerUpdateInventory c_player_update_inventory = 5; - */ - value: ClientPlayerUpdateInventory; - case: "cPlayerUpdateInventory"; - } | { - /** - * @generated from field: NT.ServerPlayerUpdateInventory s_player_update_inventory = 6; - */ - value: ServerPlayerUpdateInventory; - case: "sPlayerUpdateInventory"; - } | { - /** - * @generated from field: NT.ClientHostItemBank c_host_item_bank = 7; - */ - value: ClientHostItemBank; - case: "cHostItemBank"; - } | { - /** - * @generated from field: NT.ServerHostItemBank s_host_item_bank = 8; - */ - value: ServerHostItemBank; - case: "sHostItemBank"; - } | { - /** - * @generated from field: NT.ClientHostUserTake c_host_user_take = 9; - */ - value: ClientHostUserTake; - case: "cHostUserTake"; - } | { - /** - * @generated from field: NT.ServerHostUserTake s_host_user_take = 10; - */ - value: ServerHostUserTake; - case: "sHostUserTake"; - } | { - /** - * @generated from field: NT.ClientHostUserTakeGold c_host_user_take_gold = 11; - */ - value: ClientHostUserTakeGold; - case: "cHostUserTakeGold"; - } | { - /** - * @generated from field: NT.ServerHostUserTakeGold s_host_user_take_gold = 12; - */ - value: ServerHostUserTakeGold; - case: "sHostUserTakeGold"; - } | { - /** - * @generated from field: NT.ClientPlayerAddGold c_player_add_gold = 13; - */ - value: ClientPlayerAddGold; - case: "cPlayerAddGold"; - } | { - /** - * @generated from field: NT.ServerPlayerAddGold s_player_add_gold = 14; - */ - value: ServerPlayerAddGold; - case: "sPlayerAddGold"; - } | { - /** - * @generated from field: NT.ClientPlayerTakeGold c_player_take_gold = 15; - */ - value: ClientPlayerTakeGold; - case: "cPlayerTakeGold"; - } | { - /** - * @generated from field: NT.ServerPlayerTakeGold s_player_take_gold = 16; - */ - value: ServerPlayerTakeGold; - case: "sPlayerTakeGold"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem c_player_add_item = 17; - */ - value: ClientPlayerAddItem; - case: "cPlayerAddItem"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem s_player_add_item = 18; - */ - value: ServerPlayerAddItem; - case: "sPlayerAddItem"; - } | { - /** - * @generated from field: NT.ClientPlayerTakeItem c_player_take_item = 19; - */ - value: ClientPlayerTakeItem; - case: "cPlayerTakeItem"; - } | { - /** - * @generated from field: NT.ServerPlayerTakeItem s_player_take_item = 20; - */ - value: ServerPlayerTakeItem; - case: "sPlayerTakeItem"; - } | { - /** - * @generated from field: NT.ClientPlayerPickup c_player_pickup = 21; - */ - value: ClientPlayerPickup; - case: "cPlayerPickup"; - } | { - /** - * @generated from field: NT.ServerPlayerPickup s_player_pickup = 22; - */ - value: ServerPlayerPickup; - case: "sPlayerPickup"; - } | { - /** - * @generated from field: NT.ClientNemesisAbility c_nemesis_ability = 23; - */ - value: ClientNemesisAbility; - case: "cNemesisAbility"; - } | { - /** - * @generated from field: NT.ServerNemesisAbility s_nemesis_ability = 24; - */ - value: ServerNemesisAbility; - case: "sNemesisAbility"; - } | { - /** - * @generated from field: NT.ClientNemesisPickupItem c_nemesis_pickup_item = 25; - */ - value: ClientNemesisPickupItem; - case: "cNemesisPickupItem"; - } | { - /** - * @generated from field: NT.ServerNemesisPickupItem s_nemesis_pickup_item = 26; - */ - value: ServerNemesisPickupItem; - case: "sNemesisPickupItem"; - } | { - /** - * @generated from field: NT.ClientChat c_chat = 27; - */ - value: ClientChat; - case: "cChat"; - } | { - /** - * @generated from field: NT.ServerChat s_chat = 28; - */ - value: ServerChat; - case: "sChat"; - } | { - /** - * @generated from field: NT.ClientPlayerDeath c_player_death = 29; - */ - value: ClientPlayerDeath; - case: "cPlayerDeath"; - } | { - /** - * @generated from field: NT.ServerPlayerDeath s_player_death = 30; - */ - value: ServerPlayerDeath; - case: "sPlayerDeath"; - } | { - /** - * @generated from field: NT.ClientPlayerNewGamePlus c_player_new_game_plus = 31; - */ - value: ClientPlayerNewGamePlus; - case: "cPlayerNewGamePlus"; - } | { - /** - * @generated from field: NT.ServerPlayerNewGamePlus s_player_new_game_plus = 32; - */ - value: ServerPlayerNewGamePlus; - case: "sPlayerNewGamePlus"; - } | { - /** - * @generated from field: NT.ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - */ - value: ClientPlayerSecretHourglass; - case: "cPlayerSecretHourglass"; - } | { - /** - * @generated from field: NT.ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - */ - value: ServerPlayerSecretHourglass; - case: "sPlayerSecretHourglass"; - } | { - /** - * @generated from field: NT.ClientCustomModEvent c_custom_mod_event = 35; - */ - value: ClientCustomModEvent; - case: "cCustomModEvent"; - } | { - /** - * @generated from field: NT.ServerCustomModEvent s_custom_mod_event = 36; - */ - value: ServerCustomModEvent; - case: "sCustomModEvent"; - } | { - /** - * @generated from field: NT.ClientRespawnPenalty c_respawn_penalty = 37; - */ - value: ClientRespawnPenalty; - case: "cRespawnPenalty"; - } | { - /** - * @generated from field: NT.ServerRespawnPenalty s_respawn_penalty = 38; - */ - value: ServerRespawnPenalty; - case: "sRespawnPenalty"; - } | { - /** - * @generated from field: NT.ClientAngerySteve c_angery_steve = 39; - */ - value: ClientAngerySteve; - case: "cAngerySteve"; - } | { - /** - * @generated from field: NT.ServerAngerySteve s_angery_steve = 40; - */ - value: ServerAngerySteve; - case: "sAngerySteve"; - } | { - /** - * @generated from field: NT.ServerPlayerPos s_player_pos = 41; - */ - value: ServerPlayerPos; - case: "sPlayerPos"; - } | { - /** - * @generated from field: NT.ServerStatsUpdate s_stat_update = 42; - */ - value: ServerStatsUpdate; - case: "sStatUpdate"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.GameAction"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "c_player_move", kind: "message", T: ClientPlayerMove, oneof: "action" }, - { no: 2, name: "s_player_move", kind: "message", T: ServerPlayerMove, oneof: "action" }, - { no: 3, name: "c_player_update", kind: "message", T: ClientPlayerUpdate, oneof: "action" }, - { no: 4, name: "s_player_update", kind: "message", T: ServerPlayerUpdate, oneof: "action" }, - { no: 5, name: "c_player_update_inventory", kind: "message", T: ClientPlayerUpdateInventory, oneof: "action" }, - { no: 6, name: "s_player_update_inventory", kind: "message", T: ServerPlayerUpdateInventory, oneof: "action" }, - { no: 7, name: "c_host_item_bank", kind: "message", T: ClientHostItemBank, oneof: "action" }, - { no: 8, name: "s_host_item_bank", kind: "message", T: ServerHostItemBank, oneof: "action" }, - { no: 9, name: "c_host_user_take", kind: "message", T: ClientHostUserTake, oneof: "action" }, - { no: 10, name: "s_host_user_take", kind: "message", T: ServerHostUserTake, oneof: "action" }, - { no: 11, name: "c_host_user_take_gold", kind: "message", T: ClientHostUserTakeGold, oneof: "action" }, - { no: 12, name: "s_host_user_take_gold", kind: "message", T: ServerHostUserTakeGold, oneof: "action" }, - { no: 13, name: "c_player_add_gold", kind: "message", T: ClientPlayerAddGold, oneof: "action" }, - { no: 14, name: "s_player_add_gold", kind: "message", T: ServerPlayerAddGold, oneof: "action" }, - { no: 15, name: "c_player_take_gold", kind: "message", T: ClientPlayerTakeGold, oneof: "action" }, - { no: 16, name: "s_player_take_gold", kind: "message", T: ServerPlayerTakeGold, oneof: "action" }, - { no: 17, name: "c_player_add_item", kind: "message", T: ClientPlayerAddItem, oneof: "action" }, - { no: 18, name: "s_player_add_item", kind: "message", T: ServerPlayerAddItem, oneof: "action" }, - { no: 19, name: "c_player_take_item", kind: "message", T: ClientPlayerTakeItem, oneof: "action" }, - { no: 20, name: "s_player_take_item", kind: "message", T: ServerPlayerTakeItem, oneof: "action" }, - { no: 21, name: "c_player_pickup", kind: "message", T: ClientPlayerPickup, oneof: "action" }, - { no: 22, name: "s_player_pickup", kind: "message", T: ServerPlayerPickup, oneof: "action" }, - { no: 23, name: "c_nemesis_ability", kind: "message", T: ClientNemesisAbility, oneof: "action" }, - { no: 24, name: "s_nemesis_ability", kind: "message", T: ServerNemesisAbility, oneof: "action" }, - { no: 25, name: "c_nemesis_pickup_item", kind: "message", T: ClientNemesisPickupItem, oneof: "action" }, - { no: 26, name: "s_nemesis_pickup_item", kind: "message", T: ServerNemesisPickupItem, oneof: "action" }, - { no: 27, name: "c_chat", kind: "message", T: ClientChat, oneof: "action" }, - { no: 28, name: "s_chat", kind: "message", T: ServerChat, oneof: "action" }, - { no: 29, name: "c_player_death", kind: "message", T: ClientPlayerDeath, oneof: "action" }, - { no: 30, name: "s_player_death", kind: "message", T: ServerPlayerDeath, oneof: "action" }, - { no: 31, name: "c_player_new_game_plus", kind: "message", T: ClientPlayerNewGamePlus, oneof: "action" }, - { no: 32, name: "s_player_new_game_plus", kind: "message", T: ServerPlayerNewGamePlus, oneof: "action" }, - { no: 33, name: "c_player_secret_hourglass", kind: "message", T: ClientPlayerSecretHourglass, oneof: "action" }, - { no: 34, name: "s_player_secret_hourglass", kind: "message", T: ServerPlayerSecretHourglass, oneof: "action" }, - { no: 35, name: "c_custom_mod_event", kind: "message", T: ClientCustomModEvent, oneof: "action" }, - { no: 36, name: "s_custom_mod_event", kind: "message", T: ServerCustomModEvent, oneof: "action" }, - { no: 37, name: "c_respawn_penalty", kind: "message", T: ClientRespawnPenalty, oneof: "action" }, - { no: 38, name: "s_respawn_penalty", kind: "message", T: ServerRespawnPenalty, oneof: "action" }, - { no: 39, name: "c_angery_steve", kind: "message", T: ClientAngerySteve, oneof: "action" }, - { no: 40, name: "s_angery_steve", kind: "message", T: ServerAngerySteve, oneof: "action" }, - { no: 41, name: "s_player_pos", kind: "message", T: ServerPlayerPos, oneof: "action" }, - { no: 42, name: "s_stat_update", kind: "message", T: ServerStatsUpdate, oneof: "action" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GameAction { - return new GameAction().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GameAction { - return new GameAction().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GameAction { - return new GameAction().fromJsonString(jsonString, options); - } - - static equals(a: GameAction | PlainMessage | undefined, b: GameAction | PlainMessage | undefined): boolean { - return proto3.util.equals(GameAction, a, b); - } -} - -/** - * @generated from message NT.PlayerFrame - */ -export class PlayerFrame extends Message { - /** - * @generated from field: optional float x = 1; - */ - x?: number; - - /** - * @generated from field: optional float y = 2; - */ - y?: number; - - /** - * @generated from field: optional float arm_r = 3; - */ - armR?: number; - - /** - * @generated from field: optional float arm_scale_y = 4; - */ - armScaleY?: number; - - /** - * @generated from field: optional float scale_x = 5; - */ - scaleX?: number; - - /** - * @generated from field: optional int32 anim = 6; - */ - anim?: number; - - /** - * @generated from field: optional int32 held = 7; - */ - held?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.PlayerFrame"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "arm_r", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "arm_scale_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "scale_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 6, name: "anim", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 7, name: "held", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayerFrame { - return new PlayerFrame().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayerFrame { - return new PlayerFrame().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PlayerFrame { - return new PlayerFrame().fromJsonString(jsonString, options); - } - - static equals(a: PlayerFrame | PlainMessage | undefined, b: PlayerFrame | PlainMessage | undefined): boolean { - return proto3.util.equals(PlayerFrame, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerPos - */ -export class ServerPlayerPos extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: float x = 2; - */ - x = 0; - - /** - * @generated from field: float y = 3; - */ - y = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerPos"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPos { - return new ServerPlayerPos().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPos { - return new ServerPlayerPos().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPos { - return new ServerPlayerPos().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPos | PlainMessage | undefined, b: ServerPlayerPos | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPos, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerMove - */ -export class ClientPlayerMove extends Message { - /** - * @generated from field: repeated NT.PlayerFrame frames = 1; - */ - frames: PlayerFrame[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerMove"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "frames", kind: "message", T: PlayerFrame, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerMove { - return new ClientPlayerMove().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerMove { - return new ClientPlayerMove().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerMove { - return new ClientPlayerMove().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerMove | PlainMessage | undefined, b: ClientPlayerMove | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerMove, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerMove - */ -export class ServerPlayerMove extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: repeated NT.PlayerFrame frames = 2; - */ - frames: PlayerFrame[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerMove"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "frames", kind: "message", T: PlayerFrame, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerMove { - return new ServerPlayerMove().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerMove { - return new ServerPlayerMove().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerMove { - return new ServerPlayerMove().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerMove | PlainMessage | undefined, b: ServerPlayerMove | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerMove, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerUpdate - */ -export class ClientPlayerUpdate extends Message { - /** - * @generated from field: optional float cur_hp = 1; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 2; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 3; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 4; - */ - sampo?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 2, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdate { - return new ClientPlayerUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdate { - return new ClientPlayerUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdate { - return new ClientPlayerUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdate | PlainMessage | undefined, b: ClientPlayerUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdate, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerUpdate - */ -export class ServerPlayerUpdate extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: optional float cur_hp = 2; - */ - curHp?: number; - - /** - * @generated from field: optional float max_hp = 3; - */ - maxHp?: number; - - /** - * @generated from field: optional string location = 4; - */ - location?: string; - - /** - * @generated from field: optional bool sampo = 5; - */ - sampo?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cur_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 3, name: "max_hp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 4, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "sampo", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdate { - return new ServerPlayerUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdate { - return new ServerPlayerUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdate { - return new ServerPlayerUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdate | PlainMessage | undefined, b: ServerPlayerUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdate, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory - */ -export class ClientPlayerUpdateInventory extends Message { - /** - * @generated from field: repeated NT.ClientPlayerUpdateInventory.InventoryWand wands = 1; - */ - wands: ClientPlayerUpdateInventory_InventoryWand[] = []; - - /** - * @generated from field: repeated NT.ClientPlayerUpdateInventory.InventoryItem items = 2; - */ - items: ClientPlayerUpdateInventory_InventoryItem[] = []; - - /** - * @generated from field: repeated NT.ClientPlayerUpdateInventory.InventorySpell spells = 3; - */ - spells: ClientPlayerUpdateInventory_InventorySpell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wands", kind: "message", T: ClientPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 2, name: "items", kind: "message", T: ClientPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 3, name: "spells", kind: "message", T: ClientPlayerUpdateInventory_InventorySpell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory { - return new ClientPlayerUpdateInventory().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory { - return new ClientPlayerUpdateInventory().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory { - return new ClientPlayerUpdateInventory().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory | PlainMessage | undefined, b: ClientPlayerUpdateInventory | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventoryWand - */ -export class ClientPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryWand { - return new ClientPlayerUpdateInventory_InventoryWand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryWand { - return new ClientPlayerUpdateInventory_InventoryWand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryWand { - return new ClientPlayerUpdateInventory_InventoryWand().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory_InventoryWand, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventoryItem - */ -export class ClientPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 3; - */ - index = 0; - - /** - * @generated from field: NT.Item item = 4; - */ - item?: Item; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "item", kind: "message", T: Item }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventoryItem { - return new ClientPlayerUpdateInventory_InventoryItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventoryItem { - return new ClientPlayerUpdateInventory_InventoryItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventoryItem { - return new ClientPlayerUpdateInventory_InventoryItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory_InventoryItem, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerUpdateInventory.InventorySpell - */ -export class ClientPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerUpdateInventory_InventorySpell { - return new ClientPlayerUpdateInventory_InventorySpell().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerUpdateInventory_InventorySpell { - return new ClientPlayerUpdateInventory_InventorySpell().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerUpdateInventory_InventorySpell { - return new ClientPlayerUpdateInventory_InventorySpell().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ClientPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerUpdateInventory_InventorySpell, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory - */ -export class ServerPlayerUpdateInventory extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: repeated NT.ServerPlayerUpdateInventory.InventoryWand wands = 2; - */ - wands: ServerPlayerUpdateInventory_InventoryWand[] = []; - - /** - * @generated from field: repeated NT.ServerPlayerUpdateInventory.InventoryItem items = 3; - */ - items: ServerPlayerUpdateInventory_InventoryItem[] = []; - - /** - * @generated from field: repeated NT.ServerPlayerUpdateInventory.InventorySpell spells = 4; - */ - spells: ServerPlayerUpdateInventory_InventorySpell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wands", kind: "message", T: ServerPlayerUpdateInventory_InventoryWand, repeated: true }, - { no: 3, name: "items", kind: "message", T: ServerPlayerUpdateInventory_InventoryItem, repeated: true }, - { no: 4, name: "spells", kind: "message", T: ServerPlayerUpdateInventory_InventorySpell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory { - return new ServerPlayerUpdateInventory().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory { - return new ServerPlayerUpdateInventory().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory { - return new ServerPlayerUpdateInventory().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory | PlainMessage | undefined, b: ServerPlayerUpdateInventory | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventoryWand - */ -export class ServerPlayerUpdateInventory_InventoryWand extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NT.Wand wand = 2; - */ - wand?: Wand; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory.InventoryWand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "wand", kind: "message", T: Wand }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryWand { - return new ServerPlayerUpdateInventory_InventoryWand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryWand { - return new ServerPlayerUpdateInventory_InventoryWand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryWand { - return new ServerPlayerUpdateInventory_InventoryWand().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryWand | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory_InventoryWand, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventoryItem - */ -export class ServerPlayerUpdateInventory_InventoryItem extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NT.Item item = 2; - */ - item?: Item; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory.InventoryItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "item", kind: "message", T: Item }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventoryItem { - return new ServerPlayerUpdateInventory_InventoryItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventoryItem { - return new ServerPlayerUpdateInventory_InventoryItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventoryItem { - return new ServerPlayerUpdateInventory_InventoryItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventoryItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory_InventoryItem, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerUpdateInventory.InventorySpell - */ -export class ServerPlayerUpdateInventory_InventorySpell extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: NT.Spell spell = 2; - */ - spell?: Spell; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerUpdateInventory.InventorySpell"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "spell", kind: "message", T: Spell }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerUpdateInventory_InventorySpell { - return new ServerPlayerUpdateInventory_InventorySpell().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerUpdateInventory_InventorySpell { - return new ServerPlayerUpdateInventory_InventorySpell().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerUpdateInventory_InventorySpell { - return new ServerPlayerUpdateInventory_InventorySpell().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined, b: ServerPlayerUpdateInventory_InventorySpell | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerUpdateInventory_InventorySpell, a, b); - } -} - -/** - * @generated from message NT.ClientHostItemBank - */ -export class ClientHostItemBank extends Message { - /** - * @generated from field: repeated NT.Wand wands = 1; - */ - wands: Wand[] = []; - - /** - * @generated from field: repeated NT.Spell spells = 2; - */ - spells: Spell[] = []; - - /** - * @generated from field: repeated NT.Item items = 3; - */ - items: Item[] = []; - - /** - * @generated from field: uint32 gold = 4; - */ - gold = 0; - - /** - * @generated from field: repeated NT.EntityItem objects = 5; - */ - objects: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientHostItemBank"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostItemBank { - return new ClientHostItemBank().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostItemBank { - return new ClientHostItemBank().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientHostItemBank { - return new ClientHostItemBank().fromJsonString(jsonString, options); - } - - static equals(a: ClientHostItemBank | PlainMessage | undefined, b: ClientHostItemBank | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientHostItemBank, a, b); - } -} - -/** - * @generated from message NT.ServerHostItemBank - */ -export class ServerHostItemBank extends Message { - /** - * @generated from field: repeated NT.Wand wands = 1; - */ - wands: Wand[] = []; - - /** - * @generated from field: repeated NT.Spell spells = 2; - */ - spells: Spell[] = []; - - /** - * @generated from field: repeated NT.Item items = 3; - */ - items: Item[] = []; - - /** - * @generated from field: uint32 gold = 4; - */ - gold = 0; - - /** - * @generated from field: repeated NT.EntityItem objects = 5; - */ - objects: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerHostItemBank"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wands", kind: "message", T: Wand, repeated: true }, - { no: 2, name: "spells", kind: "message", T: Spell, repeated: true }, - { no: 3, name: "items", kind: "message", T: Item, repeated: true }, - { no: 4, name: "gold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "objects", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostItemBank { - return new ServerHostItemBank().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostItemBank { - return new ServerHostItemBank().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostItemBank { - return new ServerHostItemBank().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostItemBank | PlainMessage | undefined, b: ServerHostItemBank | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostItemBank, a, b); - } -} - -/** - * @generated from message NT.ClientHostUserTake - */ -export class ClientHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string id = 2; - */ - id = ""; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientHostUserTake"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTake { - return new ClientHostUserTake().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTake { - return new ClientHostUserTake().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTake { - return new ClientHostUserTake().fromJsonString(jsonString, options); - } - - static equals(a: ClientHostUserTake | PlainMessage | undefined, b: ClientHostUserTake | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientHostUserTake, a, b); - } -} - -/** - * @generated from message NT.ServerHostUserTake - */ -export class ServerHostUserTake extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string id = 2; - */ - id = ""; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerHostUserTake"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTake { - return new ServerHostUserTake().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTake { - return new ServerHostUserTake().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTake { - return new ServerHostUserTake().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostUserTake | PlainMessage | undefined, b: ServerHostUserTake | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostUserTake, a, b); - } -} - -/** - * @generated from message NT.ClientHostUserTakeGold - */ -export class ClientHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientHostUserTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientHostUserTakeGold { - return new ClientHostUserTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientHostUserTakeGold { - return new ClientHostUserTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientHostUserTakeGold { - return new ClientHostUserTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ClientHostUserTakeGold | PlainMessage | undefined, b: ClientHostUserTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientHostUserTakeGold, a, b); - } -} - -/** - * @generated from message NT.ServerHostUserTakeGold - */ -export class ServerHostUserTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - /** - * @generated from field: bool success = 3; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerHostUserTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostUserTakeGold { - return new ServerHostUserTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostUserTakeGold { - return new ServerHostUserTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostUserTakeGold { - return new ServerHostUserTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostUserTakeGold | PlainMessage | undefined, b: ServerHostUserTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostUserTakeGold, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerAddGold - */ -export class ClientPlayerAddGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerAddGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddGold { - return new ClientPlayerAddGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddGold { - return new ClientPlayerAddGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddGold { - return new ClientPlayerAddGold().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddGold | PlainMessage | undefined, b: ClientPlayerAddGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddGold, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerAddGold - */ -export class ServerPlayerAddGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerAddGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddGold { - return new ServerPlayerAddGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddGold { - return new ServerPlayerAddGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddGold { - return new ServerPlayerAddGold().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddGold | PlainMessage | undefined, b: ServerPlayerAddGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddGold, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerTakeGold - */ -export class ClientPlayerTakeGold extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeGold { - return new ClientPlayerTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeGold { - return new ClientPlayerTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeGold { - return new ClientPlayerTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerTakeGold | PlainMessage | undefined, b: ClientPlayerTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerTakeGold, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerTakeGold - */ -export class ServerPlayerTakeGold extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerTakeGold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeGold { - return new ServerPlayerTakeGold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeGold { - return new ServerPlayerTakeGold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeGold { - return new ServerPlayerTakeGold().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerTakeGold | PlainMessage | undefined, b: ServerPlayerTakeGold | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerTakeGold, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerAddItem - */ -export class ClientPlayerAddItem extends Message { - /** - * @generated from oneof NT.ClientPlayerAddItem.item - */ - item: { - /** - * @generated from field: NT.ClientPlayerAddItem.Spells spells = 1; - */ - value: ClientPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem.Wands wands = 2; - */ - value: ClientPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem.Items flasks = 3; - */ - value: ClientPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NT.ClientPlayerAddItem.Entities objects = 4; - */ - value: ClientPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerAddItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spells", kind: "message", T: ClientPlayerAddItem_Spells, oneof: "item" }, - { no: 2, name: "wands", kind: "message", T: ClientPlayerAddItem_Wands, oneof: "item" }, - { no: 3, name: "flasks", kind: "message", T: ClientPlayerAddItem_Items, oneof: "item" }, - { no: 4, name: "objects", kind: "message", T: ClientPlayerAddItem_Entities, oneof: "item" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem { - return new ClientPlayerAddItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem { - return new ClientPlayerAddItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem { - return new ClientPlayerAddItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem | PlainMessage | undefined, b: ClientPlayerAddItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerAddItem.Spells - */ -export class ClientPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NT.Spell list = 1; - */ - list: Spell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Spells"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Spells { - return new ClientPlayerAddItem_Spells().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Spells { - return new ClientPlayerAddItem_Spells().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Spells { - return new ClientPlayerAddItem_Spells().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Spells | PlainMessage | undefined, b: ClientPlayerAddItem_Spells | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Spells, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerAddItem.Wands - */ -export class ClientPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NT.Wand list = 1; - */ - list: Wand[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Wands"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Wand, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Wands { - return new ClientPlayerAddItem_Wands().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Wands { - return new ClientPlayerAddItem_Wands().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Wands { - return new ClientPlayerAddItem_Wands().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Wands | PlainMessage | undefined, b: ClientPlayerAddItem_Wands | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Wands, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerAddItem.Items - */ -export class ClientPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NT.Item list = 1; - */ - list: Item[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Items"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Item, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Items { - return new ClientPlayerAddItem_Items().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Items { - return new ClientPlayerAddItem_Items().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Items { - return new ClientPlayerAddItem_Items().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Items | PlainMessage | undefined, b: ClientPlayerAddItem_Items | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Items, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerAddItem.Entities - */ -export class ClientPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NT.EntityItem list = 1; - */ - list: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerAddItem.Entities"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerAddItem_Entities { - return new ClientPlayerAddItem_Entities().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerAddItem_Entities { - return new ClientPlayerAddItem_Entities().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerAddItem_Entities { - return new ClientPlayerAddItem_Entities().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerAddItem_Entities | PlainMessage | undefined, b: ClientPlayerAddItem_Entities | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerAddItem_Entities, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerAddItem - */ -export class ServerPlayerAddItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from oneof NT.ServerPlayerAddItem.item - */ - item: { - /** - * @generated from field: NT.ServerPlayerAddItem.Spells spells = 2; - */ - value: ServerPlayerAddItem_Spells; - case: "spells"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem.Wands wands = 3; - */ - value: ServerPlayerAddItem_Wands; - case: "wands"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem.Items flasks = 4; - */ - value: ServerPlayerAddItem_Items; - case: "flasks"; - } | { - /** - * @generated from field: NT.ServerPlayerAddItem.Entities objects = 5; - */ - value: ServerPlayerAddItem_Entities; - case: "objects"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerAddItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "spells", kind: "message", T: ServerPlayerAddItem_Spells, oneof: "item" }, - { no: 3, name: "wands", kind: "message", T: ServerPlayerAddItem_Wands, oneof: "item" }, - { no: 4, name: "flasks", kind: "message", T: ServerPlayerAddItem_Items, oneof: "item" }, - { no: 5, name: "objects", kind: "message", T: ServerPlayerAddItem_Entities, oneof: "item" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem { - return new ServerPlayerAddItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem { - return new ServerPlayerAddItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem { - return new ServerPlayerAddItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem | PlainMessage | undefined, b: ServerPlayerAddItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerAddItem.Spells - */ -export class ServerPlayerAddItem_Spells extends Message { - /** - * @generated from field: repeated NT.Spell list = 1; - */ - list: Spell[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Spells"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: Spell, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Spells { - return new ServerPlayerAddItem_Spells().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Spells { - return new ServerPlayerAddItem_Spells().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Spells { - return new ServerPlayerAddItem_Spells().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Spells | PlainMessage | undefined, b: ServerPlayerAddItem_Spells | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Spells, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerAddItem.Wands - */ -export class ServerPlayerAddItem_Wands extends Message { - /** - * @generated from field: repeated NT.Wand list = 2; - */ - list: Wand[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Wands"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "list", kind: "message", T: Wand, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Wands { - return new ServerPlayerAddItem_Wands().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Wands { - return new ServerPlayerAddItem_Wands().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Wands { - return new ServerPlayerAddItem_Wands().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Wands | PlainMessage | undefined, b: ServerPlayerAddItem_Wands | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Wands, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerAddItem.Items - */ -export class ServerPlayerAddItem_Items extends Message { - /** - * @generated from field: repeated NT.Item list = 3; - */ - list: Item[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Items"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "list", kind: "message", T: Item, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Items { - return new ServerPlayerAddItem_Items().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Items { - return new ServerPlayerAddItem_Items().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Items { - return new ServerPlayerAddItem_Items().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Items | PlainMessage | undefined, b: ServerPlayerAddItem_Items | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Items, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerAddItem.Entities - */ -export class ServerPlayerAddItem_Entities extends Message { - /** - * @generated from field: repeated NT.EntityItem list = 4; - */ - list: EntityItem[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerAddItem.Entities"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 4, name: "list", kind: "message", T: EntityItem, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerAddItem_Entities { - return new ServerPlayerAddItem_Entities().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerAddItem_Entities { - return new ServerPlayerAddItem_Entities().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerAddItem_Entities { - return new ServerPlayerAddItem_Entities().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerAddItem_Entities | PlainMessage | undefined, b: ServerPlayerAddItem_Entities | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerAddItem_Entities, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerTakeItem - */ -export class ClientPlayerTakeItem extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerTakeItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerTakeItem { - return new ClientPlayerTakeItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerTakeItem { - return new ClientPlayerTakeItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerTakeItem { - return new ClientPlayerTakeItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerTakeItem | PlainMessage | undefined, b: ClientPlayerTakeItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerTakeItem, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerTakeItem - */ -export class ServerPlayerTakeItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string id = 2; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerTakeItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerTakeItem { - return new ServerPlayerTakeItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerTakeItem { - return new ServerPlayerTakeItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerTakeItem { - return new ServerPlayerTakeItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerTakeItem | PlainMessage | undefined, b: ServerPlayerTakeItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerTakeItem, a, b); - } -} - -/** - * @generated from message NT.ClientChat - */ -export class ClientChat extends Message { - /** - * @generated from field: string message = 1; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientChat"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientChat { - return new ClientChat().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientChat { - return new ClientChat().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientChat { - return new ClientChat().fromJsonString(jsonString, options); - } - - static equals(a: ClientChat | PlainMessage | undefined, b: ClientChat | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientChat, a, b); - } -} - -/** - * @generated from message NT.ServerChat - */ -export class ServerChat extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string user_id = 2; - */ - userId = ""; - - /** - * @generated from field: string name = 3; - */ - name = ""; - - /** - * @generated from field: string message = 4; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerChat"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerChat { - return new ServerChat().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerChat { - return new ServerChat().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerChat { - return new ServerChat().fromJsonString(jsonString, options); - } - - static equals(a: ServerChat | PlainMessage | undefined, b: ServerChat | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerChat, a, b); - } -} - -/** - * @generated from message NT.ServerStatsUpdate - */ -export class ServerStatsUpdate extends Message { - /** - * @generated from field: string data = 1; - */ - data = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerStatsUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerStatsUpdate { - return new ServerStatsUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerStatsUpdate { - return new ServerStatsUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerStatsUpdate { - return new ServerStatsUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ServerStatsUpdate | PlainMessage | undefined, b: ServerStatsUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerStatsUpdate, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerPickup - */ -export class ClientPlayerPickup extends Message { - /** - * @generated from oneof NT.ClientPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NT.ClientPlayerPickup.HeartPickup heart = 1; - */ - value: ClientPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NT.ClientPlayerPickup.OrbPickup orb = 2; - */ - value: ClientPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "heart", kind: "message", T: ClientPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 2, name: "orb", kind: "message", T: ClientPlayerPickup_OrbPickup, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup { - return new ClientPlayerPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup { - return new ClientPlayerPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup { - return new ClientPlayerPickup().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerPickup | PlainMessage | undefined, b: ClientPlayerPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerPickup, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerPickup.HeartPickup - */ -export class ClientPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerPickup.HeartPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_HeartPickup { - return new ClientPlayerPickup_HeartPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_HeartPickup { - return new ClientPlayerPickup_HeartPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_HeartPickup { - return new ClientPlayerPickup_HeartPickup().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerPickup_HeartPickup | PlainMessage | undefined, b: ClientPlayerPickup_HeartPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerPickup_HeartPickup, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerPickup.OrbPickup - */ -export class ClientPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerPickup.OrbPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerPickup_OrbPickup { - return new ClientPlayerPickup_OrbPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerPickup_OrbPickup { - return new ClientPlayerPickup_OrbPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerPickup_OrbPickup { - return new ClientPlayerPickup_OrbPickup().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerPickup_OrbPickup | PlainMessage | undefined, b: ClientPlayerPickup_OrbPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerPickup_OrbPickup, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerPickup - */ -export class ServerPlayerPickup extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from oneof NT.ServerPlayerPickup.kind - */ - kind: { - /** - * @generated from field: NT.ServerPlayerPickup.HeartPickup heart = 2; - */ - value: ServerPlayerPickup_HeartPickup; - case: "heart"; - } | { - /** - * @generated from field: NT.ServerPlayerPickup.OrbPickup orb = 3; - */ - value: ServerPlayerPickup_OrbPickup; - case: "orb"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "heart", kind: "message", T: ServerPlayerPickup_HeartPickup, oneof: "kind" }, - { no: 3, name: "orb", kind: "message", T: ServerPlayerPickup_OrbPickup, oneof: "kind" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup { - return new ServerPlayerPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup { - return new ServerPlayerPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup { - return new ServerPlayerPickup().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPickup | PlainMessage | undefined, b: ServerPlayerPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPickup, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerPickup.HeartPickup - */ -export class ServerPlayerPickup_HeartPickup extends Message { - /** - * @generated from field: bool hp_perk = 1; - */ - hpPerk = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerPickup.HeartPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hp_perk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_HeartPickup { - return new ServerPlayerPickup_HeartPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_HeartPickup { - return new ServerPlayerPickup_HeartPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_HeartPickup { - return new ServerPlayerPickup_HeartPickup().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPickup_HeartPickup | PlainMessage | undefined, b: ServerPlayerPickup_HeartPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPickup_HeartPickup, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerPickup.OrbPickup - */ -export class ServerPlayerPickup_OrbPickup extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerPickup.OrbPickup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerPickup_OrbPickup { - return new ServerPlayerPickup_OrbPickup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerPickup_OrbPickup { - return new ServerPlayerPickup_OrbPickup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerPickup_OrbPickup { - return new ServerPlayerPickup_OrbPickup().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerPickup_OrbPickup | PlainMessage | undefined, b: ServerPlayerPickup_OrbPickup | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerPickup_OrbPickup, a, b); - } -} - -/** - * @generated from message NT.ClientNemesisPickupItem - */ -export class ClientNemesisPickupItem extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientNemesisPickupItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisPickupItem { - return new ClientNemesisPickupItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisPickupItem { - return new ClientNemesisPickupItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisPickupItem { - return new ClientNemesisPickupItem().fromJsonString(jsonString, options); - } - - static equals(a: ClientNemesisPickupItem | PlainMessage | undefined, b: ClientNemesisPickupItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientNemesisPickupItem, a, b); - } -} - -/** - * @generated from message NT.ServerNemesisPickupItem - */ -export class ServerNemesisPickupItem extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string game_id = 2; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerNemesisPickupItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisPickupItem { - return new ServerNemesisPickupItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisPickupItem { - return new ServerNemesisPickupItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisPickupItem { - return new ServerNemesisPickupItem().fromJsonString(jsonString, options); - } - - static equals(a: ServerNemesisPickupItem | PlainMessage | undefined, b: ServerNemesisPickupItem | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerNemesisPickupItem, a, b); - } -} - -/** - * @generated from message NT.ClientNemesisAbility - */ -export class ClientNemesisAbility extends Message { - /** - * @generated from field: string game_id = 1; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientNemesisAbility"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientNemesisAbility { - return new ClientNemesisAbility().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientNemesisAbility { - return new ClientNemesisAbility().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientNemesisAbility { - return new ClientNemesisAbility().fromJsonString(jsonString, options); - } - - static equals(a: ClientNemesisAbility | PlainMessage | undefined, b: ClientNemesisAbility | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientNemesisAbility, a, b); - } -} - -/** - * @generated from message NT.ServerNemesisAbility - */ -export class ServerNemesisAbility extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string game_id = 2; - */ - gameId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerNemesisAbility"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerNemesisAbility { - return new ServerNemesisAbility().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerNemesisAbility { - return new ServerNemesisAbility().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerNemesisAbility { - return new ServerNemesisAbility().fromJsonString(jsonString, options); - } - - static equals(a: ServerNemesisAbility | PlainMessage | undefined, b: ServerNemesisAbility | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerNemesisAbility, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerDeath - */ -export class ClientPlayerDeath extends Message { - /** - * @generated from field: bool is_win = 1; - */ - isWin = false; - - /** - * @generated from field: optional uint32 game_time = 2; - */ - gameTime?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerDeath"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerDeath { - return new ClientPlayerDeath().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerDeath { - return new ClientPlayerDeath().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerDeath { - return new ClientPlayerDeath().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerDeath | PlainMessage | undefined, b: ClientPlayerDeath | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerDeath, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerDeath - */ -export class ServerPlayerDeath extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: bool is_win = 2; - */ - isWin = false; - - /** - * @generated from field: optional uint32 game_time = 3; - */ - gameTime?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerDeath"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "is_win", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "game_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerDeath { - return new ServerPlayerDeath().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerDeath { - return new ServerPlayerDeath().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerDeath { - return new ServerPlayerDeath().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerDeath | PlainMessage | undefined, b: ServerPlayerDeath | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerDeath, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerNewGamePlus - */ -export class ClientPlayerNewGamePlus extends Message { - /** - * @generated from field: uint32 amount = 1; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerNewGamePlus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerNewGamePlus { - return new ClientPlayerNewGamePlus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerNewGamePlus { - return new ClientPlayerNewGamePlus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerNewGamePlus { - return new ClientPlayerNewGamePlus().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerNewGamePlus | PlainMessage | undefined, b: ClientPlayerNewGamePlus | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerNewGamePlus, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerNewGamePlus - */ -export class ServerPlayerNewGamePlus extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerNewGamePlus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerNewGamePlus { - return new ServerPlayerNewGamePlus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerNewGamePlus { - return new ServerPlayerNewGamePlus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerNewGamePlus { - return new ServerPlayerNewGamePlus().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerNewGamePlus | PlainMessage | undefined, b: ServerPlayerNewGamePlus | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerNewGamePlus, a, b); - } -} - -/** - * @generated from message NT.ClientPlayerSecretHourglass - */ -export class ClientPlayerSecretHourglass extends Message { - /** - * @generated from field: string material = 1; - */ - material = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientPlayerSecretHourglass"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPlayerSecretHourglass { - return new ClientPlayerSecretHourglass().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPlayerSecretHourglass { - return new ClientPlayerSecretHourglass().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPlayerSecretHourglass { - return new ClientPlayerSecretHourglass().fromJsonString(jsonString, options); - } - - static equals(a: ClientPlayerSecretHourglass | PlainMessage | undefined, b: ClientPlayerSecretHourglass | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPlayerSecretHourglass, a, b); - } -} - -/** - * @generated from message NT.ServerPlayerSecretHourglass - */ -export class ServerPlayerSecretHourglass extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string material = 2; - */ - material = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerPlayerSecretHourglass"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "material", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerPlayerSecretHourglass { - return new ServerPlayerSecretHourglass().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerPlayerSecretHourglass { - return new ServerPlayerSecretHourglass().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerPlayerSecretHourglass { - return new ServerPlayerSecretHourglass().fromJsonString(jsonString, options); - } - - static equals(a: ServerPlayerSecretHourglass | PlainMessage | undefined, b: ServerPlayerSecretHourglass | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerPlayerSecretHourglass, a, b); - } -} - -/** - * @generated from message NT.ClientCustomModEvent - */ -export class ClientCustomModEvent extends Message { - /** - * @generated from field: string payload = 1; - */ - payload = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientCustomModEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientCustomModEvent { - return new ClientCustomModEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientCustomModEvent { - return new ClientCustomModEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientCustomModEvent { - return new ClientCustomModEvent().fromJsonString(jsonString, options); - } - - static equals(a: ClientCustomModEvent | PlainMessage | undefined, b: ClientCustomModEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientCustomModEvent, a, b); - } -} - -/** - * @generated from message NT.ServerCustomModEvent - */ -export class ServerCustomModEvent extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string payload = 2; - */ - payload = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerCustomModEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerCustomModEvent { - return new ServerCustomModEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerCustomModEvent { - return new ServerCustomModEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerCustomModEvent { - return new ServerCustomModEvent().fromJsonString(jsonString, options); - } - - static equals(a: ServerCustomModEvent | PlainMessage | undefined, b: ServerCustomModEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerCustomModEvent, a, b); - } -} - -/** - * @generated from message NT.ClientRespawnPenalty - */ -export class ClientRespawnPenalty extends Message { - /** - * @generated from field: uint32 deaths = 1; - */ - deaths = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRespawnPenalty"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRespawnPenalty { - return new ClientRespawnPenalty().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRespawnPenalty { - return new ClientRespawnPenalty().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRespawnPenalty { - return new ClientRespawnPenalty().fromJsonString(jsonString, options); - } - - static equals(a: ClientRespawnPenalty | PlainMessage | undefined, b: ClientRespawnPenalty | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRespawnPenalty, a, b); - } -} - -/** - * @generated from message NT.ServerRespawnPenalty - */ -export class ServerRespawnPenalty extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: uint32 deaths = 2; - */ - deaths = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRespawnPenalty"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deaths", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRespawnPenalty { - return new ServerRespawnPenalty().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRespawnPenalty { - return new ServerRespawnPenalty().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRespawnPenalty { - return new ServerRespawnPenalty().fromJsonString(jsonString, options); - } - - static equals(a: ServerRespawnPenalty | PlainMessage | undefined, b: ServerRespawnPenalty | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRespawnPenalty, a, b); - } -} - -/** - * @generated from message NT.ClientAngerySteve - */ -export class ClientAngerySteve extends Message { - /** - * @generated from field: bool idk = 1; - */ - idk = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientAngerySteve"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientAngerySteve { - return new ClientAngerySteve().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientAngerySteve { - return new ClientAngerySteve().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientAngerySteve { - return new ClientAngerySteve().fromJsonString(jsonString, options); - } - - static equals(a: ClientAngerySteve | PlainMessage | undefined, b: ClientAngerySteve | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientAngerySteve, a, b); - } -} - -/** - * @generated from message NT.ServerAngerySteve - */ -export class ServerAngerySteve extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerAngerySteve"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerAngerySteve { - return new ServerAngerySteve().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerAngerySteve { - return new ServerAngerySteve().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerAngerySteve { - return new ServerAngerySteve().fromJsonString(jsonString, options); - } - - static equals(a: ServerAngerySteve | PlainMessage | undefined, b: ServerAngerySteve | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerAngerySteve, a, b); - } -} - -/** - * @generated from message NT.Wand - */ -export class Wand extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: NT.Wand.WandStats stats = 2; - */ - stats?: Wand_WandStats; - - /** - * @generated from field: repeated NT.Spell always_cast = 3; - */ - alwaysCast: Spell[] = []; - - /** - * @generated from field: repeated NT.Spell deck = 4; - */ - deck: Spell[] = []; - - /** - * @generated from field: optional string sent_by = 5; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 6; - */ - contributedBy?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Wand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "stats", kind: "message", T: Wand_WandStats }, - { no: 3, name: "always_cast", kind: "message", T: Spell, repeated: true }, - { no: 4, name: "deck", kind: "message", T: Spell, repeated: true }, - { no: 5, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand { - return new Wand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand { - return new Wand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Wand { - return new Wand().fromJsonString(jsonString, options); - } - - static equals(a: Wand | PlainMessage | undefined, b: Wand | PlainMessage | undefined): boolean { - return proto3.util.equals(Wand, a, b); - } -} - -/** - * @generated from message NT.Wand.WandStats - */ -export class Wand_WandStats extends Message { - /** - * @generated from field: string sprite = 1; - */ - sprite = ""; - - /** - * @generated from field: bool named = 2; - */ - named = false; - - /** - * @generated from field: string ui_name = 3; - */ - uiName = ""; - - /** - * @generated from field: float mana_max = 4; - */ - manaMax = 0; - - /** - * @generated from field: float mana_charge_speed = 5; - */ - manaChargeSpeed = 0; - - /** - * @generated from field: int32 reload_time = 6; - */ - reloadTime = 0; - - /** - * @generated from field: uint32 actions_per_round = 7; - */ - actionsPerRound = 0; - - /** - * @generated from field: uint32 deck_capacity = 8; - */ - deckCapacity = 0; - - /** - * @generated from field: bool shuffle_deck_when_empty = 9; - */ - shuffleDeckWhenEmpty = false; - - /** - * @generated from field: float spread_degrees = 10; - */ - spreadDegrees = 0; - - /** - * @generated from field: float speed_multiplier = 11; - */ - speedMultiplier = 0; - - /** - * @generated from field: int32 fire_rate_wait = 12; - */ - fireRateWait = 0; - - /** - * @generated from field: float tip_x = 13; - */ - tipX = 0; - - /** - * @generated from field: float tip_y = 14; - */ - tipY = 0; - - /** - * @generated from field: float grip_x = 15; - */ - gripX = 0; - - /** - * @generated from field: float grip_y = 16; - */ - gripY = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Wand.WandStats"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "named", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "ui_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "mana_max", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 5, name: "mana_charge_speed", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 6, name: "reload_time", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "actions_per_round", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "deck_capacity", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "shuffle_deck_when_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "spread_degrees", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 11, name: "speed_multiplier", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 12, name: "fire_rate_wait", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 13, name: "tip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 14, name: "tip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 15, name: "grip_x", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 16, name: "grip_y", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Wand_WandStats { - return new Wand_WandStats().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Wand_WandStats { - return new Wand_WandStats().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Wand_WandStats { - return new Wand_WandStats().fromJsonString(jsonString, options); - } - - static equals(a: Wand_WandStats | PlainMessage | undefined, b: Wand_WandStats | PlainMessage | undefined): boolean { - return proto3.util.equals(Wand_WandStats, a, b); - } -} - -/** - * @generated from message NT.Spell - */ -export class Spell extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string game_id = 2; - */ - gameId = ""; - - /** - * @generated from field: optional string sent_by = 3; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 4; - */ - contributedBy?: string; - - /** - * @generated from field: int32 uses_remaining = 5; - */ - usesRemaining = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Spell"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "game_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "uses_remaining", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Spell { - return new Spell().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Spell { - return new Spell().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Spell { - return new Spell().fromJsonString(jsonString, options); - } - - static equals(a: Spell | PlainMessage | undefined, b: Spell | PlainMessage | undefined): boolean { - return proto3.util.equals(Spell, a, b); - } -} - -/** - * @generated from message NT.Item - */ -export class Item extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: NT.Item.Color color = 2; - */ - color?: Item_Color; - - /** - * @generated from field: repeated NT.Item.Material content = 3; - */ - content: Item_Material[] = []; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - /** - * @generated from field: optional string contributed_by = 5; - */ - contributedBy?: string; - - /** - * @generated from field: bool is_chest = 6 [deprecated = true]; - * @deprecated - */ - isChest = false; - - /** - * @generated from field: string item_type = 7; - */ - itemType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Item"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "color", kind: "message", T: Item_Color }, - { no: 3, name: "content", kind: "message", T: Item_Material, repeated: true }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "contributed_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "is_chest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "item_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item { - return new Item().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item { - return new Item().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item { - return new Item().fromJsonString(jsonString, options); - } - - static equals(a: Item | PlainMessage | undefined, b: Item | PlainMessage | undefined): boolean { - return proto3.util.equals(Item, a, b); - } -} - -/** - * @generated from message NT.Item.Color - */ -export class Item_Color extends Message { - /** - * @generated from field: float r = 1; - */ - r = 0; - - /** - * @generated from field: float g = 2; - */ - g = 0; - - /** - * @generated from field: float b = 3; - */ - b = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Item.Color"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "r", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 2, name: "g", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "b", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Color { - return new Item_Color().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Color { - return new Item_Color().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item_Color { - return new Item_Color().fromJsonString(jsonString, options); - } - - static equals(a: Item_Color | PlainMessage | undefined, b: Item_Color | PlainMessage | undefined): boolean { - return proto3.util.equals(Item_Color, a, b); - } -} - -/** - * @generated from message NT.Item.Material - */ -export class Item_Material extends Message { - /** - * @generated from field: uint32 id = 1; - */ - id = 0; - - /** - * @generated from field: uint32 amount = 2; - */ - amount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.Item.Material"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "amount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Item_Material { - return new Item_Material().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Item_Material { - return new Item_Material().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Item_Material { - return new Item_Material().fromJsonString(jsonString, options); - } - - static equals(a: Item_Material | PlainMessage | undefined, b: Item_Material | PlainMessage | undefined): boolean { - return proto3.util.equals(Item_Material, a, b); - } -} - -/** - * @generated from message NT.EntityItem - */ -export class EntityItem extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string path = 2; - */ - path = ""; - - /** - * @generated from field: string sprite = 3; - */ - sprite = ""; - - /** - * @generated from field: optional string sent_by = 4; - */ - sentBy?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.EntityItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sprite", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sent_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EntityItem { - return new EntityItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EntityItem { - return new EntityItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EntityItem { - return new EntityItem().fromJsonString(jsonString, options); - } - - static equals(a: EntityItem | PlainMessage | undefined, b: EntityItem | PlainMessage | undefined): boolean { - return proto3.util.equals(EntityItem, a, b); - } -} - -/** - * @generated from message NT.LobbyAction - */ -export class LobbyAction extends Message { - /** - * @generated from oneof NT.LobbyAction.action - */ - action: { - /** - * @generated from field: NT.ClientRoomCreate c_room_create = 1; - */ - value: ClientRoomCreate; - case: "cRoomCreate"; - } | { - /** - * @generated from field: NT.ServerRoomCreated s_room_created = 2; - */ - value: ServerRoomCreated; - case: "sRoomCreated"; - } | { - /** - * @generated from field: NT.ServerRoomCreateFailed s_room_create_failed = 3; - */ - value: ServerRoomCreateFailed; - case: "sRoomCreateFailed"; - } | { - /** - * @generated from field: NT.ClientRoomUpdate c_room_update = 4; - */ - value: ClientRoomUpdate; - case: "cRoomUpdate"; - } | { - /** - * @generated from field: NT.ServerRoomUpdated s_room_updated = 5; - */ - value: ServerRoomUpdated; - case: "sRoomUpdated"; - } | { - /** - * @generated from field: NT.ServerRoomUpdateFailed s_room_update_failed = 6; - */ - value: ServerRoomUpdateFailed; - case: "sRoomUpdateFailed"; - } | { - /** - * @generated from field: NT.ClientRoomFlagsUpdate c_room_flags_update = 7; - */ - value: ClientRoomFlagsUpdate; - case: "cRoomFlagsUpdate"; - } | { - /** - * @generated from field: NT.ServerRoomFlagsUpdated s_room_flags_updated = 8; - */ - value: ServerRoomFlagsUpdated; - case: "sRoomFlagsUpdated"; - } | { - /** - * @generated from field: NT.ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - */ - value: ServerRoomFlagsUpdateFailed; - case: "sRoomFlagsUpdateFailed"; - } | { - /** - * @generated from field: NT.ClientRoomDelete c_room_delete = 10; - */ - value: ClientRoomDelete; - case: "cRoomDelete"; - } | { - /** - * @generated from field: NT.ServerRoomDeleted s_room_deleted = 11; - */ - value: ServerRoomDeleted; - case: "sRoomDeleted"; - } | { - /** - * @generated from field: NT.ClientJoinRoom c_join_room = 12; - */ - value: ClientJoinRoom; - case: "cJoinRoom"; - } | { - /** - * @generated from field: NT.ServerJoinRoomSuccess s_join_room_success = 13; - */ - value: ServerJoinRoomSuccess; - case: "sJoinRoomSuccess"; - } | { - /** - * @generated from field: NT.ServerJoinRoomFailed s_join_room_failed = 14; - */ - value: ServerJoinRoomFailed; - case: "sJoinRoomFailed"; - } | { - /** - * @generated from field: NT.ServerUserJoinedRoom s_user_joined_room = 15; - */ - value: ServerUserJoinedRoom; - case: "sUserJoinedRoom"; - } | { - /** - * @generated from field: NT.ClientLeaveRoom c_leave_room = 16; - */ - value: ClientLeaveRoom; - case: "cLeaveRoom"; - } | { - /** - * @generated from field: NT.ServerUserLeftRoom s_user_left_room = 17; - */ - value: ServerUserLeftRoom; - case: "sUserLeftRoom"; - } | { - /** - * @generated from field: NT.ClientKickUser c_kick_user = 18; - */ - value: ClientKickUser; - case: "cKickUser"; - } | { - /** - * @generated from field: NT.ServerUserKicked s_user_kicked = 19; - */ - value: ServerUserKicked; - case: "sUserKicked"; - } | { - /** - * @generated from field: NT.ClientBanUser c_ban_user = 20; - */ - value: ClientBanUser; - case: "cBanUser"; - } | { - /** - * @generated from field: NT.ServerUserBanned s_user_banned = 21; - */ - value: ServerUserBanned; - case: "sUserBanned"; - } | { - /** - * @generated from field: NT.ClientReadyState c_ready_state = 22; - */ - value: ClientReadyState; - case: "cReadyState"; - } | { - /** - * @generated from field: NT.ServerUserReadyState s_user_ready_state = 23; - */ - value: ServerUserReadyState; - case: "sUserReadyState"; - } | { - /** - * @generated from field: NT.ClientStartRun c_start_run = 24; - */ - value: ClientStartRun; - case: "cStartRun"; - } | { - /** - * @generated from field: NT.ServerHostStart s_host_start = 25; - */ - value: ServerHostStart; - case: "sHostStart"; - } | { - /** - * @generated from field: NT.ClientRequestRoomList c_request_room_list = 27; - */ - value: ClientRequestRoomList; - case: "cRequestRoomList"; - } | { - /** - * @generated from field: NT.ServerRoomList s_room_list = 28; - */ - value: ServerRoomList; - case: "sRoomList"; - } | { - /** - * @generated from field: NT.ServerDisconnected s_disconnected = 31; - */ - value: ServerDisconnected; - case: "sDisconnected"; - } | { - /** - * @generated from field: NT.ServerRoomAddToList s_room_add_to_list = 32; - */ - value: ServerRoomAddToList; - case: "sRoomAddToList"; - } | { - /** - * @generated from field: NT.ClientRunOver c_run_over = 33; - */ - value: ClientRunOver; - case: "cRunOver"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.LobbyAction"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "c_room_create", kind: "message", T: ClientRoomCreate, oneof: "action" }, - { no: 2, name: "s_room_created", kind: "message", T: ServerRoomCreated, oneof: "action" }, - { no: 3, name: "s_room_create_failed", kind: "message", T: ServerRoomCreateFailed, oneof: "action" }, - { no: 4, name: "c_room_update", kind: "message", T: ClientRoomUpdate, oneof: "action" }, - { no: 5, name: "s_room_updated", kind: "message", T: ServerRoomUpdated, oneof: "action" }, - { no: 6, name: "s_room_update_failed", kind: "message", T: ServerRoomUpdateFailed, oneof: "action" }, - { no: 7, name: "c_room_flags_update", kind: "message", T: ClientRoomFlagsUpdate, oneof: "action" }, - { no: 8, name: "s_room_flags_updated", kind: "message", T: ServerRoomFlagsUpdated, oneof: "action" }, - { no: 9, name: "s_room_flags_update_failed", kind: "message", T: ServerRoomFlagsUpdateFailed, oneof: "action" }, - { no: 10, name: "c_room_delete", kind: "message", T: ClientRoomDelete, oneof: "action" }, - { no: 11, name: "s_room_deleted", kind: "message", T: ServerRoomDeleted, oneof: "action" }, - { no: 12, name: "c_join_room", kind: "message", T: ClientJoinRoom, oneof: "action" }, - { no: 13, name: "s_join_room_success", kind: "message", T: ServerJoinRoomSuccess, oneof: "action" }, - { no: 14, name: "s_join_room_failed", kind: "message", T: ServerJoinRoomFailed, oneof: "action" }, - { no: 15, name: "s_user_joined_room", kind: "message", T: ServerUserJoinedRoom, oneof: "action" }, - { no: 16, name: "c_leave_room", kind: "message", T: ClientLeaveRoom, oneof: "action" }, - { no: 17, name: "s_user_left_room", kind: "message", T: ServerUserLeftRoom, oneof: "action" }, - { no: 18, name: "c_kick_user", kind: "message", T: ClientKickUser, oneof: "action" }, - { no: 19, name: "s_user_kicked", kind: "message", T: ServerUserKicked, oneof: "action" }, - { no: 20, name: "c_ban_user", kind: "message", T: ClientBanUser, oneof: "action" }, - { no: 21, name: "s_user_banned", kind: "message", T: ServerUserBanned, oneof: "action" }, - { no: 22, name: "c_ready_state", kind: "message", T: ClientReadyState, oneof: "action" }, - { no: 23, name: "s_user_ready_state", kind: "message", T: ServerUserReadyState, oneof: "action" }, - { no: 24, name: "c_start_run", kind: "message", T: ClientStartRun, oneof: "action" }, - { no: 25, name: "s_host_start", kind: "message", T: ServerHostStart, oneof: "action" }, - { no: 27, name: "c_request_room_list", kind: "message", T: ClientRequestRoomList, oneof: "action" }, - { no: 28, name: "s_room_list", kind: "message", T: ServerRoomList, oneof: "action" }, - { no: 31, name: "s_disconnected", kind: "message", T: ServerDisconnected, oneof: "action" }, - { no: 32, name: "s_room_add_to_list", kind: "message", T: ServerRoomAddToList, oneof: "action" }, - { no: 33, name: "c_run_over", kind: "message", T: ClientRunOver, oneof: "action" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LobbyAction { - return new LobbyAction().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LobbyAction { - return new LobbyAction().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LobbyAction { - return new LobbyAction().fromJsonString(jsonString, options); - } - - static equals(a: LobbyAction | PlainMessage | undefined, b: LobbyAction | PlainMessage | undefined): boolean { - return proto3.util.equals(LobbyAction, a, b); - } -} - -/** - * @generated from message NT.ClientRunOver - */ -export class ClientRunOver extends Message { - /** - * @generated from field: optional bool idk = 1; - */ - idk?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRunOver"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "idk", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRunOver { - return new ClientRunOver().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRunOver { - return new ClientRunOver().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRunOver { - return new ClientRunOver().fromJsonString(jsonString, options); - } - - static equals(a: ClientRunOver | PlainMessage | undefined, b: ClientRunOver | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRunOver, a, b); - } -} - -/** - * @generated from message NT.ServerDisconnected - */ -export class ServerDisconnected extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerDisconnected"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerDisconnected { - return new ServerDisconnected().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerDisconnected { - return new ServerDisconnected().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerDisconnected { - return new ServerDisconnected().fromJsonString(jsonString, options); - } - - static equals(a: ServerDisconnected | PlainMessage | undefined, b: ServerDisconnected | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerDisconnected, a, b); - } -} - -/** - * @generated from message NT.ClientRoomDelete - */ -export class ClientRoomDelete extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRoomDelete"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomDelete { - return new ClientRoomDelete().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomDelete { - return new ClientRoomDelete().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomDelete { - return new ClientRoomDelete().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomDelete | PlainMessage | undefined, b: ClientRoomDelete | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomDelete, a, b); - } -} - -/** - * @generated from message NT.ServerRoomDeleted - */ -export class ServerRoomDeleted extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomDeleted"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomDeleted { - return new ServerRoomDeleted().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomDeleted { - return new ServerRoomDeleted().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomDeleted { - return new ServerRoomDeleted().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomDeleted | PlainMessage | undefined, b: ServerRoomDeleted | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomDeleted, a, b); - } -} - -/** - * @generated from message NT.ClientRoomCreate - */ -export class ClientRoomCreate extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 2; - */ - gamemode = 0; - - /** - * @generated from field: uint32 max_users = 3; - */ - maxUsers = 0; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRoomCreate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomCreate { - return new ClientRoomCreate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomCreate { - return new ClientRoomCreate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomCreate { - return new ClientRoomCreate().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomCreate | PlainMessage | undefined, b: ClientRoomCreate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomCreate, a, b); - } -} - -/** - * @generated from message NT.ServerRoomCreated - */ -export class ServerRoomCreated extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers = 0; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked = false; - - /** - * @generated from field: repeated NT.ServerRoomCreated.User users = 7; - */ - users: ServerRoomCreated_User[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomCreated"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerRoomCreated_User, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated { - return new ServerRoomCreated().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated { - return new ServerRoomCreated().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated { - return new ServerRoomCreated().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomCreated | PlainMessage | undefined, b: ServerRoomCreated | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomCreated, a, b); - } -} - -/** - * @generated from message NT.ServerRoomCreated.User - */ -export class ServerRoomCreated_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: bool ready = 3; - */ - ready = false; - - /** - * @generated from field: bool owner = 4; - */ - owner = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomCreated.User"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreated_User { - return new ServerRoomCreated_User().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreated_User { - return new ServerRoomCreated_User().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreated_User { - return new ServerRoomCreated_User().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomCreated_User | PlainMessage | undefined, b: ServerRoomCreated_User | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomCreated_User, a, b); - } -} - -/** - * @generated from message NT.ServerRoomCreateFailed - */ -export class ServerRoomCreateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomCreateFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomCreateFailed { - return new ServerRoomCreateFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomCreateFailed { - return new ServerRoomCreateFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomCreateFailed { - return new ServerRoomCreateFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomCreateFailed | PlainMessage | undefined, b: ServerRoomCreateFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomCreateFailed, a, b); - } -} - -/** - * @generated from message NT.ClientRoomUpdate - */ -export class ClientRoomUpdate extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRoomUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomUpdate { - return new ClientRoomUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomUpdate { - return new ClientRoomUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomUpdate { - return new ClientRoomUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomUpdate | PlainMessage | undefined, b: ClientRoomUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomUpdate, a, b); - } -} - -/** - * @generated from message NT.ServerRoomUpdated - */ -export class ServerRoomUpdated extends Message { - /** - * @generated from field: optional string name = 1; - */ - name?: string; - - /** - * @generated from field: optional uint32 gamemode = 2; - */ - gamemode?: number; - - /** - * @generated from field: optional uint32 max_users = 3; - */ - maxUsers?: number; - - /** - * @generated from field: optional string password = 4; - */ - password?: string; - - /** - * @generated from field: optional bool locked = 5; - */ - locked?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomUpdated"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 2, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 3, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdated { - return new ServerRoomUpdated().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdated { - return new ServerRoomUpdated().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdated { - return new ServerRoomUpdated().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomUpdated | PlainMessage | undefined, b: ServerRoomUpdated | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomUpdated, a, b); - } -} - -/** - * @generated from message NT.ServerRoomUpdateFailed - */ -export class ServerRoomUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomUpdateFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomUpdateFailed { - return new ServerRoomUpdateFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomUpdateFailed { - return new ServerRoomUpdateFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomUpdateFailed { - return new ServerRoomUpdateFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomUpdateFailed | PlainMessage | undefined, b: ServerRoomUpdateFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomUpdateFailed, a, b); - } -} - -/** - * @generated from message NT.ClientRoomFlagsUpdate - */ -export class ClientRoomFlagsUpdate extends Message { - /** - * @generated from field: repeated NT.ClientRoomFlagsUpdate.GameFlag flags = 1; - */ - flags: ClientRoomFlagsUpdate_GameFlag[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRoomFlagsUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flags", kind: "message", T: ClientRoomFlagsUpdate_GameFlag, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate { - return new ClientRoomFlagsUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate { - return new ClientRoomFlagsUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate { - return new ClientRoomFlagsUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomFlagsUpdate | PlainMessage | undefined, b: ClientRoomFlagsUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomFlagsUpdate, a, b); - } -} - -/** - * @generated from message NT.ClientRoomFlagsUpdate.GameFlag - */ -export class ClientRoomFlagsUpdate_GameFlag extends Message { - /** - * TODO: This seems like a hack, please improve it - * - * @generated from field: string flag = 1; - */ - flag = ""; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRoomFlagsUpdate.GameFlag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRoomFlagsUpdate_GameFlag { - return new ClientRoomFlagsUpdate_GameFlag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRoomFlagsUpdate_GameFlag { - return new ClientRoomFlagsUpdate_GameFlag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRoomFlagsUpdate_GameFlag { - return new ClientRoomFlagsUpdate_GameFlag().fromJsonString(jsonString, options); - } - - static equals(a: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined, b: ClientRoomFlagsUpdate_GameFlag | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRoomFlagsUpdate_GameFlag, a, b); - } -} - -/** - * @generated from message NT.ServerRoomFlagsUpdated - */ -export class ServerRoomFlagsUpdated extends Message { - /** - * @generated from field: repeated NT.ServerRoomFlagsUpdated.GameFlag flags = 1; - */ - flags: ServerRoomFlagsUpdated_GameFlag[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomFlagsUpdated"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flags", kind: "message", T: ServerRoomFlagsUpdated_GameFlag, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated { - return new ServerRoomFlagsUpdated().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated { - return new ServerRoomFlagsUpdated().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated { - return new ServerRoomFlagsUpdated().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomFlagsUpdated | PlainMessage | undefined, b: ServerRoomFlagsUpdated | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomFlagsUpdated, a, b); - } -} - -/** - * @generated from message NT.ServerRoomFlagsUpdated.GameFlag - */ -export class ServerRoomFlagsUpdated_GameFlag extends Message { - /** - * @generated from field: string flag = 1; - */ - flag = ""; - - /** - * @generated from field: optional int32 int_val = 2; - */ - intVal?: number; - - /** - * @generated from field: optional string str_val = 3; - */ - strVal?: string; - - /** - * @generated from field: optional float float_val = 4; - */ - floatVal?: number; - - /** - * @generated from field: optional bool bool_val = 5; - */ - boolVal?: boolean; - - /** - * @generated from field: optional uint32 u_int_val = 6; - */ - uIntVal?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomFlagsUpdated.GameFlag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "int_val", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, - { no: 3, name: "str_val", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "float_val", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, - { no: 5, name: "bool_val", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "u_int_val", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdated_GameFlag { - return new ServerRoomFlagsUpdated_GameFlag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdated_GameFlag { - return new ServerRoomFlagsUpdated_GameFlag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdated_GameFlag { - return new ServerRoomFlagsUpdated_GameFlag().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined, b: ServerRoomFlagsUpdated_GameFlag | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomFlagsUpdated_GameFlag, a, b); - } -} - -/** - * @generated from message NT.ServerRoomFlagsUpdateFailed - */ -export class ServerRoomFlagsUpdateFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomFlagsUpdateFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomFlagsUpdateFailed { - return new ServerRoomFlagsUpdateFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomFlagsUpdateFailed { - return new ServerRoomFlagsUpdateFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomFlagsUpdateFailed { - return new ServerRoomFlagsUpdateFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomFlagsUpdateFailed | PlainMessage | undefined, b: ServerRoomFlagsUpdateFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomFlagsUpdateFailed, a, b); - } -} - -/** - * @generated from message NT.ClientJoinRoom - */ -export class ClientJoinRoom extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: optional string password = 2; - */ - password?: string; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientJoinRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientJoinRoom { - return new ClientJoinRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientJoinRoom { - return new ClientJoinRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientJoinRoom { - return new ClientJoinRoom().fromJsonString(jsonString, options); - } - - static equals(a: ClientJoinRoom | PlainMessage | undefined, b: ClientJoinRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientJoinRoom, a, b); - } -} - -/** - * @generated from message NT.ServerJoinRoomSuccess - */ -export class ServerJoinRoomSuccess extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 max_users = 4; - */ - maxUsers = 0; - - /** - * @generated from field: optional string password = 5; - */ - password?: string; - - /** - * @generated from field: bool locked = 6; - */ - locked = false; - - /** - * @generated from field: repeated NT.ServerJoinRoomSuccess.User users = 7; - */ - users: ServerJoinRoomSuccess_User[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerJoinRoomSuccess"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "users", kind: "message", T: ServerJoinRoomSuccess_User, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess { - return new ServerJoinRoomSuccess().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess { - return new ServerJoinRoomSuccess().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess { - return new ServerJoinRoomSuccess().fromJsonString(jsonString, options); - } - - static equals(a: ServerJoinRoomSuccess | PlainMessage | undefined, b: ServerJoinRoomSuccess | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerJoinRoomSuccess, a, b); - } -} - -/** - * @generated from message NT.ServerJoinRoomSuccess.User - */ -export class ServerJoinRoomSuccess_User extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: bool ready = 3; - */ - ready = false; - - /** - * @generated from field: bool owner = 4; - */ - owner = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerJoinRoomSuccess.User"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomSuccess_User { - return new ServerJoinRoomSuccess_User().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomSuccess_User { - return new ServerJoinRoomSuccess_User().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomSuccess_User { - return new ServerJoinRoomSuccess_User().fromJsonString(jsonString, options); - } - - static equals(a: ServerJoinRoomSuccess_User | PlainMessage | undefined, b: ServerJoinRoomSuccess_User | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerJoinRoomSuccess_User, a, b); - } -} - -/** - * @generated from message NT.ServerJoinRoomFailed - */ -export class ServerJoinRoomFailed extends Message { - /** - * @generated from field: string reason = 1; - */ - reason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerJoinRoomFailed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerJoinRoomFailed { - return new ServerJoinRoomFailed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerJoinRoomFailed { - return new ServerJoinRoomFailed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerJoinRoomFailed { - return new ServerJoinRoomFailed().fromJsonString(jsonString, options); - } - - static equals(a: ServerJoinRoomFailed | PlainMessage | undefined, b: ServerJoinRoomFailed | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerJoinRoomFailed, a, b); - } -} - -/** - * @generated from message NT.ServerUserJoinedRoom - */ -export class ServerUserJoinedRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerUserJoinedRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserJoinedRoom { - return new ServerUserJoinedRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserJoinedRoom { - return new ServerUserJoinedRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserJoinedRoom { - return new ServerUserJoinedRoom().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserJoinedRoom | PlainMessage | undefined, b: ServerUserJoinedRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserJoinedRoom, a, b); - } -} - -/** - * @generated from message NT.ClientLeaveRoom - */ -export class ClientLeaveRoom extends Message { - /** - * should be empty msg - * - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientLeaveRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientLeaveRoom { - return new ClientLeaveRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientLeaveRoom { - return new ClientLeaveRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientLeaveRoom { - return new ClientLeaveRoom().fromJsonString(jsonString, options); - } - - static equals(a: ClientLeaveRoom | PlainMessage | undefined, b: ClientLeaveRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientLeaveRoom, a, b); - } -} - -/** - * @generated from message NT.ServerUserLeftRoom - */ -export class ServerUserLeftRoom extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerUserLeftRoom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserLeftRoom { - return new ServerUserLeftRoom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserLeftRoom { - return new ServerUserLeftRoom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserLeftRoom { - return new ServerUserLeftRoom().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserLeftRoom | PlainMessage | undefined, b: ServerUserLeftRoom | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserLeftRoom, a, b); - } -} - -/** - * @generated from message NT.ClientKickUser - */ -export class ClientKickUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientKickUser"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientKickUser { - return new ClientKickUser().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientKickUser { - return new ClientKickUser().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientKickUser { - return new ClientKickUser().fromJsonString(jsonString, options); - } - - static equals(a: ClientKickUser | PlainMessage | undefined, b: ClientKickUser | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientKickUser, a, b); - } -} - -/** - * @generated from message NT.ServerUserKicked - */ -export class ServerUserKicked extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerUserKicked"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserKicked { - return new ServerUserKicked().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserKicked { - return new ServerUserKicked().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserKicked { - return new ServerUserKicked().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserKicked | PlainMessage | undefined, b: ServerUserKicked | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserKicked, a, b); - } -} - -/** - * @generated from message NT.ClientBanUser - */ -export class ClientBanUser extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientBanUser"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientBanUser { - return new ClientBanUser().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientBanUser { - return new ClientBanUser().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientBanUser { - return new ClientBanUser().fromJsonString(jsonString, options); - } - - static equals(a: ClientBanUser | PlainMessage | undefined, b: ClientBanUser | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientBanUser, a, b); - } -} - -/** - * @generated from message NT.ServerUserBanned - */ -export class ServerUserBanned extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerUserBanned"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserBanned { - return new ServerUserBanned().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserBanned { - return new ServerUserBanned().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserBanned { - return new ServerUserBanned().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserBanned | PlainMessage | undefined, b: ServerUserBanned | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserBanned, a, b); - } -} - -/** - * @generated from message NT.ClientReadyState - */ -export class ClientReadyState extends Message { - /** - * @generated from field: bool ready = 1; - */ - ready = false; - - /** - * @generated from field: optional string seed = 2; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 3; - */ - mods: string[] = []; - - /** - * @generated from field: optional string version = 4; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 5; - */ - beta?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientReadyState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 3, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 5, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientReadyState { - return new ClientReadyState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientReadyState { - return new ClientReadyState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientReadyState { - return new ClientReadyState().fromJsonString(jsonString, options); - } - - static equals(a: ClientReadyState | PlainMessage | undefined, b: ClientReadyState | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientReadyState, a, b); - } -} - -/** - * @generated from message NT.ServerUserReadyState - */ -export class ServerUserReadyState extends Message { - /** - * @generated from field: string user_id = 1; - */ - userId = ""; - - /** - * @generated from field: bool ready = 2; - */ - ready = false; - - /** - * @generated from field: optional string seed = 3; - */ - seed?: string; - - /** - * @generated from field: repeated string mods = 4; - */ - mods: string[] = []; - - /** - * @generated from field: optional string version = 5; - */ - version?: string; - - /** - * @generated from field: optional bool beta = 6; - */ - beta?: boolean; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerUserReadyState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "seed", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 4, name: "mods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - { no: 6, name: "beta", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerUserReadyState { - return new ServerUserReadyState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerUserReadyState { - return new ServerUserReadyState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerUserReadyState { - return new ServerUserReadyState().fromJsonString(jsonString, options); - } - - static equals(a: ServerUserReadyState | PlainMessage | undefined, b: ServerUserReadyState | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerUserReadyState, a, b); - } -} - -/** - * @generated from message NT.ClientStartRun - */ -export class ClientStartRun extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientStartRun"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientStartRun { - return new ClientStartRun().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientStartRun { - return new ClientStartRun().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientStartRun { - return new ClientStartRun().fromJsonString(jsonString, options); - } - - static equals(a: ClientStartRun | PlainMessage | undefined, b: ClientStartRun | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientStartRun, a, b); - } -} - -/** - * @generated from message NT.ServerHostStart - */ -export class ServerHostStart extends Message { - /** - * @generated from field: bool forced = 1; - */ - forced = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerHostStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "forced", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerHostStart { - return new ServerHostStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerHostStart { - return new ServerHostStart().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerHostStart { - return new ServerHostStart().fromJsonString(jsonString, options); - } - - static equals(a: ServerHostStart | PlainMessage | undefined, b: ServerHostStart | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerHostStart, a, b); - } -} - -/** - * @generated from message NT.ClientRequestRoomList - */ -export class ClientRequestRoomList extends Message { - /** - * @generated from field: uint32 page = 1; - */ - page = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ClientRequestRoomList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "page", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientRequestRoomList { - return new ClientRequestRoomList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientRequestRoomList { - return new ClientRequestRoomList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientRequestRoomList { - return new ClientRequestRoomList().fromJsonString(jsonString, options); - } - - static equals(a: ClientRequestRoomList | PlainMessage | undefined, b: ClientRequestRoomList | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientRequestRoomList, a, b); - } -} - -/** - * @generated from message NT.ServerRoomList - */ -export class ServerRoomList extends Message { - /** - * @generated from field: repeated NT.ServerRoomList.Room rooms = 1; - */ - rooms: ServerRoomList_Room[] = []; - - /** - * @generated from field: optional uint32 pages = 2; - */ - pages?: number; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rooms", kind: "message", T: ServerRoomList_Room, repeated: true }, - { no: 2, name: "pages", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList { - return new ServerRoomList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList { - return new ServerRoomList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList { - return new ServerRoomList().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomList | PlainMessage | undefined, b: ServerRoomList | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomList, a, b); - } -} - -/** - * @generated from message NT.ServerRoomList.Room - */ -export class ServerRoomList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers = 0; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers = 0; - - /** - * @generated from field: bool protected = 6; - */ - protected = false; - - /** - * @generated from field: string owner = 7; - */ - owner = ""; - - /** - * @generated from field: bool locked = 8; - */ - locked = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomList.Room"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomList_Room { - return new ServerRoomList_Room().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomList_Room { - return new ServerRoomList_Room().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomList_Room { - return new ServerRoomList_Room().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomList_Room | PlainMessage | undefined, b: ServerRoomList_Room | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomList_Room, a, b); - } -} - -/** - * @generated from message NT.ServerRoomAddToList - */ -export class ServerRoomAddToList extends Message { - /** - * @generated from field: NT.ServerRoomAddToList.Room room = 1; - */ - room?: ServerRoomAddToList_Room; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomAddToList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "room", kind: "message", T: ServerRoomAddToList_Room }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList { - return new ServerRoomAddToList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList { - return new ServerRoomAddToList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList { - return new ServerRoomAddToList().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomAddToList | PlainMessage | undefined, b: ServerRoomAddToList | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomAddToList, a, b); - } -} - -/** - * @generated from message NT.ServerRoomAddToList.Room - */ -export class ServerRoomAddToList_Room extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: uint32 gamemode = 3; - */ - gamemode = 0; - - /** - * @generated from field: uint32 cur_users = 4; - */ - curUsers = 0; - - /** - * @generated from field: uint32 max_users = 5; - */ - maxUsers = 0; - - /** - * @generated from field: bool protected = 6; - */ - protected = false; - - /** - * @generated from field: string owner = 7; - */ - owner = ""; - - /** - * @generated from field: bool locked = 8; - */ - locked = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "NT.ServerRoomAddToList.Room"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gamemode", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "cur_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "max_users", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "protected", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "locked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerRoomAddToList_Room { - return new ServerRoomAddToList_Room().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerRoomAddToList_Room { - return new ServerRoomAddToList_Room().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServerRoomAddToList_Room { - return new ServerRoomAddToList_Room().fromJsonString(jsonString, options); - } - - static equals(a: ServerRoomAddToList_Room | PlainMessage | undefined, b: ServerRoomAddToList_Room | PlainMessage | undefined): boolean { - return proto3.util.equals(ServerRoomAddToList_Room, a, b); - } -} - diff --git a/nt-web-app/websocket/messageHandler.ts b/nt-web-app/websocket/messageHandler.ts index 169b1cc5..f6662342 100644 --- a/nt-web-app/websocket/messageHandler.ts +++ b/nt-web-app/websocket/messageHandler.ts @@ -1,4 +1,4 @@ -import { NT } from "./messages"; +import { NT } from '@noita-together/nt-message'; /** * @throws {Error} if the message is not a valid envelope @@ -22,10 +22,7 @@ export function encode(obj: NT.IEnvelope) { } } -export function encodeGameMsg>( - type: T, - data: NT.IGameAction[T] -) { +export function encodeGameMsg>(type: T, data: NT.IGameAction[T]) { const payload = { gameAction: { [type]: data, @@ -34,10 +31,7 @@ export function encodeGameMsg>( return encode(payload); } -export function encodeLobbyMsg>( - type: T, - data: NT.ILobbyAction[T] -) { +export function encodeLobbyMsg>(type: T, data: NT.ILobbyAction[T]) { const payload = { lobbyAction: { [type]: data, @@ -45,10 +39,3 @@ export function encodeLobbyMsg>( }; return encode(payload); } - -export default { - encode, - decode, - encodeGameMsg, - encodeLobbyMsg, -}; diff --git a/nt-web-app/websocket/messages.d.ts b/nt-web-app/websocket/messages.d.ts deleted file mode 100644 index ea6057f4..00000000 --- a/nt-web-app/websocket/messages.d.ts +++ /dev/null @@ -1,9486 +0,0 @@ -import * as $protobuf from "protobufjs"; -/** Namespace NT. */ -export namespace NT { - - /** Properties of an Envelope. */ - interface IEnvelope { - - /** Envelope gameAction */ - gameAction?: (NT.IGameAction|null); - - /** Envelope lobbyAction */ - lobbyAction?: (NT.ILobbyAction|null); - } - - /** Represents an Envelope. */ - class Envelope implements IEnvelope { - - /** - * Constructs a new Envelope. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IEnvelope); - - /** Envelope gameAction. */ - public gameAction?: (NT.IGameAction|null); - - /** Envelope lobbyAction. */ - public lobbyAction?: (NT.ILobbyAction|null); - - /** Envelope kind. */ - public kind?: ("gameAction"|"lobbyAction"); - - /** - * Creates a new Envelope instance using the specified properties. - * @param [properties] Properties to set - * @returns Envelope instance - */ - public static create(properties?: NT.IEnvelope): NT.Envelope; - - /** - * Encodes the specified Envelope message. Does not implicitly {@link NT.Envelope.verify|verify} messages. - * @param message Envelope message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Envelope message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Envelope - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Envelope; - - /** - * Verifies an Envelope message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Envelope message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Envelope - */ - public static fromObject(object: { [k: string]: any }): NT.Envelope; - - /** - * Creates a plain object from an Envelope message. Also converts values to other types if specified. - * @param message Envelope - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Envelope, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Envelope to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GameAction. */ - interface IGameAction { - - /** GameAction cPlayerMove */ - cPlayerMove?: (NT.IClientPlayerMove|null); - - /** GameAction sPlayerMove */ - sPlayerMove?: (NT.IServerPlayerMove|null); - - /** GameAction cPlayerUpdate */ - cPlayerUpdate?: (NT.IClientPlayerUpdate|null); - - /** GameAction sPlayerUpdate */ - sPlayerUpdate?: (NT.IServerPlayerUpdate|null); - - /** GameAction cPlayerUpdateInventory */ - cPlayerUpdateInventory?: (NT.IClientPlayerUpdateInventory|null); - - /** GameAction sPlayerUpdateInventory */ - sPlayerUpdateInventory?: (NT.IServerPlayerUpdateInventory|null); - - /** GameAction cHostItemBank */ - cHostItemBank?: (NT.IClientHostItemBank|null); - - /** GameAction sHostItemBank */ - sHostItemBank?: (NT.IServerHostItemBank|null); - - /** GameAction cHostUserTake */ - cHostUserTake?: (NT.IClientHostUserTake|null); - - /** GameAction sHostUserTake */ - sHostUserTake?: (NT.IServerHostUserTake|null); - - /** GameAction cHostUserTakeGold */ - cHostUserTakeGold?: (NT.IClientHostUserTakeGold|null); - - /** GameAction sHostUserTakeGold */ - sHostUserTakeGold?: (NT.IServerHostUserTakeGold|null); - - /** GameAction cPlayerAddGold */ - cPlayerAddGold?: (NT.IClientPlayerAddGold|null); - - /** GameAction sPlayerAddGold */ - sPlayerAddGold?: (NT.IServerPlayerAddGold|null); - - /** GameAction cPlayerTakeGold */ - cPlayerTakeGold?: (NT.IClientPlayerTakeGold|null); - - /** GameAction sPlayerTakeGold */ - sPlayerTakeGold?: (NT.IServerPlayerTakeGold|null); - - /** GameAction cPlayerAddItem */ - cPlayerAddItem?: (NT.IClientPlayerAddItem|null); - - /** GameAction sPlayerAddItem */ - sPlayerAddItem?: (NT.IServerPlayerAddItem|null); - - /** GameAction cPlayerTakeItem */ - cPlayerTakeItem?: (NT.IClientPlayerTakeItem|null); - - /** GameAction sPlayerTakeItem */ - sPlayerTakeItem?: (NT.IServerPlayerTakeItem|null); - - /** GameAction cPlayerPickup */ - cPlayerPickup?: (NT.IClientPlayerPickup|null); - - /** GameAction sPlayerPickup */ - sPlayerPickup?: (NT.IServerPlayerPickup|null); - - /** GameAction cNemesisAbility */ - cNemesisAbility?: (NT.IClientNemesisAbility|null); - - /** GameAction sNemesisAbility */ - sNemesisAbility?: (NT.IServerNemesisAbility|null); - - /** GameAction cNemesisPickupItem */ - cNemesisPickupItem?: (NT.IClientNemesisPickupItem|null); - - /** GameAction sNemesisPickupItem */ - sNemesisPickupItem?: (NT.IServerNemesisPickupItem|null); - - /** GameAction cChat */ - cChat?: (NT.IClientChat|null); - - /** GameAction sChat */ - sChat?: (NT.IServerChat|null); - - /** GameAction cPlayerDeath */ - cPlayerDeath?: (NT.IClientPlayerDeath|null); - - /** GameAction sPlayerDeath */ - sPlayerDeath?: (NT.IServerPlayerDeath|null); - - /** GameAction cPlayerNewGamePlus */ - cPlayerNewGamePlus?: (NT.IClientPlayerNewGamePlus|null); - - /** GameAction sPlayerNewGamePlus */ - sPlayerNewGamePlus?: (NT.IServerPlayerNewGamePlus|null); - - /** GameAction cPlayerSecretHourglass */ - cPlayerSecretHourglass?: (NT.IClientPlayerSecretHourglass|null); - - /** GameAction sPlayerSecretHourglass */ - sPlayerSecretHourglass?: (NT.IServerPlayerSecretHourglass|null); - - /** GameAction cCustomModEvent */ - cCustomModEvent?: (NT.IClientCustomModEvent|null); - - /** GameAction sCustomModEvent */ - sCustomModEvent?: (NT.IServerCustomModEvent|null); - - /** GameAction cRespawnPenalty */ - cRespawnPenalty?: (NT.IClientRespawnPenalty|null); - - /** GameAction sRespawnPenalty */ - sRespawnPenalty?: (NT.IServerRespawnPenalty|null); - - /** GameAction cAngerySteve */ - cAngerySteve?: (NT.IClientAngerySteve|null); - - /** GameAction sAngerySteve */ - sAngerySteve?: (NT.IServerAngerySteve|null); - - /** GameAction sPlayerPos */ - sPlayerPos?: (NT.IServerPlayerPos|null); - - /** GameAction sStatUpdate */ - sStatUpdate?: (NT.IServerStatsUpdate|null); - } - - /** Represents a GameAction. */ - class GameAction implements IGameAction { - - /** - * Constructs a new GameAction. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IGameAction); - - /** GameAction cPlayerMove. */ - public cPlayerMove?: (NT.IClientPlayerMove|null); - - /** GameAction sPlayerMove. */ - public sPlayerMove?: (NT.IServerPlayerMove|null); - - /** GameAction cPlayerUpdate. */ - public cPlayerUpdate?: (NT.IClientPlayerUpdate|null); - - /** GameAction sPlayerUpdate. */ - public sPlayerUpdate?: (NT.IServerPlayerUpdate|null); - - /** GameAction cPlayerUpdateInventory. */ - public cPlayerUpdateInventory?: (NT.IClientPlayerUpdateInventory|null); - - /** GameAction sPlayerUpdateInventory. */ - public sPlayerUpdateInventory?: (NT.IServerPlayerUpdateInventory|null); - - /** GameAction cHostItemBank. */ - public cHostItemBank?: (NT.IClientHostItemBank|null); - - /** GameAction sHostItemBank. */ - public sHostItemBank?: (NT.IServerHostItemBank|null); - - /** GameAction cHostUserTake. */ - public cHostUserTake?: (NT.IClientHostUserTake|null); - - /** GameAction sHostUserTake. */ - public sHostUserTake?: (NT.IServerHostUserTake|null); - - /** GameAction cHostUserTakeGold. */ - public cHostUserTakeGold?: (NT.IClientHostUserTakeGold|null); - - /** GameAction sHostUserTakeGold. */ - public sHostUserTakeGold?: (NT.IServerHostUserTakeGold|null); - - /** GameAction cPlayerAddGold. */ - public cPlayerAddGold?: (NT.IClientPlayerAddGold|null); - - /** GameAction sPlayerAddGold. */ - public sPlayerAddGold?: (NT.IServerPlayerAddGold|null); - - /** GameAction cPlayerTakeGold. */ - public cPlayerTakeGold?: (NT.IClientPlayerTakeGold|null); - - /** GameAction sPlayerTakeGold. */ - public sPlayerTakeGold?: (NT.IServerPlayerTakeGold|null); - - /** GameAction cPlayerAddItem. */ - public cPlayerAddItem?: (NT.IClientPlayerAddItem|null); - - /** GameAction sPlayerAddItem. */ - public sPlayerAddItem?: (NT.IServerPlayerAddItem|null); - - /** GameAction cPlayerTakeItem. */ - public cPlayerTakeItem?: (NT.IClientPlayerTakeItem|null); - - /** GameAction sPlayerTakeItem. */ - public sPlayerTakeItem?: (NT.IServerPlayerTakeItem|null); - - /** GameAction cPlayerPickup. */ - public cPlayerPickup?: (NT.IClientPlayerPickup|null); - - /** GameAction sPlayerPickup. */ - public sPlayerPickup?: (NT.IServerPlayerPickup|null); - - /** GameAction cNemesisAbility. */ - public cNemesisAbility?: (NT.IClientNemesisAbility|null); - - /** GameAction sNemesisAbility. */ - public sNemesisAbility?: (NT.IServerNemesisAbility|null); - - /** GameAction cNemesisPickupItem. */ - public cNemesisPickupItem?: (NT.IClientNemesisPickupItem|null); - - /** GameAction sNemesisPickupItem. */ - public sNemesisPickupItem?: (NT.IServerNemesisPickupItem|null); - - /** GameAction cChat. */ - public cChat?: (NT.IClientChat|null); - - /** GameAction sChat. */ - public sChat?: (NT.IServerChat|null); - - /** GameAction cPlayerDeath. */ - public cPlayerDeath?: (NT.IClientPlayerDeath|null); - - /** GameAction sPlayerDeath. */ - public sPlayerDeath?: (NT.IServerPlayerDeath|null); - - /** GameAction cPlayerNewGamePlus. */ - public cPlayerNewGamePlus?: (NT.IClientPlayerNewGamePlus|null); - - /** GameAction sPlayerNewGamePlus. */ - public sPlayerNewGamePlus?: (NT.IServerPlayerNewGamePlus|null); - - /** GameAction cPlayerSecretHourglass. */ - public cPlayerSecretHourglass?: (NT.IClientPlayerSecretHourglass|null); - - /** GameAction sPlayerSecretHourglass. */ - public sPlayerSecretHourglass?: (NT.IServerPlayerSecretHourglass|null); - - /** GameAction cCustomModEvent. */ - public cCustomModEvent?: (NT.IClientCustomModEvent|null); - - /** GameAction sCustomModEvent. */ - public sCustomModEvent?: (NT.IServerCustomModEvent|null); - - /** GameAction cRespawnPenalty. */ - public cRespawnPenalty?: (NT.IClientRespawnPenalty|null); - - /** GameAction sRespawnPenalty. */ - public sRespawnPenalty?: (NT.IServerRespawnPenalty|null); - - /** GameAction cAngerySteve. */ - public cAngerySteve?: (NT.IClientAngerySteve|null); - - /** GameAction sAngerySteve. */ - public sAngerySteve?: (NT.IServerAngerySteve|null); - - /** GameAction sPlayerPos. */ - public sPlayerPos?: (NT.IServerPlayerPos|null); - - /** GameAction sStatUpdate. */ - public sStatUpdate?: (NT.IServerStatsUpdate|null); - - /** GameAction action. */ - public action?: ("cPlayerMove"|"sPlayerMove"|"cPlayerUpdate"|"sPlayerUpdate"|"cPlayerUpdateInventory"|"sPlayerUpdateInventory"|"cHostItemBank"|"sHostItemBank"|"cHostUserTake"|"sHostUserTake"|"cHostUserTakeGold"|"sHostUserTakeGold"|"cPlayerAddGold"|"sPlayerAddGold"|"cPlayerTakeGold"|"sPlayerTakeGold"|"cPlayerAddItem"|"sPlayerAddItem"|"cPlayerTakeItem"|"sPlayerTakeItem"|"cPlayerPickup"|"sPlayerPickup"|"cNemesisAbility"|"sNemesisAbility"|"cNemesisPickupItem"|"sNemesisPickupItem"|"cChat"|"sChat"|"cPlayerDeath"|"sPlayerDeath"|"cPlayerNewGamePlus"|"sPlayerNewGamePlus"|"cPlayerSecretHourglass"|"sPlayerSecretHourglass"|"cCustomModEvent"|"sCustomModEvent"|"cRespawnPenalty"|"sRespawnPenalty"|"cAngerySteve"|"sAngerySteve"|"sPlayerPos"|"sStatUpdate"); - - /** - * Creates a new GameAction instance using the specified properties. - * @param [properties] Properties to set - * @returns GameAction instance - */ - public static create(properties?: NT.IGameAction): NT.GameAction; - - /** - * Encodes the specified GameAction message. Does not implicitly {@link NT.GameAction.verify|verify} messages. - * @param message GameAction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IGameAction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GameAction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GameAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.GameAction; - - /** - * Verifies a GameAction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GameAction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GameAction - */ - public static fromObject(object: { [k: string]: any }): NT.GameAction; - - /** - * Creates a plain object from a GameAction message. Also converts values to other types if specified. - * @param message GameAction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.GameAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GameAction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PlayerFrame. */ - interface IPlayerFrame { - - /** PlayerFrame x */ - x?: (number|null); - - /** PlayerFrame y */ - y?: (number|null); - - /** PlayerFrame armR */ - armR?: (number|null); - - /** PlayerFrame armScaleY */ - armScaleY?: (number|null); - - /** PlayerFrame scaleX */ - scaleX?: (number|null); - - /** PlayerFrame anim */ - anim?: (number|null); - - /** PlayerFrame held */ - held?: (number|null); - } - - /** Represents a PlayerFrame. */ - class PlayerFrame implements IPlayerFrame { - - /** - * Constructs a new PlayerFrame. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IPlayerFrame); - - /** PlayerFrame x. */ - public x?: (number|null); - - /** PlayerFrame y. */ - public y?: (number|null); - - /** PlayerFrame armR. */ - public armR?: (number|null); - - /** PlayerFrame armScaleY. */ - public armScaleY?: (number|null); - - /** PlayerFrame scaleX. */ - public scaleX?: (number|null); - - /** PlayerFrame anim. */ - public anim?: (number|null); - - /** PlayerFrame held. */ - public held?: (number|null); - - /** PlayerFrame _x. */ - public _x?: "x"; - - /** PlayerFrame _y. */ - public _y?: "y"; - - /** PlayerFrame _armR. */ - public _armR?: "armR"; - - /** PlayerFrame _armScaleY. */ - public _armScaleY?: "armScaleY"; - - /** PlayerFrame _scaleX. */ - public _scaleX?: "scaleX"; - - /** PlayerFrame _anim. */ - public _anim?: "anim"; - - /** PlayerFrame _held. */ - public _held?: "held"; - - /** - * Creates a new PlayerFrame instance using the specified properties. - * @param [properties] Properties to set - * @returns PlayerFrame instance - */ - public static create(properties?: NT.IPlayerFrame): NT.PlayerFrame; - - /** - * Encodes the specified PlayerFrame message. Does not implicitly {@link NT.PlayerFrame.verify|verify} messages. - * @param message PlayerFrame message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IPlayerFrame, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlayerFrame message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlayerFrame - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.PlayerFrame; - - /** - * Verifies a PlayerFrame message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlayerFrame message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlayerFrame - */ - public static fromObject(object: { [k: string]: any }): NT.PlayerFrame; - - /** - * Creates a plain object from a PlayerFrame message. Also converts values to other types if specified. - * @param message PlayerFrame - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.PlayerFrame, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlayerFrame to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerPos. */ - interface IServerPlayerPos { - - /** ServerPlayerPos userId */ - userId?: (string|null); - - /** ServerPlayerPos x */ - x?: (number|null); - - /** ServerPlayerPos y */ - y?: (number|null); - } - - /** Represents a ServerPlayerPos. */ - class ServerPlayerPos implements IServerPlayerPos { - - /** - * Constructs a new ServerPlayerPos. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerPos); - - /** ServerPlayerPos userId. */ - public userId: string; - - /** ServerPlayerPos x. */ - public x: number; - - /** ServerPlayerPos y. */ - public y: number; - - /** - * Creates a new ServerPlayerPos instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerPos instance - */ - public static create(properties?: NT.IServerPlayerPos): NT.ServerPlayerPos; - - /** - * Encodes the specified ServerPlayerPos message. Does not implicitly {@link NT.ServerPlayerPos.verify|verify} messages. - * @param message ServerPlayerPos message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerPos, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerPos message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerPos - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerPos; - - /** - * Verifies a ServerPlayerPos message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerPos message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerPos - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerPos; - - /** - * Creates a plain object from a ServerPlayerPos message. Also converts values to other types if specified. - * @param message ServerPlayerPos - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerPos, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerPos to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerMove. */ - interface IClientPlayerMove { - - /** ClientPlayerMove frames */ - frames?: (NT.IPlayerFrame[]|null); - } - - /** Represents a ClientPlayerMove. */ - class ClientPlayerMove implements IClientPlayerMove { - - /** - * Constructs a new ClientPlayerMove. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerMove); - - /** ClientPlayerMove frames. */ - public frames: NT.IPlayerFrame[]; - - /** - * Creates a new ClientPlayerMove instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerMove instance - */ - public static create(properties?: NT.IClientPlayerMove): NT.ClientPlayerMove; - - /** - * Encodes the specified ClientPlayerMove message. Does not implicitly {@link NT.ClientPlayerMove.verify|verify} messages. - * @param message ClientPlayerMove message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerMove, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerMove message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerMove - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerMove; - - /** - * Verifies a ClientPlayerMove message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerMove message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerMove - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerMove; - - /** - * Creates a plain object from a ClientPlayerMove message. Also converts values to other types if specified. - * @param message ClientPlayerMove - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerMove, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerMove to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerMove. */ - interface IServerPlayerMove { - - /** ServerPlayerMove userId */ - userId?: (string|null); - - /** ServerPlayerMove frames */ - frames?: (NT.IPlayerFrame[]|null); - } - - /** Represents a ServerPlayerMove. */ - class ServerPlayerMove implements IServerPlayerMove { - - /** - * Constructs a new ServerPlayerMove. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerMove); - - /** ServerPlayerMove userId. */ - public userId: string; - - /** ServerPlayerMove frames. */ - public frames: NT.IPlayerFrame[]; - - /** - * Creates a new ServerPlayerMove instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerMove instance - */ - public static create(properties?: NT.IServerPlayerMove): NT.ServerPlayerMove; - - /** - * Encodes the specified ServerPlayerMove message. Does not implicitly {@link NT.ServerPlayerMove.verify|verify} messages. - * @param message ServerPlayerMove message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerMove, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerMove message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerMove - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerMove; - - /** - * Verifies a ServerPlayerMove message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerMove message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerMove - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerMove; - - /** - * Creates a plain object from a ServerPlayerMove message. Also converts values to other types if specified. - * @param message ServerPlayerMove - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerMove, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerMove to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerUpdate. */ - interface IClientPlayerUpdate { - - /** ClientPlayerUpdate curHp */ - curHp?: (number|null); - - /** ClientPlayerUpdate maxHp */ - maxHp?: (number|null); - - /** ClientPlayerUpdate location */ - location?: (string|null); - - /** ClientPlayerUpdate sampo */ - sampo?: (boolean|null); - } - - /** Represents a ClientPlayerUpdate. */ - class ClientPlayerUpdate implements IClientPlayerUpdate { - - /** - * Constructs a new ClientPlayerUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerUpdate); - - /** ClientPlayerUpdate curHp. */ - public curHp?: (number|null); - - /** ClientPlayerUpdate maxHp. */ - public maxHp?: (number|null); - - /** ClientPlayerUpdate location. */ - public location?: (string|null); - - /** ClientPlayerUpdate sampo. */ - public sampo?: (boolean|null); - - /** ClientPlayerUpdate _curHp. */ - public _curHp?: "curHp"; - - /** ClientPlayerUpdate _maxHp. */ - public _maxHp?: "maxHp"; - - /** ClientPlayerUpdate _location. */ - public _location?: "location"; - - /** ClientPlayerUpdate _sampo. */ - public _sampo?: "sampo"; - - /** - * Creates a new ClientPlayerUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerUpdate instance - */ - public static create(properties?: NT.IClientPlayerUpdate): NT.ClientPlayerUpdate; - - /** - * Encodes the specified ClientPlayerUpdate message. Does not implicitly {@link NT.ClientPlayerUpdate.verify|verify} messages. - * @param message ClientPlayerUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerUpdate; - - /** - * Verifies a ClientPlayerUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerUpdate - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerUpdate; - - /** - * Creates a plain object from a ClientPlayerUpdate message. Also converts values to other types if specified. - * @param message ClientPlayerUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerUpdate. */ - interface IServerPlayerUpdate { - - /** ServerPlayerUpdate userId */ - userId?: (string|null); - - /** ServerPlayerUpdate curHp */ - curHp?: (number|null); - - /** ServerPlayerUpdate maxHp */ - maxHp?: (number|null); - - /** ServerPlayerUpdate location */ - location?: (string|null); - - /** ServerPlayerUpdate sampo */ - sampo?: (boolean|null); - } - - /** Represents a ServerPlayerUpdate. */ - class ServerPlayerUpdate implements IServerPlayerUpdate { - - /** - * Constructs a new ServerPlayerUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerUpdate); - - /** ServerPlayerUpdate userId. */ - public userId: string; - - /** ServerPlayerUpdate curHp. */ - public curHp?: (number|null); - - /** ServerPlayerUpdate maxHp. */ - public maxHp?: (number|null); - - /** ServerPlayerUpdate location. */ - public location?: (string|null); - - /** ServerPlayerUpdate sampo. */ - public sampo?: (boolean|null); - - /** ServerPlayerUpdate _curHp. */ - public _curHp?: "curHp"; - - /** ServerPlayerUpdate _maxHp. */ - public _maxHp?: "maxHp"; - - /** ServerPlayerUpdate _location. */ - public _location?: "location"; - - /** ServerPlayerUpdate _sampo. */ - public _sampo?: "sampo"; - - /** - * Creates a new ServerPlayerUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerUpdate instance - */ - public static create(properties?: NT.IServerPlayerUpdate): NT.ServerPlayerUpdate; - - /** - * Encodes the specified ServerPlayerUpdate message. Does not implicitly {@link NT.ServerPlayerUpdate.verify|verify} messages. - * @param message ServerPlayerUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerUpdate; - - /** - * Verifies a ServerPlayerUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerUpdate - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerUpdate; - - /** - * Creates a plain object from a ServerPlayerUpdate message. Also converts values to other types if specified. - * @param message ServerPlayerUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerUpdateInventory. */ - interface IClientPlayerUpdateInventory { - - /** ClientPlayerUpdateInventory wands */ - wands?: (NT.ClientPlayerUpdateInventory.IInventoryWand[]|null); - - /** ClientPlayerUpdateInventory items */ - items?: (NT.ClientPlayerUpdateInventory.IInventoryItem[]|null); - - /** ClientPlayerUpdateInventory spells */ - spells?: (NT.ClientPlayerUpdateInventory.IInventorySpell[]|null); - } - - /** Represents a ClientPlayerUpdateInventory. */ - class ClientPlayerUpdateInventory implements IClientPlayerUpdateInventory { - - /** - * Constructs a new ClientPlayerUpdateInventory. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerUpdateInventory); - - /** ClientPlayerUpdateInventory wands. */ - public wands: NT.ClientPlayerUpdateInventory.IInventoryWand[]; - - /** ClientPlayerUpdateInventory items. */ - public items: NT.ClientPlayerUpdateInventory.IInventoryItem[]; - - /** ClientPlayerUpdateInventory spells. */ - public spells: NT.ClientPlayerUpdateInventory.IInventorySpell[]; - - /** - * Creates a new ClientPlayerUpdateInventory instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerUpdateInventory instance - */ - public static create(properties?: NT.IClientPlayerUpdateInventory): NT.ClientPlayerUpdateInventory; - - /** - * Encodes the specified ClientPlayerUpdateInventory message. Does not implicitly {@link NT.ClientPlayerUpdateInventory.verify|verify} messages. - * @param message ClientPlayerUpdateInventory message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerUpdateInventory, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerUpdateInventory message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerUpdateInventory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerUpdateInventory; - - /** - * Verifies a ClientPlayerUpdateInventory message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerUpdateInventory message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerUpdateInventory - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerUpdateInventory; - - /** - * Creates a plain object from a ClientPlayerUpdateInventory message. Also converts values to other types if specified. - * @param message ClientPlayerUpdateInventory - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerUpdateInventory, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerUpdateInventory to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ClientPlayerUpdateInventory { - - /** Properties of an InventoryWand. */ - interface IInventoryWand { - - /** InventoryWand index */ - index?: (number|null); - - /** InventoryWand wand */ - wand?: (NT.IWand|null); - } - - /** Represents an InventoryWand. */ - class InventoryWand implements IInventoryWand { - - /** - * Constructs a new InventoryWand. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerUpdateInventory.IInventoryWand); - - /** InventoryWand index. */ - public index: number; - - /** InventoryWand wand. */ - public wand?: (NT.IWand|null); - - /** - * Creates a new InventoryWand instance using the specified properties. - * @param [properties] Properties to set - * @returns InventoryWand instance - */ - public static create(properties?: NT.ClientPlayerUpdateInventory.IInventoryWand): NT.ClientPlayerUpdateInventory.InventoryWand; - - /** - * Encodes the specified InventoryWand message. Does not implicitly {@link NT.ClientPlayerUpdateInventory.InventoryWand.verify|verify} messages. - * @param message InventoryWand message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerUpdateInventory.IInventoryWand, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InventoryWand message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InventoryWand - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerUpdateInventory.InventoryWand; - - /** - * Verifies an InventoryWand message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InventoryWand message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InventoryWand - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerUpdateInventory.InventoryWand; - - /** - * Creates a plain object from an InventoryWand message. Also converts values to other types if specified. - * @param message InventoryWand - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerUpdateInventory.InventoryWand, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InventoryWand to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an InventoryItem. */ - interface IInventoryItem { - - /** InventoryItem index */ - index?: (number|null); - - /** InventoryItem item */ - item?: (NT.IItem|null); - } - - /** Represents an InventoryItem. */ - class InventoryItem implements IInventoryItem { - - /** - * Constructs a new InventoryItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerUpdateInventory.IInventoryItem); - - /** InventoryItem index. */ - public index: number; - - /** InventoryItem item. */ - public item?: (NT.IItem|null); - - /** - * Creates a new InventoryItem instance using the specified properties. - * @param [properties] Properties to set - * @returns InventoryItem instance - */ - public static create(properties?: NT.ClientPlayerUpdateInventory.IInventoryItem): NT.ClientPlayerUpdateInventory.InventoryItem; - - /** - * Encodes the specified InventoryItem message. Does not implicitly {@link NT.ClientPlayerUpdateInventory.InventoryItem.verify|verify} messages. - * @param message InventoryItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerUpdateInventory.IInventoryItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InventoryItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InventoryItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerUpdateInventory.InventoryItem; - - /** - * Verifies an InventoryItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InventoryItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InventoryItem - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerUpdateInventory.InventoryItem; - - /** - * Creates a plain object from an InventoryItem message. Also converts values to other types if specified. - * @param message InventoryItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerUpdateInventory.InventoryItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InventoryItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an InventorySpell. */ - interface IInventorySpell { - - /** InventorySpell index */ - index?: (number|null); - - /** InventorySpell spell */ - spell?: (NT.ISpell|null); - } - - /** Represents an InventorySpell. */ - class InventorySpell implements IInventorySpell { - - /** - * Constructs a new InventorySpell. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerUpdateInventory.IInventorySpell); - - /** InventorySpell index. */ - public index: number; - - /** InventorySpell spell. */ - public spell?: (NT.ISpell|null); - - /** - * Creates a new InventorySpell instance using the specified properties. - * @param [properties] Properties to set - * @returns InventorySpell instance - */ - public static create(properties?: NT.ClientPlayerUpdateInventory.IInventorySpell): NT.ClientPlayerUpdateInventory.InventorySpell; - - /** - * Encodes the specified InventorySpell message. Does not implicitly {@link NT.ClientPlayerUpdateInventory.InventorySpell.verify|verify} messages. - * @param message InventorySpell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerUpdateInventory.IInventorySpell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InventorySpell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InventorySpell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerUpdateInventory.InventorySpell; - - /** - * Verifies an InventorySpell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InventorySpell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InventorySpell - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerUpdateInventory.InventorySpell; - - /** - * Creates a plain object from an InventorySpell message. Also converts values to other types if specified. - * @param message InventorySpell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerUpdateInventory.InventorySpell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InventorySpell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerPlayerUpdateInventory. */ - interface IServerPlayerUpdateInventory { - - /** ServerPlayerUpdateInventory userId */ - userId?: (string|null); - - /** ServerPlayerUpdateInventory wands */ - wands?: (NT.ServerPlayerUpdateInventory.IInventoryWand[]|null); - - /** ServerPlayerUpdateInventory items */ - items?: (NT.ServerPlayerUpdateInventory.IInventoryItem[]|null); - - /** ServerPlayerUpdateInventory spells */ - spells?: (NT.ServerPlayerUpdateInventory.IInventorySpell[]|null); - } - - /** Represents a ServerPlayerUpdateInventory. */ - class ServerPlayerUpdateInventory implements IServerPlayerUpdateInventory { - - /** - * Constructs a new ServerPlayerUpdateInventory. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerUpdateInventory); - - /** ServerPlayerUpdateInventory userId. */ - public userId: string; - - /** ServerPlayerUpdateInventory wands. */ - public wands: NT.ServerPlayerUpdateInventory.IInventoryWand[]; - - /** ServerPlayerUpdateInventory items. */ - public items: NT.ServerPlayerUpdateInventory.IInventoryItem[]; - - /** ServerPlayerUpdateInventory spells. */ - public spells: NT.ServerPlayerUpdateInventory.IInventorySpell[]; - - /** - * Creates a new ServerPlayerUpdateInventory instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerUpdateInventory instance - */ - public static create(properties?: NT.IServerPlayerUpdateInventory): NT.ServerPlayerUpdateInventory; - - /** - * Encodes the specified ServerPlayerUpdateInventory message. Does not implicitly {@link NT.ServerPlayerUpdateInventory.verify|verify} messages. - * @param message ServerPlayerUpdateInventory message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerUpdateInventory, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerUpdateInventory message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerUpdateInventory - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerUpdateInventory; - - /** - * Verifies a ServerPlayerUpdateInventory message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerUpdateInventory message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerUpdateInventory - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerUpdateInventory; - - /** - * Creates a plain object from a ServerPlayerUpdateInventory message. Also converts values to other types if specified. - * @param message ServerPlayerUpdateInventory - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerUpdateInventory, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerUpdateInventory to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerPlayerUpdateInventory { - - /** Properties of an InventoryWand. */ - interface IInventoryWand { - - /** InventoryWand index */ - index?: (number|null); - - /** InventoryWand wand */ - wand?: (NT.IWand|null); - } - - /** Represents an InventoryWand. */ - class InventoryWand implements IInventoryWand { - - /** - * Constructs a new InventoryWand. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerUpdateInventory.IInventoryWand); - - /** InventoryWand index. */ - public index: number; - - /** InventoryWand wand. */ - public wand?: (NT.IWand|null); - - /** - * Creates a new InventoryWand instance using the specified properties. - * @param [properties] Properties to set - * @returns InventoryWand instance - */ - public static create(properties?: NT.ServerPlayerUpdateInventory.IInventoryWand): NT.ServerPlayerUpdateInventory.InventoryWand; - - /** - * Encodes the specified InventoryWand message. Does not implicitly {@link NT.ServerPlayerUpdateInventory.InventoryWand.verify|verify} messages. - * @param message InventoryWand message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerUpdateInventory.IInventoryWand, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InventoryWand message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InventoryWand - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerUpdateInventory.InventoryWand; - - /** - * Verifies an InventoryWand message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InventoryWand message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InventoryWand - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerUpdateInventory.InventoryWand; - - /** - * Creates a plain object from an InventoryWand message. Also converts values to other types if specified. - * @param message InventoryWand - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerUpdateInventory.InventoryWand, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InventoryWand to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an InventoryItem. */ - interface IInventoryItem { - - /** InventoryItem index */ - index?: (number|null); - - /** InventoryItem item */ - item?: (NT.IItem|null); - } - - /** Represents an InventoryItem. */ - class InventoryItem implements IInventoryItem { - - /** - * Constructs a new InventoryItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerUpdateInventory.IInventoryItem); - - /** InventoryItem index. */ - public index: number; - - /** InventoryItem item. */ - public item?: (NT.IItem|null); - - /** - * Creates a new InventoryItem instance using the specified properties. - * @param [properties] Properties to set - * @returns InventoryItem instance - */ - public static create(properties?: NT.ServerPlayerUpdateInventory.IInventoryItem): NT.ServerPlayerUpdateInventory.InventoryItem; - - /** - * Encodes the specified InventoryItem message. Does not implicitly {@link NT.ServerPlayerUpdateInventory.InventoryItem.verify|verify} messages. - * @param message InventoryItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerUpdateInventory.IInventoryItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InventoryItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InventoryItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerUpdateInventory.InventoryItem; - - /** - * Verifies an InventoryItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InventoryItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InventoryItem - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerUpdateInventory.InventoryItem; - - /** - * Creates a plain object from an InventoryItem message. Also converts values to other types if specified. - * @param message InventoryItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerUpdateInventory.InventoryItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InventoryItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an InventorySpell. */ - interface IInventorySpell { - - /** InventorySpell index */ - index?: (number|null); - - /** InventorySpell spell */ - spell?: (NT.ISpell|null); - } - - /** Represents an InventorySpell. */ - class InventorySpell implements IInventorySpell { - - /** - * Constructs a new InventorySpell. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerUpdateInventory.IInventorySpell); - - /** InventorySpell index. */ - public index: number; - - /** InventorySpell spell. */ - public spell?: (NT.ISpell|null); - - /** - * Creates a new InventorySpell instance using the specified properties. - * @param [properties] Properties to set - * @returns InventorySpell instance - */ - public static create(properties?: NT.ServerPlayerUpdateInventory.IInventorySpell): NT.ServerPlayerUpdateInventory.InventorySpell; - - /** - * Encodes the specified InventorySpell message. Does not implicitly {@link NT.ServerPlayerUpdateInventory.InventorySpell.verify|verify} messages. - * @param message InventorySpell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerUpdateInventory.IInventorySpell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InventorySpell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InventorySpell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerUpdateInventory.InventorySpell; - - /** - * Verifies an InventorySpell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InventorySpell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InventorySpell - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerUpdateInventory.InventorySpell; - - /** - * Creates a plain object from an InventorySpell message. Also converts values to other types if specified. - * @param message InventorySpell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerUpdateInventory.InventorySpell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InventorySpell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ClientHostItemBank. */ - interface IClientHostItemBank { - - /** ClientHostItemBank wands */ - wands?: (NT.IWand[]|null); - - /** ClientHostItemBank spells */ - spells?: (NT.ISpell[]|null); - - /** ClientHostItemBank items */ - items?: (NT.IItem[]|null); - - /** ClientHostItemBank gold */ - gold?: (number|null); - - /** ClientHostItemBank objects */ - objects?: (NT.IEntityItem[]|null); - } - - /** Represents a ClientHostItemBank. */ - class ClientHostItemBank implements IClientHostItemBank { - - /** - * Constructs a new ClientHostItemBank. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientHostItemBank); - - /** ClientHostItemBank wands. */ - public wands: NT.IWand[]; - - /** ClientHostItemBank spells. */ - public spells: NT.ISpell[]; - - /** ClientHostItemBank items. */ - public items: NT.IItem[]; - - /** ClientHostItemBank gold. */ - public gold: number; - - /** ClientHostItemBank objects. */ - public objects: NT.IEntityItem[]; - - /** - * Creates a new ClientHostItemBank instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientHostItemBank instance - */ - public static create(properties?: NT.IClientHostItemBank): NT.ClientHostItemBank; - - /** - * Encodes the specified ClientHostItemBank message. Does not implicitly {@link NT.ClientHostItemBank.verify|verify} messages. - * @param message ClientHostItemBank message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientHostItemBank, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientHostItemBank message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientHostItemBank - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientHostItemBank; - - /** - * Verifies a ClientHostItemBank message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientHostItemBank message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientHostItemBank - */ - public static fromObject(object: { [k: string]: any }): NT.ClientHostItemBank; - - /** - * Creates a plain object from a ClientHostItemBank message. Also converts values to other types if specified. - * @param message ClientHostItemBank - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientHostItemBank, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientHostItemBank to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerHostItemBank. */ - interface IServerHostItemBank { - - /** ServerHostItemBank wands */ - wands?: (NT.IWand[]|null); - - /** ServerHostItemBank spells */ - spells?: (NT.ISpell[]|null); - - /** ServerHostItemBank items */ - items?: (NT.IItem[]|null); - - /** ServerHostItemBank gold */ - gold?: (number|null); - - /** ServerHostItemBank objects */ - objects?: (NT.IEntityItem[]|null); - } - - /** Represents a ServerHostItemBank. */ - class ServerHostItemBank implements IServerHostItemBank { - - /** - * Constructs a new ServerHostItemBank. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerHostItemBank); - - /** ServerHostItemBank wands. */ - public wands: NT.IWand[]; - - /** ServerHostItemBank spells. */ - public spells: NT.ISpell[]; - - /** ServerHostItemBank items. */ - public items: NT.IItem[]; - - /** ServerHostItemBank gold. */ - public gold: number; - - /** ServerHostItemBank objects. */ - public objects: NT.IEntityItem[]; - - /** - * Creates a new ServerHostItemBank instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerHostItemBank instance - */ - public static create(properties?: NT.IServerHostItemBank): NT.ServerHostItemBank; - - /** - * Encodes the specified ServerHostItemBank message. Does not implicitly {@link NT.ServerHostItemBank.verify|verify} messages. - * @param message ServerHostItemBank message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerHostItemBank, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerHostItemBank message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerHostItemBank - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerHostItemBank; - - /** - * Verifies a ServerHostItemBank message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerHostItemBank message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerHostItemBank - */ - public static fromObject(object: { [k: string]: any }): NT.ServerHostItemBank; - - /** - * Creates a plain object from a ServerHostItemBank message. Also converts values to other types if specified. - * @param message ServerHostItemBank - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerHostItemBank, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerHostItemBank to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientHostUserTake. */ - interface IClientHostUserTake { - - /** ClientHostUserTake userId */ - userId?: (string|null); - - /** ClientHostUserTake id */ - id?: (string|null); - - /** ClientHostUserTake success */ - success?: (boolean|null); - } - - /** Represents a ClientHostUserTake. */ - class ClientHostUserTake implements IClientHostUserTake { - - /** - * Constructs a new ClientHostUserTake. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientHostUserTake); - - /** ClientHostUserTake userId. */ - public userId: string; - - /** ClientHostUserTake id. */ - public id: string; - - /** ClientHostUserTake success. */ - public success: boolean; - - /** - * Creates a new ClientHostUserTake instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientHostUserTake instance - */ - public static create(properties?: NT.IClientHostUserTake): NT.ClientHostUserTake; - - /** - * Encodes the specified ClientHostUserTake message. Does not implicitly {@link NT.ClientHostUserTake.verify|verify} messages. - * @param message ClientHostUserTake message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientHostUserTake, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientHostUserTake message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientHostUserTake - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientHostUserTake; - - /** - * Verifies a ClientHostUserTake message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientHostUserTake message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientHostUserTake - */ - public static fromObject(object: { [k: string]: any }): NT.ClientHostUserTake; - - /** - * Creates a plain object from a ClientHostUserTake message. Also converts values to other types if specified. - * @param message ClientHostUserTake - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientHostUserTake, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientHostUserTake to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerHostUserTake. */ - interface IServerHostUserTake { - - /** ServerHostUserTake userId */ - userId?: (string|null); - - /** ServerHostUserTake id */ - id?: (string|null); - - /** ServerHostUserTake success */ - success?: (boolean|null); - } - - /** Represents a ServerHostUserTake. */ - class ServerHostUserTake implements IServerHostUserTake { - - /** - * Constructs a new ServerHostUserTake. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerHostUserTake); - - /** ServerHostUserTake userId. */ - public userId: string; - - /** ServerHostUserTake id. */ - public id: string; - - /** ServerHostUserTake success. */ - public success: boolean; - - /** - * Creates a new ServerHostUserTake instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerHostUserTake instance - */ - public static create(properties?: NT.IServerHostUserTake): NT.ServerHostUserTake; - - /** - * Encodes the specified ServerHostUserTake message. Does not implicitly {@link NT.ServerHostUserTake.verify|verify} messages. - * @param message ServerHostUserTake message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerHostUserTake, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerHostUserTake message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerHostUserTake - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerHostUserTake; - - /** - * Verifies a ServerHostUserTake message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerHostUserTake message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerHostUserTake - */ - public static fromObject(object: { [k: string]: any }): NT.ServerHostUserTake; - - /** - * Creates a plain object from a ServerHostUserTake message. Also converts values to other types if specified. - * @param message ServerHostUserTake - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerHostUserTake, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerHostUserTake to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientHostUserTakeGold. */ - interface IClientHostUserTakeGold { - - /** ClientHostUserTakeGold userId */ - userId?: (string|null); - - /** ClientHostUserTakeGold amount */ - amount?: (number|null); - - /** ClientHostUserTakeGold success */ - success?: (boolean|null); - } - - /** Represents a ClientHostUserTakeGold. */ - class ClientHostUserTakeGold implements IClientHostUserTakeGold { - - /** - * Constructs a new ClientHostUserTakeGold. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientHostUserTakeGold); - - /** ClientHostUserTakeGold userId. */ - public userId: string; - - /** ClientHostUserTakeGold amount. */ - public amount: number; - - /** ClientHostUserTakeGold success. */ - public success: boolean; - - /** - * Creates a new ClientHostUserTakeGold instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientHostUserTakeGold instance - */ - public static create(properties?: NT.IClientHostUserTakeGold): NT.ClientHostUserTakeGold; - - /** - * Encodes the specified ClientHostUserTakeGold message. Does not implicitly {@link NT.ClientHostUserTakeGold.verify|verify} messages. - * @param message ClientHostUserTakeGold message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientHostUserTakeGold, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientHostUserTakeGold message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientHostUserTakeGold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientHostUserTakeGold; - - /** - * Verifies a ClientHostUserTakeGold message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientHostUserTakeGold message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientHostUserTakeGold - */ - public static fromObject(object: { [k: string]: any }): NT.ClientHostUserTakeGold; - - /** - * Creates a plain object from a ClientHostUserTakeGold message. Also converts values to other types if specified. - * @param message ClientHostUserTakeGold - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientHostUserTakeGold, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientHostUserTakeGold to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerHostUserTakeGold. */ - interface IServerHostUserTakeGold { - - /** ServerHostUserTakeGold userId */ - userId?: (string|null); - - /** ServerHostUserTakeGold amount */ - amount?: (number|null); - - /** ServerHostUserTakeGold success */ - success?: (boolean|null); - } - - /** Represents a ServerHostUserTakeGold. */ - class ServerHostUserTakeGold implements IServerHostUserTakeGold { - - /** - * Constructs a new ServerHostUserTakeGold. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerHostUserTakeGold); - - /** ServerHostUserTakeGold userId. */ - public userId: string; - - /** ServerHostUserTakeGold amount. */ - public amount: number; - - /** ServerHostUserTakeGold success. */ - public success: boolean; - - /** - * Creates a new ServerHostUserTakeGold instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerHostUserTakeGold instance - */ - public static create(properties?: NT.IServerHostUserTakeGold): NT.ServerHostUserTakeGold; - - /** - * Encodes the specified ServerHostUserTakeGold message. Does not implicitly {@link NT.ServerHostUserTakeGold.verify|verify} messages. - * @param message ServerHostUserTakeGold message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerHostUserTakeGold, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerHostUserTakeGold message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerHostUserTakeGold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerHostUserTakeGold; - - /** - * Verifies a ServerHostUserTakeGold message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerHostUserTakeGold message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerHostUserTakeGold - */ - public static fromObject(object: { [k: string]: any }): NT.ServerHostUserTakeGold; - - /** - * Creates a plain object from a ServerHostUserTakeGold message. Also converts values to other types if specified. - * @param message ServerHostUserTakeGold - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerHostUserTakeGold, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerHostUserTakeGold to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerAddGold. */ - interface IClientPlayerAddGold { - - /** ClientPlayerAddGold amount */ - amount?: (number|null); - } - - /** Represents a ClientPlayerAddGold. */ - class ClientPlayerAddGold implements IClientPlayerAddGold { - - /** - * Constructs a new ClientPlayerAddGold. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerAddGold); - - /** ClientPlayerAddGold amount. */ - public amount: number; - - /** - * Creates a new ClientPlayerAddGold instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerAddGold instance - */ - public static create(properties?: NT.IClientPlayerAddGold): NT.ClientPlayerAddGold; - - /** - * Encodes the specified ClientPlayerAddGold message. Does not implicitly {@link NT.ClientPlayerAddGold.verify|verify} messages. - * @param message ClientPlayerAddGold message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerAddGold, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerAddGold message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerAddGold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerAddGold; - - /** - * Verifies a ClientPlayerAddGold message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerAddGold message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerAddGold - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerAddGold; - - /** - * Creates a plain object from a ClientPlayerAddGold message. Also converts values to other types if specified. - * @param message ClientPlayerAddGold - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerAddGold, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerAddGold to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerAddGold. */ - interface IServerPlayerAddGold { - - /** ServerPlayerAddGold userId */ - userId?: (string|null); - - /** ServerPlayerAddGold amount */ - amount?: (number|null); - } - - /** Represents a ServerPlayerAddGold. */ - class ServerPlayerAddGold implements IServerPlayerAddGold { - - /** - * Constructs a new ServerPlayerAddGold. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerAddGold); - - /** ServerPlayerAddGold userId. */ - public userId: string; - - /** ServerPlayerAddGold amount. */ - public amount: number; - - /** - * Creates a new ServerPlayerAddGold instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerAddGold instance - */ - public static create(properties?: NT.IServerPlayerAddGold): NT.ServerPlayerAddGold; - - /** - * Encodes the specified ServerPlayerAddGold message. Does not implicitly {@link NT.ServerPlayerAddGold.verify|verify} messages. - * @param message ServerPlayerAddGold message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerAddGold, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerAddGold message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerAddGold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerAddGold; - - /** - * Verifies a ServerPlayerAddGold message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerAddGold message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerAddGold - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerAddGold; - - /** - * Creates a plain object from a ServerPlayerAddGold message. Also converts values to other types if specified. - * @param message ServerPlayerAddGold - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerAddGold, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerAddGold to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerTakeGold. */ - interface IClientPlayerTakeGold { - - /** ClientPlayerTakeGold amount */ - amount?: (number|null); - } - - /** Represents a ClientPlayerTakeGold. */ - class ClientPlayerTakeGold implements IClientPlayerTakeGold { - - /** - * Constructs a new ClientPlayerTakeGold. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerTakeGold); - - /** ClientPlayerTakeGold amount. */ - public amount: number; - - /** - * Creates a new ClientPlayerTakeGold instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerTakeGold instance - */ - public static create(properties?: NT.IClientPlayerTakeGold): NT.ClientPlayerTakeGold; - - /** - * Encodes the specified ClientPlayerTakeGold message. Does not implicitly {@link NT.ClientPlayerTakeGold.verify|verify} messages. - * @param message ClientPlayerTakeGold message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerTakeGold, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerTakeGold message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerTakeGold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerTakeGold; - - /** - * Verifies a ClientPlayerTakeGold message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerTakeGold message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerTakeGold - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerTakeGold; - - /** - * Creates a plain object from a ClientPlayerTakeGold message. Also converts values to other types if specified. - * @param message ClientPlayerTakeGold - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerTakeGold, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerTakeGold to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerTakeGold. */ - interface IServerPlayerTakeGold { - - /** ServerPlayerTakeGold userId */ - userId?: (string|null); - - /** ServerPlayerTakeGold amount */ - amount?: (number|null); - } - - /** Represents a ServerPlayerTakeGold. */ - class ServerPlayerTakeGold implements IServerPlayerTakeGold { - - /** - * Constructs a new ServerPlayerTakeGold. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerTakeGold); - - /** ServerPlayerTakeGold userId. */ - public userId: string; - - /** ServerPlayerTakeGold amount. */ - public amount: number; - - /** - * Creates a new ServerPlayerTakeGold instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerTakeGold instance - */ - public static create(properties?: NT.IServerPlayerTakeGold): NT.ServerPlayerTakeGold; - - /** - * Encodes the specified ServerPlayerTakeGold message. Does not implicitly {@link NT.ServerPlayerTakeGold.verify|verify} messages. - * @param message ServerPlayerTakeGold message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerTakeGold, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerTakeGold message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerTakeGold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerTakeGold; - - /** - * Verifies a ServerPlayerTakeGold message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerTakeGold message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerTakeGold - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerTakeGold; - - /** - * Creates a plain object from a ServerPlayerTakeGold message. Also converts values to other types if specified. - * @param message ServerPlayerTakeGold - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerTakeGold, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerTakeGold to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerAddItem. */ - interface IClientPlayerAddItem { - - /** ClientPlayerAddItem spells */ - spells?: (NT.ClientPlayerAddItem.ISpells|null); - - /** ClientPlayerAddItem wands */ - wands?: (NT.ClientPlayerAddItem.IWands|null); - - /** ClientPlayerAddItem flasks */ - flasks?: (NT.ClientPlayerAddItem.IItems|null); - - /** ClientPlayerAddItem objects */ - objects?: (NT.ClientPlayerAddItem.IEntities|null); - } - - /** Represents a ClientPlayerAddItem. */ - class ClientPlayerAddItem implements IClientPlayerAddItem { - - /** - * Constructs a new ClientPlayerAddItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerAddItem); - - /** ClientPlayerAddItem spells. */ - public spells?: (NT.ClientPlayerAddItem.ISpells|null); - - /** ClientPlayerAddItem wands. */ - public wands?: (NT.ClientPlayerAddItem.IWands|null); - - /** ClientPlayerAddItem flasks. */ - public flasks?: (NT.ClientPlayerAddItem.IItems|null); - - /** ClientPlayerAddItem objects. */ - public objects?: (NT.ClientPlayerAddItem.IEntities|null); - - /** ClientPlayerAddItem item. */ - public item?: ("spells"|"wands"|"flasks"|"objects"); - - /** - * Creates a new ClientPlayerAddItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerAddItem instance - */ - public static create(properties?: NT.IClientPlayerAddItem): NT.ClientPlayerAddItem; - - /** - * Encodes the specified ClientPlayerAddItem message. Does not implicitly {@link NT.ClientPlayerAddItem.verify|verify} messages. - * @param message ClientPlayerAddItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerAddItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerAddItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerAddItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerAddItem; - - /** - * Verifies a ClientPlayerAddItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerAddItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerAddItem - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerAddItem; - - /** - * Creates a plain object from a ClientPlayerAddItem message. Also converts values to other types if specified. - * @param message ClientPlayerAddItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerAddItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerAddItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ClientPlayerAddItem { - - /** Properties of a Spells. */ - interface ISpells { - - /** Spells list */ - list?: (NT.ISpell[]|null); - } - - /** Represents a Spells. */ - class Spells implements ISpells { - - /** - * Constructs a new Spells. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerAddItem.ISpells); - - /** Spells list. */ - public list: NT.ISpell[]; - - /** - * Creates a new Spells instance using the specified properties. - * @param [properties] Properties to set - * @returns Spells instance - */ - public static create(properties?: NT.ClientPlayerAddItem.ISpells): NT.ClientPlayerAddItem.Spells; - - /** - * Encodes the specified Spells message. Does not implicitly {@link NT.ClientPlayerAddItem.Spells.verify|verify} messages. - * @param message Spells message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerAddItem.ISpells, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Spells message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Spells - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerAddItem.Spells; - - /** - * Verifies a Spells message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Spells message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Spells - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerAddItem.Spells; - - /** - * Creates a plain object from a Spells message. Also converts values to other types if specified. - * @param message Spells - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerAddItem.Spells, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Spells to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Wands. */ - interface IWands { - - /** Wands list */ - list?: (NT.IWand[]|null); - } - - /** Represents a Wands. */ - class Wands implements IWands { - - /** - * Constructs a new Wands. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerAddItem.IWands); - - /** Wands list. */ - public list: NT.IWand[]; - - /** - * Creates a new Wands instance using the specified properties. - * @param [properties] Properties to set - * @returns Wands instance - */ - public static create(properties?: NT.ClientPlayerAddItem.IWands): NT.ClientPlayerAddItem.Wands; - - /** - * Encodes the specified Wands message. Does not implicitly {@link NT.ClientPlayerAddItem.Wands.verify|verify} messages. - * @param message Wands message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerAddItem.IWands, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Wands message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Wands - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerAddItem.Wands; - - /** - * Verifies a Wands message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Wands message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Wands - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerAddItem.Wands; - - /** - * Creates a plain object from a Wands message. Also converts values to other types if specified. - * @param message Wands - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerAddItem.Wands, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Wands to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an Items. */ - interface IItems { - - /** Items list */ - list?: (NT.IItem[]|null); - } - - /** Represents an Items. */ - class Items implements IItems { - - /** - * Constructs a new Items. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerAddItem.IItems); - - /** Items list. */ - public list: NT.IItem[]; - - /** - * Creates a new Items instance using the specified properties. - * @param [properties] Properties to set - * @returns Items instance - */ - public static create(properties?: NT.ClientPlayerAddItem.IItems): NT.ClientPlayerAddItem.Items; - - /** - * Encodes the specified Items message. Does not implicitly {@link NT.ClientPlayerAddItem.Items.verify|verify} messages. - * @param message Items message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerAddItem.IItems, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Items message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Items - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerAddItem.Items; - - /** - * Verifies an Items message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Items message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Items - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerAddItem.Items; - - /** - * Creates a plain object from an Items message. Also converts values to other types if specified. - * @param message Items - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerAddItem.Items, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Items to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an Entities. */ - interface IEntities { - - /** Entities list */ - list?: (NT.IEntityItem[]|null); - } - - /** Represents an Entities. */ - class Entities implements IEntities { - - /** - * Constructs a new Entities. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerAddItem.IEntities); - - /** Entities list. */ - public list: NT.IEntityItem[]; - - /** - * Creates a new Entities instance using the specified properties. - * @param [properties] Properties to set - * @returns Entities instance - */ - public static create(properties?: NT.ClientPlayerAddItem.IEntities): NT.ClientPlayerAddItem.Entities; - - /** - * Encodes the specified Entities message. Does not implicitly {@link NT.ClientPlayerAddItem.Entities.verify|verify} messages. - * @param message Entities message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerAddItem.IEntities, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Entities message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Entities - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerAddItem.Entities; - - /** - * Verifies an Entities message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Entities message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Entities - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerAddItem.Entities; - - /** - * Creates a plain object from an Entities message. Also converts values to other types if specified. - * @param message Entities - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerAddItem.Entities, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Entities to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerPlayerAddItem. */ - interface IServerPlayerAddItem { - - /** ServerPlayerAddItem userId */ - userId?: (string|null); - - /** ServerPlayerAddItem spells */ - spells?: (NT.ServerPlayerAddItem.ISpells|null); - - /** ServerPlayerAddItem wands */ - wands?: (NT.ServerPlayerAddItem.IWands|null); - - /** ServerPlayerAddItem flasks */ - flasks?: (NT.ServerPlayerAddItem.IItems|null); - - /** ServerPlayerAddItem objects */ - objects?: (NT.ServerPlayerAddItem.IEntities|null); - } - - /** Represents a ServerPlayerAddItem. */ - class ServerPlayerAddItem implements IServerPlayerAddItem { - - /** - * Constructs a new ServerPlayerAddItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerAddItem); - - /** ServerPlayerAddItem userId. */ - public userId: string; - - /** ServerPlayerAddItem spells. */ - public spells?: (NT.ServerPlayerAddItem.ISpells|null); - - /** ServerPlayerAddItem wands. */ - public wands?: (NT.ServerPlayerAddItem.IWands|null); - - /** ServerPlayerAddItem flasks. */ - public flasks?: (NT.ServerPlayerAddItem.IItems|null); - - /** ServerPlayerAddItem objects. */ - public objects?: (NT.ServerPlayerAddItem.IEntities|null); - - /** ServerPlayerAddItem item. */ - public item?: ("spells"|"wands"|"flasks"|"objects"); - - /** - * Creates a new ServerPlayerAddItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerAddItem instance - */ - public static create(properties?: NT.IServerPlayerAddItem): NT.ServerPlayerAddItem; - - /** - * Encodes the specified ServerPlayerAddItem message. Does not implicitly {@link NT.ServerPlayerAddItem.verify|verify} messages. - * @param message ServerPlayerAddItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerAddItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerAddItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerAddItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerAddItem; - - /** - * Verifies a ServerPlayerAddItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerAddItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerAddItem - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerAddItem; - - /** - * Creates a plain object from a ServerPlayerAddItem message. Also converts values to other types if specified. - * @param message ServerPlayerAddItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerAddItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerAddItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerPlayerAddItem { - - /** Properties of a Spells. */ - interface ISpells { - - /** Spells list */ - list?: (NT.ISpell[]|null); - } - - /** Represents a Spells. */ - class Spells implements ISpells { - - /** - * Constructs a new Spells. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerAddItem.ISpells); - - /** Spells list. */ - public list: NT.ISpell[]; - - /** - * Creates a new Spells instance using the specified properties. - * @param [properties] Properties to set - * @returns Spells instance - */ - public static create(properties?: NT.ServerPlayerAddItem.ISpells): NT.ServerPlayerAddItem.Spells; - - /** - * Encodes the specified Spells message. Does not implicitly {@link NT.ServerPlayerAddItem.Spells.verify|verify} messages. - * @param message Spells message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerAddItem.ISpells, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Spells message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Spells - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerAddItem.Spells; - - /** - * Verifies a Spells message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Spells message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Spells - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerAddItem.Spells; - - /** - * Creates a plain object from a Spells message. Also converts values to other types if specified. - * @param message Spells - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerAddItem.Spells, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Spells to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Wands. */ - interface IWands { - - /** Wands list */ - list?: (NT.IWand[]|null); - } - - /** Represents a Wands. */ - class Wands implements IWands { - - /** - * Constructs a new Wands. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerAddItem.IWands); - - /** Wands list. */ - public list: NT.IWand[]; - - /** - * Creates a new Wands instance using the specified properties. - * @param [properties] Properties to set - * @returns Wands instance - */ - public static create(properties?: NT.ServerPlayerAddItem.IWands): NT.ServerPlayerAddItem.Wands; - - /** - * Encodes the specified Wands message. Does not implicitly {@link NT.ServerPlayerAddItem.Wands.verify|verify} messages. - * @param message Wands message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerAddItem.IWands, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Wands message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Wands - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerAddItem.Wands; - - /** - * Verifies a Wands message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Wands message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Wands - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerAddItem.Wands; - - /** - * Creates a plain object from a Wands message. Also converts values to other types if specified. - * @param message Wands - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerAddItem.Wands, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Wands to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an Items. */ - interface IItems { - - /** Items list */ - list?: (NT.IItem[]|null); - } - - /** Represents an Items. */ - class Items implements IItems { - - /** - * Constructs a new Items. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerAddItem.IItems); - - /** Items list. */ - public list: NT.IItem[]; - - /** - * Creates a new Items instance using the specified properties. - * @param [properties] Properties to set - * @returns Items instance - */ - public static create(properties?: NT.ServerPlayerAddItem.IItems): NT.ServerPlayerAddItem.Items; - - /** - * Encodes the specified Items message. Does not implicitly {@link NT.ServerPlayerAddItem.Items.verify|verify} messages. - * @param message Items message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerAddItem.IItems, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Items message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Items - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerAddItem.Items; - - /** - * Verifies an Items message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Items message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Items - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerAddItem.Items; - - /** - * Creates a plain object from an Items message. Also converts values to other types if specified. - * @param message Items - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerAddItem.Items, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Items to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an Entities. */ - interface IEntities { - - /** Entities list */ - list?: (NT.IEntityItem[]|null); - } - - /** Represents an Entities. */ - class Entities implements IEntities { - - /** - * Constructs a new Entities. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerAddItem.IEntities); - - /** Entities list. */ - public list: NT.IEntityItem[]; - - /** - * Creates a new Entities instance using the specified properties. - * @param [properties] Properties to set - * @returns Entities instance - */ - public static create(properties?: NT.ServerPlayerAddItem.IEntities): NT.ServerPlayerAddItem.Entities; - - /** - * Encodes the specified Entities message. Does not implicitly {@link NT.ServerPlayerAddItem.Entities.verify|verify} messages. - * @param message Entities message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerAddItem.IEntities, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Entities message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Entities - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerAddItem.Entities; - - /** - * Verifies an Entities message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Entities message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Entities - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerAddItem.Entities; - - /** - * Creates a plain object from an Entities message. Also converts values to other types if specified. - * @param message Entities - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerAddItem.Entities, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Entities to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ClientPlayerTakeItem. */ - interface IClientPlayerTakeItem { - - /** ClientPlayerTakeItem id */ - id?: (string|null); - } - - /** Represents a ClientPlayerTakeItem. */ - class ClientPlayerTakeItem implements IClientPlayerTakeItem { - - /** - * Constructs a new ClientPlayerTakeItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerTakeItem); - - /** ClientPlayerTakeItem id. */ - public id: string; - - /** - * Creates a new ClientPlayerTakeItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerTakeItem instance - */ - public static create(properties?: NT.IClientPlayerTakeItem): NT.ClientPlayerTakeItem; - - /** - * Encodes the specified ClientPlayerTakeItem message. Does not implicitly {@link NT.ClientPlayerTakeItem.verify|verify} messages. - * @param message ClientPlayerTakeItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerTakeItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerTakeItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerTakeItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerTakeItem; - - /** - * Verifies a ClientPlayerTakeItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerTakeItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerTakeItem - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerTakeItem; - - /** - * Creates a plain object from a ClientPlayerTakeItem message. Also converts values to other types if specified. - * @param message ClientPlayerTakeItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerTakeItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerTakeItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerTakeItem. */ - interface IServerPlayerTakeItem { - - /** ServerPlayerTakeItem userId */ - userId?: (string|null); - - /** ServerPlayerTakeItem id */ - id?: (string|null); - } - - /** Represents a ServerPlayerTakeItem. */ - class ServerPlayerTakeItem implements IServerPlayerTakeItem { - - /** - * Constructs a new ServerPlayerTakeItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerTakeItem); - - /** ServerPlayerTakeItem userId. */ - public userId: string; - - /** ServerPlayerTakeItem id. */ - public id: string; - - /** - * Creates a new ServerPlayerTakeItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerTakeItem instance - */ - public static create(properties?: NT.IServerPlayerTakeItem): NT.ServerPlayerTakeItem; - - /** - * Encodes the specified ServerPlayerTakeItem message. Does not implicitly {@link NT.ServerPlayerTakeItem.verify|verify} messages. - * @param message ServerPlayerTakeItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerTakeItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerTakeItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerTakeItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerTakeItem; - - /** - * Verifies a ServerPlayerTakeItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerTakeItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerTakeItem - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerTakeItem; - - /** - * Creates a plain object from a ServerPlayerTakeItem message. Also converts values to other types if specified. - * @param message ServerPlayerTakeItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerTakeItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerTakeItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientChat. */ - interface IClientChat { - - /** ClientChat message */ - message?: (string|null); - } - - /** Represents a ClientChat. */ - class ClientChat implements IClientChat { - - /** - * Constructs a new ClientChat. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientChat); - - /** ClientChat message. */ - public message: string; - - /** - * Creates a new ClientChat instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientChat instance - */ - public static create(properties?: NT.IClientChat): NT.ClientChat; - - /** - * Encodes the specified ClientChat message. Does not implicitly {@link NT.ClientChat.verify|verify} messages. - * @param message ClientChat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientChat, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientChat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientChat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientChat; - - /** - * Verifies a ClientChat message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientChat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientChat - */ - public static fromObject(object: { [k: string]: any }): NT.ClientChat; - - /** - * Creates a plain object from a ClientChat message. Also converts values to other types if specified. - * @param message ClientChat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientChat, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientChat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerChat. */ - interface IServerChat { - - /** ServerChat id */ - id?: (string|null); - - /** ServerChat userId */ - userId?: (string|null); - - /** ServerChat name */ - name?: (string|null); - - /** ServerChat message */ - message?: (string|null); - } - - /** Represents a ServerChat. */ - class ServerChat implements IServerChat { - - /** - * Constructs a new ServerChat. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerChat); - - /** ServerChat id. */ - public id: string; - - /** ServerChat userId. */ - public userId: string; - - /** ServerChat name. */ - public name: string; - - /** ServerChat message. */ - public message: string; - - /** - * Creates a new ServerChat instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerChat instance - */ - public static create(properties?: NT.IServerChat): NT.ServerChat; - - /** - * Encodes the specified ServerChat message. Does not implicitly {@link NT.ServerChat.verify|verify} messages. - * @param message ServerChat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerChat, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerChat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerChat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerChat; - - /** - * Verifies a ServerChat message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerChat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerChat - */ - public static fromObject(object: { [k: string]: any }): NT.ServerChat; - - /** - * Creates a plain object from a ServerChat message. Also converts values to other types if specified. - * @param message ServerChat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerChat, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerChat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerStatsUpdate. */ - interface IServerStatsUpdate { - - /** ServerStatsUpdate data */ - data?: (string|null); - } - - /** Represents a ServerStatsUpdate. */ - class ServerStatsUpdate implements IServerStatsUpdate { - - /** - * Constructs a new ServerStatsUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerStatsUpdate); - - /** ServerStatsUpdate data. */ - public data: string; - - /** - * Creates a new ServerStatsUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerStatsUpdate instance - */ - public static create(properties?: NT.IServerStatsUpdate): NT.ServerStatsUpdate; - - /** - * Encodes the specified ServerStatsUpdate message. Does not implicitly {@link NT.ServerStatsUpdate.verify|verify} messages. - * @param message ServerStatsUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerStatsUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerStatsUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerStatsUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerStatsUpdate; - - /** - * Verifies a ServerStatsUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerStatsUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerStatsUpdate - */ - public static fromObject(object: { [k: string]: any }): NT.ServerStatsUpdate; - - /** - * Creates a plain object from a ServerStatsUpdate message. Also converts values to other types if specified. - * @param message ServerStatsUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerStatsUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerStatsUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerPickup. */ - interface IClientPlayerPickup { - - /** ClientPlayerPickup heart */ - heart?: (NT.ClientPlayerPickup.IHeartPickup|null); - - /** ClientPlayerPickup orb */ - orb?: (NT.ClientPlayerPickup.IOrbPickup|null); - } - - /** Represents a ClientPlayerPickup. */ - class ClientPlayerPickup implements IClientPlayerPickup { - - /** - * Constructs a new ClientPlayerPickup. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerPickup); - - /** ClientPlayerPickup heart. */ - public heart?: (NT.ClientPlayerPickup.IHeartPickup|null); - - /** ClientPlayerPickup orb. */ - public orb?: (NT.ClientPlayerPickup.IOrbPickup|null); - - /** ClientPlayerPickup kind. */ - public kind?: ("heart"|"orb"); - - /** - * Creates a new ClientPlayerPickup instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerPickup instance - */ - public static create(properties?: NT.IClientPlayerPickup): NT.ClientPlayerPickup; - - /** - * Encodes the specified ClientPlayerPickup message. Does not implicitly {@link NT.ClientPlayerPickup.verify|verify} messages. - * @param message ClientPlayerPickup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerPickup, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerPickup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerPickup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerPickup; - - /** - * Verifies a ClientPlayerPickup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerPickup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerPickup - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerPickup; - - /** - * Creates a plain object from a ClientPlayerPickup message. Also converts values to other types if specified. - * @param message ClientPlayerPickup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerPickup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerPickup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ClientPlayerPickup { - - /** Properties of a HeartPickup. */ - interface IHeartPickup { - - /** HeartPickup hpPerk */ - hpPerk?: (boolean|null); - } - - /** Represents a HeartPickup. */ - class HeartPickup implements IHeartPickup { - - /** - * Constructs a new HeartPickup. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerPickup.IHeartPickup); - - /** HeartPickup hpPerk. */ - public hpPerk: boolean; - - /** - * Creates a new HeartPickup instance using the specified properties. - * @param [properties] Properties to set - * @returns HeartPickup instance - */ - public static create(properties?: NT.ClientPlayerPickup.IHeartPickup): NT.ClientPlayerPickup.HeartPickup; - - /** - * Encodes the specified HeartPickup message. Does not implicitly {@link NT.ClientPlayerPickup.HeartPickup.verify|verify} messages. - * @param message HeartPickup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerPickup.IHeartPickup, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HeartPickup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HeartPickup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerPickup.HeartPickup; - - /** - * Verifies a HeartPickup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a HeartPickup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HeartPickup - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerPickup.HeartPickup; - - /** - * Creates a plain object from a HeartPickup message. Also converts values to other types if specified. - * @param message HeartPickup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerPickup.HeartPickup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this HeartPickup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an OrbPickup. */ - interface IOrbPickup { - - /** OrbPickup id */ - id?: (number|null); - } - - /** Represents an OrbPickup. */ - class OrbPickup implements IOrbPickup { - - /** - * Constructs a new OrbPickup. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientPlayerPickup.IOrbPickup); - - /** OrbPickup id. */ - public id: number; - - /** - * Creates a new OrbPickup instance using the specified properties. - * @param [properties] Properties to set - * @returns OrbPickup instance - */ - public static create(properties?: NT.ClientPlayerPickup.IOrbPickup): NT.ClientPlayerPickup.OrbPickup; - - /** - * Encodes the specified OrbPickup message. Does not implicitly {@link NT.ClientPlayerPickup.OrbPickup.verify|verify} messages. - * @param message OrbPickup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientPlayerPickup.IOrbPickup, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OrbPickup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrbPickup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerPickup.OrbPickup; - - /** - * Verifies an OrbPickup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an OrbPickup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrbPickup - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerPickup.OrbPickup; - - /** - * Creates a plain object from an OrbPickup message. Also converts values to other types if specified. - * @param message OrbPickup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerPickup.OrbPickup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OrbPickup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerPlayerPickup. */ - interface IServerPlayerPickup { - - /** ServerPlayerPickup userId */ - userId?: (string|null); - - /** ServerPlayerPickup heart */ - heart?: (NT.ServerPlayerPickup.IHeartPickup|null); - - /** ServerPlayerPickup orb */ - orb?: (NT.ServerPlayerPickup.IOrbPickup|null); - } - - /** Represents a ServerPlayerPickup. */ - class ServerPlayerPickup implements IServerPlayerPickup { - - /** - * Constructs a new ServerPlayerPickup. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerPickup); - - /** ServerPlayerPickup userId. */ - public userId: string; - - /** ServerPlayerPickup heart. */ - public heart?: (NT.ServerPlayerPickup.IHeartPickup|null); - - /** ServerPlayerPickup orb. */ - public orb?: (NT.ServerPlayerPickup.IOrbPickup|null); - - /** ServerPlayerPickup kind. */ - public kind?: ("heart"|"orb"); - - /** - * Creates a new ServerPlayerPickup instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerPickup instance - */ - public static create(properties?: NT.IServerPlayerPickup): NT.ServerPlayerPickup; - - /** - * Encodes the specified ServerPlayerPickup message. Does not implicitly {@link NT.ServerPlayerPickup.verify|verify} messages. - * @param message ServerPlayerPickup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerPickup, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerPickup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerPickup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerPickup; - - /** - * Verifies a ServerPlayerPickup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerPickup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerPickup - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerPickup; - - /** - * Creates a plain object from a ServerPlayerPickup message. Also converts values to other types if specified. - * @param message ServerPlayerPickup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerPickup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerPickup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerPlayerPickup { - - /** Properties of a HeartPickup. */ - interface IHeartPickup { - - /** HeartPickup hpPerk */ - hpPerk?: (boolean|null); - } - - /** Represents a HeartPickup. */ - class HeartPickup implements IHeartPickup { - - /** - * Constructs a new HeartPickup. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerPickup.IHeartPickup); - - /** HeartPickup hpPerk. */ - public hpPerk: boolean; - - /** - * Creates a new HeartPickup instance using the specified properties. - * @param [properties] Properties to set - * @returns HeartPickup instance - */ - public static create(properties?: NT.ServerPlayerPickup.IHeartPickup): NT.ServerPlayerPickup.HeartPickup; - - /** - * Encodes the specified HeartPickup message. Does not implicitly {@link NT.ServerPlayerPickup.HeartPickup.verify|verify} messages. - * @param message HeartPickup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerPickup.IHeartPickup, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HeartPickup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HeartPickup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerPickup.HeartPickup; - - /** - * Verifies a HeartPickup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a HeartPickup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HeartPickup - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerPickup.HeartPickup; - - /** - * Creates a plain object from a HeartPickup message. Also converts values to other types if specified. - * @param message HeartPickup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerPickup.HeartPickup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this HeartPickup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an OrbPickup. */ - interface IOrbPickup { - - /** OrbPickup id */ - id?: (number|null); - } - - /** Represents an OrbPickup. */ - class OrbPickup implements IOrbPickup { - - /** - * Constructs a new OrbPickup. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerPlayerPickup.IOrbPickup); - - /** OrbPickup id. */ - public id: number; - - /** - * Creates a new OrbPickup instance using the specified properties. - * @param [properties] Properties to set - * @returns OrbPickup instance - */ - public static create(properties?: NT.ServerPlayerPickup.IOrbPickup): NT.ServerPlayerPickup.OrbPickup; - - /** - * Encodes the specified OrbPickup message. Does not implicitly {@link NT.ServerPlayerPickup.OrbPickup.verify|verify} messages. - * @param message OrbPickup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerPlayerPickup.IOrbPickup, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OrbPickup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrbPickup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerPickup.OrbPickup; - - /** - * Verifies an OrbPickup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an OrbPickup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrbPickup - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerPickup.OrbPickup; - - /** - * Creates a plain object from an OrbPickup message. Also converts values to other types if specified. - * @param message OrbPickup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerPickup.OrbPickup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OrbPickup to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ClientNemesisPickupItem. */ - interface IClientNemesisPickupItem { - - /** ClientNemesisPickupItem gameId */ - gameId?: (string|null); - } - - /** Represents a ClientNemesisPickupItem. */ - class ClientNemesisPickupItem implements IClientNemesisPickupItem { - - /** - * Constructs a new ClientNemesisPickupItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientNemesisPickupItem); - - /** ClientNemesisPickupItem gameId. */ - public gameId: string; - - /** - * Creates a new ClientNemesisPickupItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientNemesisPickupItem instance - */ - public static create(properties?: NT.IClientNemesisPickupItem): NT.ClientNemesisPickupItem; - - /** - * Encodes the specified ClientNemesisPickupItem message. Does not implicitly {@link NT.ClientNemesisPickupItem.verify|verify} messages. - * @param message ClientNemesisPickupItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientNemesisPickupItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientNemesisPickupItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientNemesisPickupItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientNemesisPickupItem; - - /** - * Verifies a ClientNemesisPickupItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientNemesisPickupItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientNemesisPickupItem - */ - public static fromObject(object: { [k: string]: any }): NT.ClientNemesisPickupItem; - - /** - * Creates a plain object from a ClientNemesisPickupItem message. Also converts values to other types if specified. - * @param message ClientNemesisPickupItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientNemesisPickupItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientNemesisPickupItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerNemesisPickupItem. */ - interface IServerNemesisPickupItem { - - /** ServerNemesisPickupItem userId */ - userId?: (string|null); - - /** ServerNemesisPickupItem gameId */ - gameId?: (string|null); - } - - /** Represents a ServerNemesisPickupItem. */ - class ServerNemesisPickupItem implements IServerNemesisPickupItem { - - /** - * Constructs a new ServerNemesisPickupItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerNemesisPickupItem); - - /** ServerNemesisPickupItem userId. */ - public userId: string; - - /** ServerNemesisPickupItem gameId. */ - public gameId: string; - - /** - * Creates a new ServerNemesisPickupItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerNemesisPickupItem instance - */ - public static create(properties?: NT.IServerNemesisPickupItem): NT.ServerNemesisPickupItem; - - /** - * Encodes the specified ServerNemesisPickupItem message. Does not implicitly {@link NT.ServerNemesisPickupItem.verify|verify} messages. - * @param message ServerNemesisPickupItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerNemesisPickupItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerNemesisPickupItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerNemesisPickupItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerNemesisPickupItem; - - /** - * Verifies a ServerNemesisPickupItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerNemesisPickupItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerNemesisPickupItem - */ - public static fromObject(object: { [k: string]: any }): NT.ServerNemesisPickupItem; - - /** - * Creates a plain object from a ServerNemesisPickupItem message. Also converts values to other types if specified. - * @param message ServerNemesisPickupItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerNemesisPickupItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerNemesisPickupItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientNemesisAbility. */ - interface IClientNemesisAbility { - - /** ClientNemesisAbility gameId */ - gameId?: (string|null); - } - - /** Represents a ClientNemesisAbility. */ - class ClientNemesisAbility implements IClientNemesisAbility { - - /** - * Constructs a new ClientNemesisAbility. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientNemesisAbility); - - /** ClientNemesisAbility gameId. */ - public gameId: string; - - /** - * Creates a new ClientNemesisAbility instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientNemesisAbility instance - */ - public static create(properties?: NT.IClientNemesisAbility): NT.ClientNemesisAbility; - - /** - * Encodes the specified ClientNemesisAbility message. Does not implicitly {@link NT.ClientNemesisAbility.verify|verify} messages. - * @param message ClientNemesisAbility message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientNemesisAbility, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientNemesisAbility message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientNemesisAbility - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientNemesisAbility; - - /** - * Verifies a ClientNemesisAbility message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientNemesisAbility message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientNemesisAbility - */ - public static fromObject(object: { [k: string]: any }): NT.ClientNemesisAbility; - - /** - * Creates a plain object from a ClientNemesisAbility message. Also converts values to other types if specified. - * @param message ClientNemesisAbility - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientNemesisAbility, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientNemesisAbility to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerNemesisAbility. */ - interface IServerNemesisAbility { - - /** ServerNemesisAbility userId */ - userId?: (string|null); - - /** ServerNemesisAbility gameId */ - gameId?: (string|null); - } - - /** Represents a ServerNemesisAbility. */ - class ServerNemesisAbility implements IServerNemesisAbility { - - /** - * Constructs a new ServerNemesisAbility. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerNemesisAbility); - - /** ServerNemesisAbility userId. */ - public userId: string; - - /** ServerNemesisAbility gameId. */ - public gameId: string; - - /** - * Creates a new ServerNemesisAbility instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerNemesisAbility instance - */ - public static create(properties?: NT.IServerNemesisAbility): NT.ServerNemesisAbility; - - /** - * Encodes the specified ServerNemesisAbility message. Does not implicitly {@link NT.ServerNemesisAbility.verify|verify} messages. - * @param message ServerNemesisAbility message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerNemesisAbility, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerNemesisAbility message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerNemesisAbility - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerNemesisAbility; - - /** - * Verifies a ServerNemesisAbility message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerNemesisAbility message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerNemesisAbility - */ - public static fromObject(object: { [k: string]: any }): NT.ServerNemesisAbility; - - /** - * Creates a plain object from a ServerNemesisAbility message. Also converts values to other types if specified. - * @param message ServerNemesisAbility - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerNemesisAbility, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerNemesisAbility to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerDeath. */ - interface IClientPlayerDeath { - - /** ClientPlayerDeath isWin */ - isWin?: (boolean|null); - - /** ClientPlayerDeath gameTime */ - gameTime?: (number|null); - } - - /** Represents a ClientPlayerDeath. */ - class ClientPlayerDeath implements IClientPlayerDeath { - - /** - * Constructs a new ClientPlayerDeath. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerDeath); - - /** ClientPlayerDeath isWin. */ - public isWin: boolean; - - /** ClientPlayerDeath gameTime. */ - public gameTime?: (number|null); - - /** ClientPlayerDeath _gameTime. */ - public _gameTime?: "gameTime"; - - /** - * Creates a new ClientPlayerDeath instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerDeath instance - */ - public static create(properties?: NT.IClientPlayerDeath): NT.ClientPlayerDeath; - - /** - * Encodes the specified ClientPlayerDeath message. Does not implicitly {@link NT.ClientPlayerDeath.verify|verify} messages. - * @param message ClientPlayerDeath message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerDeath, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerDeath message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerDeath - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerDeath; - - /** - * Verifies a ClientPlayerDeath message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerDeath message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerDeath - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerDeath; - - /** - * Creates a plain object from a ClientPlayerDeath message. Also converts values to other types if specified. - * @param message ClientPlayerDeath - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerDeath, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerDeath to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerDeath. */ - interface IServerPlayerDeath { - - /** ServerPlayerDeath userId */ - userId?: (string|null); - - /** ServerPlayerDeath isWin */ - isWin?: (boolean|null); - - /** ServerPlayerDeath gameTime */ - gameTime?: (number|null); - } - - /** Represents a ServerPlayerDeath. */ - class ServerPlayerDeath implements IServerPlayerDeath { - - /** - * Constructs a new ServerPlayerDeath. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerDeath); - - /** ServerPlayerDeath userId. */ - public userId: string; - - /** ServerPlayerDeath isWin. */ - public isWin: boolean; - - /** ServerPlayerDeath gameTime. */ - public gameTime?: (number|null); - - /** ServerPlayerDeath _gameTime. */ - public _gameTime?: "gameTime"; - - /** - * Creates a new ServerPlayerDeath instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerDeath instance - */ - public static create(properties?: NT.IServerPlayerDeath): NT.ServerPlayerDeath; - - /** - * Encodes the specified ServerPlayerDeath message. Does not implicitly {@link NT.ServerPlayerDeath.verify|verify} messages. - * @param message ServerPlayerDeath message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerDeath, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerDeath message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerDeath - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerDeath; - - /** - * Verifies a ServerPlayerDeath message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerDeath message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerDeath - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerDeath; - - /** - * Creates a plain object from a ServerPlayerDeath message. Also converts values to other types if specified. - * @param message ServerPlayerDeath - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerDeath, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerDeath to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerNewGamePlus. */ - interface IClientPlayerNewGamePlus { - - /** ClientPlayerNewGamePlus amount */ - amount?: (number|null); - } - - /** Represents a ClientPlayerNewGamePlus. */ - class ClientPlayerNewGamePlus implements IClientPlayerNewGamePlus { - - /** - * Constructs a new ClientPlayerNewGamePlus. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerNewGamePlus); - - /** ClientPlayerNewGamePlus amount. */ - public amount: number; - - /** - * Creates a new ClientPlayerNewGamePlus instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerNewGamePlus instance - */ - public static create(properties?: NT.IClientPlayerNewGamePlus): NT.ClientPlayerNewGamePlus; - - /** - * Encodes the specified ClientPlayerNewGamePlus message. Does not implicitly {@link NT.ClientPlayerNewGamePlus.verify|verify} messages. - * @param message ClientPlayerNewGamePlus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerNewGamePlus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerNewGamePlus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerNewGamePlus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerNewGamePlus; - - /** - * Verifies a ClientPlayerNewGamePlus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerNewGamePlus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerNewGamePlus - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerNewGamePlus; - - /** - * Creates a plain object from a ClientPlayerNewGamePlus message. Also converts values to other types if specified. - * @param message ClientPlayerNewGamePlus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerNewGamePlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerNewGamePlus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerNewGamePlus. */ - interface IServerPlayerNewGamePlus { - - /** ServerPlayerNewGamePlus userId */ - userId?: (string|null); - - /** ServerPlayerNewGamePlus amount */ - amount?: (number|null); - } - - /** Represents a ServerPlayerNewGamePlus. */ - class ServerPlayerNewGamePlus implements IServerPlayerNewGamePlus { - - /** - * Constructs a new ServerPlayerNewGamePlus. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerNewGamePlus); - - /** ServerPlayerNewGamePlus userId. */ - public userId: string; - - /** ServerPlayerNewGamePlus amount. */ - public amount: number; - - /** - * Creates a new ServerPlayerNewGamePlus instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerNewGamePlus instance - */ - public static create(properties?: NT.IServerPlayerNewGamePlus): NT.ServerPlayerNewGamePlus; - - /** - * Encodes the specified ServerPlayerNewGamePlus message. Does not implicitly {@link NT.ServerPlayerNewGamePlus.verify|verify} messages. - * @param message ServerPlayerNewGamePlus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerNewGamePlus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerNewGamePlus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerNewGamePlus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerNewGamePlus; - - /** - * Verifies a ServerPlayerNewGamePlus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerNewGamePlus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerNewGamePlus - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerNewGamePlus; - - /** - * Creates a plain object from a ServerPlayerNewGamePlus message. Also converts values to other types if specified. - * @param message ServerPlayerNewGamePlus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerNewGamePlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerNewGamePlus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientPlayerSecretHourglass. */ - interface IClientPlayerSecretHourglass { - - /** ClientPlayerSecretHourglass material */ - material?: (string|null); - } - - /** Represents a ClientPlayerSecretHourglass. */ - class ClientPlayerSecretHourglass implements IClientPlayerSecretHourglass { - - /** - * Constructs a new ClientPlayerSecretHourglass. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientPlayerSecretHourglass); - - /** ClientPlayerSecretHourglass material. */ - public material: string; - - /** - * Creates a new ClientPlayerSecretHourglass instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientPlayerSecretHourglass instance - */ - public static create(properties?: NT.IClientPlayerSecretHourglass): NT.ClientPlayerSecretHourglass; - - /** - * Encodes the specified ClientPlayerSecretHourglass message. Does not implicitly {@link NT.ClientPlayerSecretHourglass.verify|verify} messages. - * @param message ClientPlayerSecretHourglass message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientPlayerSecretHourglass, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPlayerSecretHourglass message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientPlayerSecretHourglass - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientPlayerSecretHourglass; - - /** - * Verifies a ClientPlayerSecretHourglass message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientPlayerSecretHourglass message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientPlayerSecretHourglass - */ - public static fromObject(object: { [k: string]: any }): NT.ClientPlayerSecretHourglass; - - /** - * Creates a plain object from a ClientPlayerSecretHourglass message. Also converts values to other types if specified. - * @param message ClientPlayerSecretHourglass - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientPlayerSecretHourglass, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientPlayerSecretHourglass to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerPlayerSecretHourglass. */ - interface IServerPlayerSecretHourglass { - - /** ServerPlayerSecretHourglass userId */ - userId?: (string|null); - - /** ServerPlayerSecretHourglass material */ - material?: (string|null); - } - - /** Represents a ServerPlayerSecretHourglass. */ - class ServerPlayerSecretHourglass implements IServerPlayerSecretHourglass { - - /** - * Constructs a new ServerPlayerSecretHourglass. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerPlayerSecretHourglass); - - /** ServerPlayerSecretHourglass userId. */ - public userId: string; - - /** ServerPlayerSecretHourglass material. */ - public material: string; - - /** - * Creates a new ServerPlayerSecretHourglass instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerPlayerSecretHourglass instance - */ - public static create(properties?: NT.IServerPlayerSecretHourglass): NT.ServerPlayerSecretHourglass; - - /** - * Encodes the specified ServerPlayerSecretHourglass message. Does not implicitly {@link NT.ServerPlayerSecretHourglass.verify|verify} messages. - * @param message ServerPlayerSecretHourglass message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerPlayerSecretHourglass, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerPlayerSecretHourglass message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerPlayerSecretHourglass - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerPlayerSecretHourglass; - - /** - * Verifies a ServerPlayerSecretHourglass message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerPlayerSecretHourglass message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerPlayerSecretHourglass - */ - public static fromObject(object: { [k: string]: any }): NT.ServerPlayerSecretHourglass; - - /** - * Creates a plain object from a ServerPlayerSecretHourglass message. Also converts values to other types if specified. - * @param message ServerPlayerSecretHourglass - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerPlayerSecretHourglass, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerPlayerSecretHourglass to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientCustomModEvent. */ - interface IClientCustomModEvent { - - /** ClientCustomModEvent payload */ - payload?: (string|null); - } - - /** Represents a ClientCustomModEvent. */ - class ClientCustomModEvent implements IClientCustomModEvent { - - /** - * Constructs a new ClientCustomModEvent. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientCustomModEvent); - - /** ClientCustomModEvent payload. */ - public payload: string; - - /** - * Creates a new ClientCustomModEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientCustomModEvent instance - */ - public static create(properties?: NT.IClientCustomModEvent): NT.ClientCustomModEvent; - - /** - * Encodes the specified ClientCustomModEvent message. Does not implicitly {@link NT.ClientCustomModEvent.verify|verify} messages. - * @param message ClientCustomModEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientCustomModEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientCustomModEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientCustomModEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientCustomModEvent; - - /** - * Verifies a ClientCustomModEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientCustomModEvent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientCustomModEvent - */ - public static fromObject(object: { [k: string]: any }): NT.ClientCustomModEvent; - - /** - * Creates a plain object from a ClientCustomModEvent message. Also converts values to other types if specified. - * @param message ClientCustomModEvent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientCustomModEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientCustomModEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerCustomModEvent. */ - interface IServerCustomModEvent { - - /** ServerCustomModEvent userId */ - userId?: (string|null); - - /** ServerCustomModEvent payload */ - payload?: (string|null); - } - - /** Represents a ServerCustomModEvent. */ - class ServerCustomModEvent implements IServerCustomModEvent { - - /** - * Constructs a new ServerCustomModEvent. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerCustomModEvent); - - /** ServerCustomModEvent userId. */ - public userId: string; - - /** ServerCustomModEvent payload. */ - public payload: string; - - /** - * Creates a new ServerCustomModEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerCustomModEvent instance - */ - public static create(properties?: NT.IServerCustomModEvent): NT.ServerCustomModEvent; - - /** - * Encodes the specified ServerCustomModEvent message. Does not implicitly {@link NT.ServerCustomModEvent.verify|verify} messages. - * @param message ServerCustomModEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerCustomModEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerCustomModEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerCustomModEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerCustomModEvent; - - /** - * Verifies a ServerCustomModEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerCustomModEvent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerCustomModEvent - */ - public static fromObject(object: { [k: string]: any }): NT.ServerCustomModEvent; - - /** - * Creates a plain object from a ServerCustomModEvent message. Also converts values to other types if specified. - * @param message ServerCustomModEvent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerCustomModEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerCustomModEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRespawnPenalty. */ - interface IClientRespawnPenalty { - - /** ClientRespawnPenalty deaths */ - deaths?: (number|null); - } - - /** Represents a ClientRespawnPenalty. */ - class ClientRespawnPenalty implements IClientRespawnPenalty { - - /** - * Constructs a new ClientRespawnPenalty. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRespawnPenalty); - - /** ClientRespawnPenalty deaths. */ - public deaths: number; - - /** - * Creates a new ClientRespawnPenalty instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRespawnPenalty instance - */ - public static create(properties?: NT.IClientRespawnPenalty): NT.ClientRespawnPenalty; - - /** - * Encodes the specified ClientRespawnPenalty message. Does not implicitly {@link NT.ClientRespawnPenalty.verify|verify} messages. - * @param message ClientRespawnPenalty message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRespawnPenalty, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRespawnPenalty message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRespawnPenalty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRespawnPenalty; - - /** - * Verifies a ClientRespawnPenalty message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRespawnPenalty message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRespawnPenalty - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRespawnPenalty; - - /** - * Creates a plain object from a ClientRespawnPenalty message. Also converts values to other types if specified. - * @param message ClientRespawnPenalty - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRespawnPenalty, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRespawnPenalty to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerRespawnPenalty. */ - interface IServerRespawnPenalty { - - /** ServerRespawnPenalty userId */ - userId?: (string|null); - - /** ServerRespawnPenalty deaths */ - deaths?: (number|null); - } - - /** Represents a ServerRespawnPenalty. */ - class ServerRespawnPenalty implements IServerRespawnPenalty { - - /** - * Constructs a new ServerRespawnPenalty. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRespawnPenalty); - - /** ServerRespawnPenalty userId. */ - public userId: string; - - /** ServerRespawnPenalty deaths. */ - public deaths: number; - - /** - * Creates a new ServerRespawnPenalty instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRespawnPenalty instance - */ - public static create(properties?: NT.IServerRespawnPenalty): NT.ServerRespawnPenalty; - - /** - * Encodes the specified ServerRespawnPenalty message. Does not implicitly {@link NT.ServerRespawnPenalty.verify|verify} messages. - * @param message ServerRespawnPenalty message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRespawnPenalty, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRespawnPenalty message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRespawnPenalty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRespawnPenalty; - - /** - * Verifies a ServerRespawnPenalty message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRespawnPenalty message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRespawnPenalty - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRespawnPenalty; - - /** - * Creates a plain object from a ServerRespawnPenalty message. Also converts values to other types if specified. - * @param message ServerRespawnPenalty - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRespawnPenalty, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRespawnPenalty to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientAngerySteve. */ - interface IClientAngerySteve { - - /** ClientAngerySteve idk */ - idk?: (boolean|null); - } - - /** Represents a ClientAngerySteve. */ - class ClientAngerySteve implements IClientAngerySteve { - - /** - * Constructs a new ClientAngerySteve. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientAngerySteve); - - /** ClientAngerySteve idk. */ - public idk: boolean; - - /** - * Creates a new ClientAngerySteve instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientAngerySteve instance - */ - public static create(properties?: NT.IClientAngerySteve): NT.ClientAngerySteve; - - /** - * Encodes the specified ClientAngerySteve message. Does not implicitly {@link NT.ClientAngerySteve.verify|verify} messages. - * @param message ClientAngerySteve message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientAngerySteve, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientAngerySteve message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientAngerySteve - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientAngerySteve; - - /** - * Verifies a ClientAngerySteve message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientAngerySteve message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientAngerySteve - */ - public static fromObject(object: { [k: string]: any }): NT.ClientAngerySteve; - - /** - * Creates a plain object from a ClientAngerySteve message. Also converts values to other types if specified. - * @param message ClientAngerySteve - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientAngerySteve, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientAngerySteve to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerAngerySteve. */ - interface IServerAngerySteve { - - /** ServerAngerySteve userId */ - userId?: (string|null); - } - - /** Represents a ServerAngerySteve. */ - class ServerAngerySteve implements IServerAngerySteve { - - /** - * Constructs a new ServerAngerySteve. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerAngerySteve); - - /** ServerAngerySteve userId. */ - public userId: string; - - /** - * Creates a new ServerAngerySteve instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerAngerySteve instance - */ - public static create(properties?: NT.IServerAngerySteve): NT.ServerAngerySteve; - - /** - * Encodes the specified ServerAngerySteve message. Does not implicitly {@link NT.ServerAngerySteve.verify|verify} messages. - * @param message ServerAngerySteve message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerAngerySteve, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerAngerySteve message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerAngerySteve - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerAngerySteve; - - /** - * Verifies a ServerAngerySteve message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerAngerySteve message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerAngerySteve - */ - public static fromObject(object: { [k: string]: any }): NT.ServerAngerySteve; - - /** - * Creates a plain object from a ServerAngerySteve message. Also converts values to other types if specified. - * @param message ServerAngerySteve - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerAngerySteve, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerAngerySteve to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Wand. */ - interface IWand { - - /** Wand id */ - id?: (string|null); - - /** Wand stats */ - stats?: (NT.Wand.IWandStats|null); - - /** Wand alwaysCast */ - alwaysCast?: (NT.ISpell[]|null); - - /** Wand deck */ - deck?: (NT.ISpell[]|null); - - /** Wand sentBy */ - sentBy?: (string|null); - - /** Wand contributedBy */ - contributedBy?: (string|null); - } - - /** Represents a Wand. */ - class Wand implements IWand { - - /** - * Constructs a new Wand. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IWand); - - /** Wand id. */ - public id: string; - - /** Wand stats. */ - public stats?: (NT.Wand.IWandStats|null); - - /** Wand alwaysCast. */ - public alwaysCast: NT.ISpell[]; - - /** Wand deck. */ - public deck: NT.ISpell[]; - - /** Wand sentBy. */ - public sentBy?: (string|null); - - /** Wand contributedBy. */ - public contributedBy?: (string|null); - - /** Wand _sentBy. */ - public _sentBy?: "sentBy"; - - /** Wand _contributedBy. */ - public _contributedBy?: "contributedBy"; - - /** - * Creates a new Wand instance using the specified properties. - * @param [properties] Properties to set - * @returns Wand instance - */ - public static create(properties?: NT.IWand): NT.Wand; - - /** - * Encodes the specified Wand message. Does not implicitly {@link NT.Wand.verify|verify} messages. - * @param message Wand message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IWand, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Wand message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Wand - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Wand; - - /** - * Verifies a Wand message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Wand message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Wand - */ - public static fromObject(object: { [k: string]: any }): NT.Wand; - - /** - * Creates a plain object from a Wand message. Also converts values to other types if specified. - * @param message Wand - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Wand, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Wand to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Wand { - - /** Properties of a WandStats. */ - interface IWandStats { - - /** WandStats sprite */ - sprite?: (string|null); - - /** WandStats named */ - named?: (boolean|null); - - /** WandStats uiName */ - uiName?: (string|null); - - /** WandStats manaMax */ - manaMax?: (number|null); - - /** WandStats manaChargeSpeed */ - manaChargeSpeed?: (number|null); - - /** WandStats reloadTime */ - reloadTime?: (number|null); - - /** WandStats actionsPerRound */ - actionsPerRound?: (number|null); - - /** WandStats deckCapacity */ - deckCapacity?: (number|null); - - /** WandStats shuffleDeckWhenEmpty */ - shuffleDeckWhenEmpty?: (boolean|null); - - /** WandStats spreadDegrees */ - spreadDegrees?: (number|null); - - /** WandStats speedMultiplier */ - speedMultiplier?: (number|null); - - /** WandStats fireRateWait */ - fireRateWait?: (number|null); - - /** WandStats tipX */ - tipX?: (number|null); - - /** WandStats tipY */ - tipY?: (number|null); - - /** WandStats gripX */ - gripX?: (number|null); - - /** WandStats gripY */ - gripY?: (number|null); - } - - /** Represents a WandStats. */ - class WandStats implements IWandStats { - - /** - * Constructs a new WandStats. - * @param [properties] Properties to set - */ - constructor(properties?: NT.Wand.IWandStats); - - /** WandStats sprite. */ - public sprite: string; - - /** WandStats named. */ - public named: boolean; - - /** WandStats uiName. */ - public uiName: string; - - /** WandStats manaMax. */ - public manaMax: number; - - /** WandStats manaChargeSpeed. */ - public manaChargeSpeed: number; - - /** WandStats reloadTime. */ - public reloadTime: number; - - /** WandStats actionsPerRound. */ - public actionsPerRound: number; - - /** WandStats deckCapacity. */ - public deckCapacity: number; - - /** WandStats shuffleDeckWhenEmpty. */ - public shuffleDeckWhenEmpty: boolean; - - /** WandStats spreadDegrees. */ - public spreadDegrees: number; - - /** WandStats speedMultiplier. */ - public speedMultiplier: number; - - /** WandStats fireRateWait. */ - public fireRateWait: number; - - /** WandStats tipX. */ - public tipX: number; - - /** WandStats tipY. */ - public tipY: number; - - /** WandStats gripX. */ - public gripX: number; - - /** WandStats gripY. */ - public gripY: number; - - /** - * Creates a new WandStats instance using the specified properties. - * @param [properties] Properties to set - * @returns WandStats instance - */ - public static create(properties?: NT.Wand.IWandStats): NT.Wand.WandStats; - - /** - * Encodes the specified WandStats message. Does not implicitly {@link NT.Wand.WandStats.verify|verify} messages. - * @param message WandStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.Wand.IWandStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WandStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WandStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Wand.WandStats; - - /** - * Verifies a WandStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WandStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WandStats - */ - public static fromObject(object: { [k: string]: any }): NT.Wand.WandStats; - - /** - * Creates a plain object from a WandStats message. Also converts values to other types if specified. - * @param message WandStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Wand.WandStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WandStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a Spell. */ - interface ISpell { - - /** Spell id */ - id?: (string|null); - - /** Spell gameId */ - gameId?: (string|null); - - /** Spell sentBy */ - sentBy?: (string|null); - - /** Spell contributedBy */ - contributedBy?: (string|null); - - /** Spell usesRemaining */ - usesRemaining?: (number|null); - } - - /** Represents a Spell. */ - class Spell implements ISpell { - - /** - * Constructs a new Spell. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ISpell); - - /** Spell id. */ - public id: string; - - /** Spell gameId. */ - public gameId: string; - - /** Spell sentBy. */ - public sentBy?: (string|null); - - /** Spell contributedBy. */ - public contributedBy?: (string|null); - - /** Spell usesRemaining. */ - public usesRemaining: number; - - /** Spell _sentBy. */ - public _sentBy?: "sentBy"; - - /** Spell _contributedBy. */ - public _contributedBy?: "contributedBy"; - - /** - * Creates a new Spell instance using the specified properties. - * @param [properties] Properties to set - * @returns Spell instance - */ - public static create(properties?: NT.ISpell): NT.Spell; - - /** - * Encodes the specified Spell message. Does not implicitly {@link NT.Spell.verify|verify} messages. - * @param message Spell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ISpell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Spell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Spell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Spell; - - /** - * Verifies a Spell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Spell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Spell - */ - public static fromObject(object: { [k: string]: any }): NT.Spell; - - /** - * Creates a plain object from a Spell message. Also converts values to other types if specified. - * @param message Spell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Spell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Spell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an Item. */ - interface IItem { - - /** Item id */ - id?: (string|null); - - /** Item color */ - color?: (NT.Item.IColor|null); - - /** Item content */ - content?: (NT.Item.IMaterial[]|null); - - /** Item sentBy */ - sentBy?: (string|null); - - /** Item contributedBy */ - contributedBy?: (string|null); - - /** Item isChest */ - isChest?: (boolean|null); - - /** Item itemType */ - itemType?: (string|null); - } - - /** Represents an Item. */ - class Item implements IItem { - - /** - * Constructs a new Item. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IItem); - - /** Item id. */ - public id: string; - - /** Item color. */ - public color?: (NT.Item.IColor|null); - - /** Item content. */ - public content: NT.Item.IMaterial[]; - - /** Item sentBy. */ - public sentBy?: (string|null); - - /** Item contributedBy. */ - public contributedBy?: (string|null); - - /** Item isChest. */ - public isChest: boolean; - - /** Item itemType. */ - public itemType: string; - - /** Item _sentBy. */ - public _sentBy?: "sentBy"; - - /** Item _contributedBy. */ - public _contributedBy?: "contributedBy"; - - /** - * Creates a new Item instance using the specified properties. - * @param [properties] Properties to set - * @returns Item instance - */ - public static create(properties?: NT.IItem): NT.Item; - - /** - * Encodes the specified Item message. Does not implicitly {@link NT.Item.verify|verify} messages. - * @param message Item message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Item message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Item - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Item; - - /** - * Verifies an Item message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Item message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Item - */ - public static fromObject(object: { [k: string]: any }): NT.Item; - - /** - * Creates a plain object from an Item message. Also converts values to other types if specified. - * @param message Item - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Item, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Item to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Item { - - /** Properties of a Color. */ - interface IColor { - - /** Color r */ - r?: (number|null); - - /** Color g */ - g?: (number|null); - - /** Color b */ - b?: (number|null); - } - - /** Represents a Color. */ - class Color implements IColor { - - /** - * Constructs a new Color. - * @param [properties] Properties to set - */ - constructor(properties?: NT.Item.IColor); - - /** Color r. */ - public r: number; - - /** Color g. */ - public g: number; - - /** Color b. */ - public b: number; - - /** - * Creates a new Color instance using the specified properties. - * @param [properties] Properties to set - * @returns Color instance - */ - public static create(properties?: NT.Item.IColor): NT.Item.Color; - - /** - * Encodes the specified Color message. Does not implicitly {@link NT.Item.Color.verify|verify} messages. - * @param message Color message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.Item.IColor, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Color message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Color - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Item.Color; - - /** - * Verifies a Color message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Color message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Color - */ - public static fromObject(object: { [k: string]: any }): NT.Item.Color; - - /** - * Creates a plain object from a Color message. Also converts values to other types if specified. - * @param message Color - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Item.Color, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Color to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Material. */ - interface IMaterial { - - /** Material id */ - id?: (number|null); - - /** Material amount */ - amount?: (number|null); - } - - /** Represents a Material. */ - class Material implements IMaterial { - - /** - * Constructs a new Material. - * @param [properties] Properties to set - */ - constructor(properties?: NT.Item.IMaterial); - - /** Material id. */ - public id: number; - - /** Material amount. */ - public amount: number; - - /** - * Creates a new Material instance using the specified properties. - * @param [properties] Properties to set - * @returns Material instance - */ - public static create(properties?: NT.Item.IMaterial): NT.Item.Material; - - /** - * Encodes the specified Material message. Does not implicitly {@link NT.Item.Material.verify|verify} messages. - * @param message Material message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.Item.IMaterial, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Material message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Material - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.Item.Material; - - /** - * Verifies a Material message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Material message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Material - */ - public static fromObject(object: { [k: string]: any }): NT.Item.Material; - - /** - * Creates a plain object from a Material message. Also converts values to other types if specified. - * @param message Material - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.Item.Material, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Material to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an EntityItem. */ - interface IEntityItem { - - /** EntityItem id */ - id?: (string|null); - - /** EntityItem path */ - path?: (string|null); - - /** EntityItem sprite */ - sprite?: (string|null); - - /** EntityItem sentBy */ - sentBy?: (string|null); - } - - /** Represents an EntityItem. */ - class EntityItem implements IEntityItem { - - /** - * Constructs a new EntityItem. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IEntityItem); - - /** EntityItem id. */ - public id: string; - - /** EntityItem path. */ - public path: string; - - /** EntityItem sprite. */ - public sprite: string; - - /** EntityItem sentBy. */ - public sentBy?: (string|null); - - /** EntityItem _sentBy. */ - public _sentBy?: "sentBy"; - - /** - * Creates a new EntityItem instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityItem instance - */ - public static create(properties?: NT.IEntityItem): NT.EntityItem; - - /** - * Encodes the specified EntityItem message. Does not implicitly {@link NT.EntityItem.verify|verify} messages. - * @param message EntityItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IEntityItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EntityItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.EntityItem; - - /** - * Verifies an EntityItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EntityItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityItem - */ - public static fromObject(object: { [k: string]: any }): NT.EntityItem; - - /** - * Creates a plain object from an EntityItem message. Also converts values to other types if specified. - * @param message EntityItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.EntityItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EntityItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a LobbyAction. */ - interface ILobbyAction { - - /** LobbyAction cRoomCreate */ - cRoomCreate?: (NT.IClientRoomCreate|null); - - /** LobbyAction sRoomCreated */ - sRoomCreated?: (NT.IServerRoomCreated|null); - - /** LobbyAction sRoomCreateFailed */ - sRoomCreateFailed?: (NT.IServerRoomCreateFailed|null); - - /** LobbyAction cRoomUpdate */ - cRoomUpdate?: (NT.IClientRoomUpdate|null); - - /** LobbyAction sRoomUpdated */ - sRoomUpdated?: (NT.IServerRoomUpdated|null); - - /** LobbyAction sRoomUpdateFailed */ - sRoomUpdateFailed?: (NT.IServerRoomUpdateFailed|null); - - /** LobbyAction cRoomFlagsUpdate */ - cRoomFlagsUpdate?: (NT.IClientRoomFlagsUpdate|null); - - /** LobbyAction sRoomFlagsUpdated */ - sRoomFlagsUpdated?: (NT.IServerRoomFlagsUpdated|null); - - /** LobbyAction sRoomFlagsUpdateFailed */ - sRoomFlagsUpdateFailed?: (NT.IServerRoomFlagsUpdateFailed|null); - - /** LobbyAction cRoomDelete */ - cRoomDelete?: (NT.IClientRoomDelete|null); - - /** LobbyAction sRoomDeleted */ - sRoomDeleted?: (NT.IServerRoomDeleted|null); - - /** LobbyAction cJoinRoom */ - cJoinRoom?: (NT.IClientJoinRoom|null); - - /** LobbyAction sJoinRoomSuccess */ - sJoinRoomSuccess?: (NT.IServerJoinRoomSuccess|null); - - /** LobbyAction sJoinRoomFailed */ - sJoinRoomFailed?: (NT.IServerJoinRoomFailed|null); - - /** LobbyAction sUserJoinedRoom */ - sUserJoinedRoom?: (NT.IServerUserJoinedRoom|null); - - /** LobbyAction cLeaveRoom */ - cLeaveRoom?: (NT.IClientLeaveRoom|null); - - /** LobbyAction sUserLeftRoom */ - sUserLeftRoom?: (NT.IServerUserLeftRoom|null); - - /** LobbyAction cKickUser */ - cKickUser?: (NT.IClientKickUser|null); - - /** LobbyAction sUserKicked */ - sUserKicked?: (NT.IServerUserKicked|null); - - /** LobbyAction cBanUser */ - cBanUser?: (NT.IClientBanUser|null); - - /** LobbyAction sUserBanned */ - sUserBanned?: (NT.IServerUserBanned|null); - - /** LobbyAction cReadyState */ - cReadyState?: (NT.IClientReadyState|null); - - /** LobbyAction sUserReadyState */ - sUserReadyState?: (NT.IServerUserReadyState|null); - - /** LobbyAction cStartRun */ - cStartRun?: (NT.IClientStartRun|null); - - /** LobbyAction sHostStart */ - sHostStart?: (NT.IServerHostStart|null); - - /** LobbyAction cRequestRoomList */ - cRequestRoomList?: (NT.IClientRequestRoomList|null); - - /** LobbyAction sRoomList */ - sRoomList?: (NT.IServerRoomList|null); - - /** LobbyAction sDisconnected */ - sDisconnected?: (NT.IServerDisconnected|null); - - /** LobbyAction sRoomAddToList */ - sRoomAddToList?: (NT.IServerRoomAddToList|null); - - /** LobbyAction cRunOver */ - cRunOver?: (NT.IClientRunOver|null); - } - - /** Represents a LobbyAction. */ - class LobbyAction implements ILobbyAction { - - /** - * Constructs a new LobbyAction. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ILobbyAction); - - /** LobbyAction cRoomCreate. */ - public cRoomCreate?: (NT.IClientRoomCreate|null); - - /** LobbyAction sRoomCreated. */ - public sRoomCreated?: (NT.IServerRoomCreated|null); - - /** LobbyAction sRoomCreateFailed. */ - public sRoomCreateFailed?: (NT.IServerRoomCreateFailed|null); - - /** LobbyAction cRoomUpdate. */ - public cRoomUpdate?: (NT.IClientRoomUpdate|null); - - /** LobbyAction sRoomUpdated. */ - public sRoomUpdated?: (NT.IServerRoomUpdated|null); - - /** LobbyAction sRoomUpdateFailed. */ - public sRoomUpdateFailed?: (NT.IServerRoomUpdateFailed|null); - - /** LobbyAction cRoomFlagsUpdate. */ - public cRoomFlagsUpdate?: (NT.IClientRoomFlagsUpdate|null); - - /** LobbyAction sRoomFlagsUpdated. */ - public sRoomFlagsUpdated?: (NT.IServerRoomFlagsUpdated|null); - - /** LobbyAction sRoomFlagsUpdateFailed. */ - public sRoomFlagsUpdateFailed?: (NT.IServerRoomFlagsUpdateFailed|null); - - /** LobbyAction cRoomDelete. */ - public cRoomDelete?: (NT.IClientRoomDelete|null); - - /** LobbyAction sRoomDeleted. */ - public sRoomDeleted?: (NT.IServerRoomDeleted|null); - - /** LobbyAction cJoinRoom. */ - public cJoinRoom?: (NT.IClientJoinRoom|null); - - /** LobbyAction sJoinRoomSuccess. */ - public sJoinRoomSuccess?: (NT.IServerJoinRoomSuccess|null); - - /** LobbyAction sJoinRoomFailed. */ - public sJoinRoomFailed?: (NT.IServerJoinRoomFailed|null); - - /** LobbyAction sUserJoinedRoom. */ - public sUserJoinedRoom?: (NT.IServerUserJoinedRoom|null); - - /** LobbyAction cLeaveRoom. */ - public cLeaveRoom?: (NT.IClientLeaveRoom|null); - - /** LobbyAction sUserLeftRoom. */ - public sUserLeftRoom?: (NT.IServerUserLeftRoom|null); - - /** LobbyAction cKickUser. */ - public cKickUser?: (NT.IClientKickUser|null); - - /** LobbyAction sUserKicked. */ - public sUserKicked?: (NT.IServerUserKicked|null); - - /** LobbyAction cBanUser. */ - public cBanUser?: (NT.IClientBanUser|null); - - /** LobbyAction sUserBanned. */ - public sUserBanned?: (NT.IServerUserBanned|null); - - /** LobbyAction cReadyState. */ - public cReadyState?: (NT.IClientReadyState|null); - - /** LobbyAction sUserReadyState. */ - public sUserReadyState?: (NT.IServerUserReadyState|null); - - /** LobbyAction cStartRun. */ - public cStartRun?: (NT.IClientStartRun|null); - - /** LobbyAction sHostStart. */ - public sHostStart?: (NT.IServerHostStart|null); - - /** LobbyAction cRequestRoomList. */ - public cRequestRoomList?: (NT.IClientRequestRoomList|null); - - /** LobbyAction sRoomList. */ - public sRoomList?: (NT.IServerRoomList|null); - - /** LobbyAction sDisconnected. */ - public sDisconnected?: (NT.IServerDisconnected|null); - - /** LobbyAction sRoomAddToList. */ - public sRoomAddToList?: (NT.IServerRoomAddToList|null); - - /** LobbyAction cRunOver. */ - public cRunOver?: (NT.IClientRunOver|null); - - /** LobbyAction action. */ - public action?: ("cRoomCreate"|"sRoomCreated"|"sRoomCreateFailed"|"cRoomUpdate"|"sRoomUpdated"|"sRoomUpdateFailed"|"cRoomFlagsUpdate"|"sRoomFlagsUpdated"|"sRoomFlagsUpdateFailed"|"cRoomDelete"|"sRoomDeleted"|"cJoinRoom"|"sJoinRoomSuccess"|"sJoinRoomFailed"|"sUserJoinedRoom"|"cLeaveRoom"|"sUserLeftRoom"|"cKickUser"|"sUserKicked"|"cBanUser"|"sUserBanned"|"cReadyState"|"sUserReadyState"|"cStartRun"|"sHostStart"|"cRequestRoomList"|"sRoomList"|"sDisconnected"|"sRoomAddToList"|"cRunOver"); - - /** - * Creates a new LobbyAction instance using the specified properties. - * @param [properties] Properties to set - * @returns LobbyAction instance - */ - public static create(properties?: NT.ILobbyAction): NT.LobbyAction; - - /** - * Encodes the specified LobbyAction message. Does not implicitly {@link NT.LobbyAction.verify|verify} messages. - * @param message LobbyAction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ILobbyAction, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LobbyAction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LobbyAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.LobbyAction; - - /** - * Verifies a LobbyAction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LobbyAction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LobbyAction - */ - public static fromObject(object: { [k: string]: any }): NT.LobbyAction; - - /** - * Creates a plain object from a LobbyAction message. Also converts values to other types if specified. - * @param message LobbyAction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.LobbyAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LobbyAction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRunOver. */ - interface IClientRunOver { - - /** ClientRunOver idk */ - idk?: (boolean|null); - } - - /** Represents a ClientRunOver. */ - class ClientRunOver implements IClientRunOver { - - /** - * Constructs a new ClientRunOver. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRunOver); - - /** ClientRunOver idk. */ - public idk?: (boolean|null); - - /** ClientRunOver _idk. */ - public _idk?: "idk"; - - /** - * Creates a new ClientRunOver instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRunOver instance - */ - public static create(properties?: NT.IClientRunOver): NT.ClientRunOver; - - /** - * Encodes the specified ClientRunOver message. Does not implicitly {@link NT.ClientRunOver.verify|verify} messages. - * @param message ClientRunOver message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRunOver, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRunOver message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRunOver - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRunOver; - - /** - * Verifies a ClientRunOver message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRunOver message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRunOver - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRunOver; - - /** - * Creates a plain object from a ClientRunOver message. Also converts values to other types if specified. - * @param message ClientRunOver - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRunOver, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRunOver to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerDisconnected. */ - interface IServerDisconnected { - - /** ServerDisconnected reason */ - reason?: (string|null); - } - - /** Represents a ServerDisconnected. */ - class ServerDisconnected implements IServerDisconnected { - - /** - * Constructs a new ServerDisconnected. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerDisconnected); - - /** ServerDisconnected reason. */ - public reason: string; - - /** - * Creates a new ServerDisconnected instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerDisconnected instance - */ - public static create(properties?: NT.IServerDisconnected): NT.ServerDisconnected; - - /** - * Encodes the specified ServerDisconnected message. Does not implicitly {@link NT.ServerDisconnected.verify|verify} messages. - * @param message ServerDisconnected message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerDisconnected, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerDisconnected message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerDisconnected - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerDisconnected; - - /** - * Verifies a ServerDisconnected message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerDisconnected message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerDisconnected - */ - public static fromObject(object: { [k: string]: any }): NT.ServerDisconnected; - - /** - * Creates a plain object from a ServerDisconnected message. Also converts values to other types if specified. - * @param message ServerDisconnected - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerDisconnected, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerDisconnected to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRoomDelete. */ - interface IClientRoomDelete { - - /** ClientRoomDelete id */ - id?: (string|null); - } - - /** Represents a ClientRoomDelete. */ - class ClientRoomDelete implements IClientRoomDelete { - - /** - * Constructs a new ClientRoomDelete. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRoomDelete); - - /** ClientRoomDelete id. */ - public id: string; - - /** - * Creates a new ClientRoomDelete instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRoomDelete instance - */ - public static create(properties?: NT.IClientRoomDelete): NT.ClientRoomDelete; - - /** - * Encodes the specified ClientRoomDelete message. Does not implicitly {@link NT.ClientRoomDelete.verify|verify} messages. - * @param message ClientRoomDelete message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRoomDelete, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRoomDelete message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRoomDelete - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRoomDelete; - - /** - * Verifies a ClientRoomDelete message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRoomDelete message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRoomDelete - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRoomDelete; - - /** - * Creates a plain object from a ClientRoomDelete message. Also converts values to other types if specified. - * @param message ClientRoomDelete - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRoomDelete, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRoomDelete to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerRoomDeleted. */ - interface IServerRoomDeleted { - - /** ServerRoomDeleted id */ - id?: (string|null); - } - - /** Represents a ServerRoomDeleted. */ - class ServerRoomDeleted implements IServerRoomDeleted { - - /** - * Constructs a new ServerRoomDeleted. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomDeleted); - - /** ServerRoomDeleted id. */ - public id: string; - - /** - * Creates a new ServerRoomDeleted instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomDeleted instance - */ - public static create(properties?: NT.IServerRoomDeleted): NT.ServerRoomDeleted; - - /** - * Encodes the specified ServerRoomDeleted message. Does not implicitly {@link NT.ServerRoomDeleted.verify|verify} messages. - * @param message ServerRoomDeleted message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomDeleted, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomDeleted message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomDeleted - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomDeleted; - - /** - * Verifies a ServerRoomDeleted message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomDeleted message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomDeleted - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomDeleted; - - /** - * Creates a plain object from a ServerRoomDeleted message. Also converts values to other types if specified. - * @param message ServerRoomDeleted - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomDeleted to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRoomCreate. */ - interface IClientRoomCreate { - - /** ClientRoomCreate name */ - name?: (string|null); - - /** ClientRoomCreate gamemode */ - gamemode?: (number|null); - - /** ClientRoomCreate maxUsers */ - maxUsers?: (number|null); - - /** ClientRoomCreate password */ - password?: (string|null); - } - - /** Represents a ClientRoomCreate. */ - class ClientRoomCreate implements IClientRoomCreate { - - /** - * Constructs a new ClientRoomCreate. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRoomCreate); - - /** ClientRoomCreate name. */ - public name: string; - - /** ClientRoomCreate gamemode. */ - public gamemode: number; - - /** ClientRoomCreate maxUsers. */ - public maxUsers: number; - - /** ClientRoomCreate password. */ - public password?: (string|null); - - /** ClientRoomCreate _password. */ - public _password?: "password"; - - /** - * Creates a new ClientRoomCreate instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRoomCreate instance - */ - public static create(properties?: NT.IClientRoomCreate): NT.ClientRoomCreate; - - /** - * Encodes the specified ClientRoomCreate message. Does not implicitly {@link NT.ClientRoomCreate.verify|verify} messages. - * @param message ClientRoomCreate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRoomCreate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRoomCreate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRoomCreate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRoomCreate; - - /** - * Verifies a ClientRoomCreate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRoomCreate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRoomCreate - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRoomCreate; - - /** - * Creates a plain object from a ClientRoomCreate message. Also converts values to other types if specified. - * @param message ClientRoomCreate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRoomCreate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRoomCreate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerRoomCreated. */ - interface IServerRoomCreated { - - /** ServerRoomCreated id */ - id?: (string|null); - - /** ServerRoomCreated name */ - name?: (string|null); - - /** ServerRoomCreated gamemode */ - gamemode?: (number|null); - - /** ServerRoomCreated maxUsers */ - maxUsers?: (number|null); - - /** ServerRoomCreated password */ - password?: (string|null); - - /** ServerRoomCreated locked */ - locked?: (boolean|null); - - /** ServerRoomCreated users */ - users?: (NT.ServerRoomCreated.IUser[]|null); - } - - /** Represents a ServerRoomCreated. */ - class ServerRoomCreated implements IServerRoomCreated { - - /** - * Constructs a new ServerRoomCreated. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomCreated); - - /** ServerRoomCreated id. */ - public id: string; - - /** ServerRoomCreated name. */ - public name: string; - - /** ServerRoomCreated gamemode. */ - public gamemode: number; - - /** ServerRoomCreated maxUsers. */ - public maxUsers: number; - - /** ServerRoomCreated password. */ - public password?: (string|null); - - /** ServerRoomCreated locked. */ - public locked: boolean; - - /** ServerRoomCreated users. */ - public users: NT.ServerRoomCreated.IUser[]; - - /** ServerRoomCreated _password. */ - public _password?: "password"; - - /** - * Creates a new ServerRoomCreated instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomCreated instance - */ - public static create(properties?: NT.IServerRoomCreated): NT.ServerRoomCreated; - - /** - * Encodes the specified ServerRoomCreated message. Does not implicitly {@link NT.ServerRoomCreated.verify|verify} messages. - * @param message ServerRoomCreated message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomCreated, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomCreated message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomCreated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomCreated; - - /** - * Verifies a ServerRoomCreated message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomCreated message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomCreated - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomCreated; - - /** - * Creates a plain object from a ServerRoomCreated message. Also converts values to other types if specified. - * @param message ServerRoomCreated - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomCreated, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomCreated to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerRoomCreated { - - /** Properties of a User. */ - interface IUser { - - /** User userId */ - userId?: (string|null); - - /** User name */ - name?: (string|null); - - /** User ready */ - ready?: (boolean|null); - - /** User owner */ - owner?: (boolean|null); - } - - /** Represents a User. */ - class User implements IUser { - - /** - * Constructs a new User. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerRoomCreated.IUser); - - /** User userId. */ - public userId: string; - - /** User name. */ - public name: string; - - /** User ready. */ - public ready: boolean; - - /** User owner. */ - public owner: boolean; - - /** - * Creates a new User instance using the specified properties. - * @param [properties] Properties to set - * @returns User instance - */ - public static create(properties?: NT.ServerRoomCreated.IUser): NT.ServerRoomCreated.User; - - /** - * Encodes the specified User message. Does not implicitly {@link NT.ServerRoomCreated.User.verify|verify} messages. - * @param message User message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerRoomCreated.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a User message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns User - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomCreated.User; - - /** - * Verifies a User message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a User message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns User - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomCreated.User; - - /** - * Creates a plain object from a User message. Also converts values to other types if specified. - * @param message User - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomCreated.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this User to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerRoomCreateFailed. */ - interface IServerRoomCreateFailed { - - /** ServerRoomCreateFailed reason */ - reason?: (string|null); - } - - /** Represents a ServerRoomCreateFailed. */ - class ServerRoomCreateFailed implements IServerRoomCreateFailed { - - /** - * Constructs a new ServerRoomCreateFailed. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomCreateFailed); - - /** ServerRoomCreateFailed reason. */ - public reason: string; - - /** - * Creates a new ServerRoomCreateFailed instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomCreateFailed instance - */ - public static create(properties?: NT.IServerRoomCreateFailed): NT.ServerRoomCreateFailed; - - /** - * Encodes the specified ServerRoomCreateFailed message. Does not implicitly {@link NT.ServerRoomCreateFailed.verify|verify} messages. - * @param message ServerRoomCreateFailed message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomCreateFailed, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomCreateFailed message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomCreateFailed - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomCreateFailed; - - /** - * Verifies a ServerRoomCreateFailed message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomCreateFailed message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomCreateFailed - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomCreateFailed; - - /** - * Creates a plain object from a ServerRoomCreateFailed message. Also converts values to other types if specified. - * @param message ServerRoomCreateFailed - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomCreateFailed, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomCreateFailed to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRoomUpdate. */ - interface IClientRoomUpdate { - - /** ClientRoomUpdate name */ - name?: (string|null); - - /** ClientRoomUpdate gamemode */ - gamemode?: (number|null); - - /** ClientRoomUpdate maxUsers */ - maxUsers?: (number|null); - - /** ClientRoomUpdate password */ - password?: (string|null); - - /** ClientRoomUpdate locked */ - locked?: (boolean|null); - } - - /** Represents a ClientRoomUpdate. */ - class ClientRoomUpdate implements IClientRoomUpdate { - - /** - * Constructs a new ClientRoomUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRoomUpdate); - - /** ClientRoomUpdate name. */ - public name?: (string|null); - - /** ClientRoomUpdate gamemode. */ - public gamemode?: (number|null); - - /** ClientRoomUpdate maxUsers. */ - public maxUsers?: (number|null); - - /** ClientRoomUpdate password. */ - public password?: (string|null); - - /** ClientRoomUpdate locked. */ - public locked?: (boolean|null); - - /** ClientRoomUpdate _name. */ - public _name?: "name"; - - /** ClientRoomUpdate _gamemode. */ - public _gamemode?: "gamemode"; - - /** ClientRoomUpdate _maxUsers. */ - public _maxUsers?: "maxUsers"; - - /** ClientRoomUpdate _password. */ - public _password?: "password"; - - /** ClientRoomUpdate _locked. */ - public _locked?: "locked"; - - /** - * Creates a new ClientRoomUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRoomUpdate instance - */ - public static create(properties?: NT.IClientRoomUpdate): NT.ClientRoomUpdate; - - /** - * Encodes the specified ClientRoomUpdate message. Does not implicitly {@link NT.ClientRoomUpdate.verify|verify} messages. - * @param message ClientRoomUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRoomUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRoomUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRoomUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRoomUpdate; - - /** - * Verifies a ClientRoomUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRoomUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRoomUpdate - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRoomUpdate; - - /** - * Creates a plain object from a ClientRoomUpdate message. Also converts values to other types if specified. - * @param message ClientRoomUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRoomUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRoomUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerRoomUpdated. */ - interface IServerRoomUpdated { - - /** ServerRoomUpdated name */ - name?: (string|null); - - /** ServerRoomUpdated gamemode */ - gamemode?: (number|null); - - /** ServerRoomUpdated maxUsers */ - maxUsers?: (number|null); - - /** ServerRoomUpdated password */ - password?: (string|null); - - /** ServerRoomUpdated locked */ - locked?: (boolean|null); - } - - /** Represents a ServerRoomUpdated. */ - class ServerRoomUpdated implements IServerRoomUpdated { - - /** - * Constructs a new ServerRoomUpdated. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomUpdated); - - /** ServerRoomUpdated name. */ - public name?: (string|null); - - /** ServerRoomUpdated gamemode. */ - public gamemode?: (number|null); - - /** ServerRoomUpdated maxUsers. */ - public maxUsers?: (number|null); - - /** ServerRoomUpdated password. */ - public password?: (string|null); - - /** ServerRoomUpdated locked. */ - public locked?: (boolean|null); - - /** ServerRoomUpdated _name. */ - public _name?: "name"; - - /** ServerRoomUpdated _gamemode. */ - public _gamemode?: "gamemode"; - - /** ServerRoomUpdated _maxUsers. */ - public _maxUsers?: "maxUsers"; - - /** ServerRoomUpdated _password. */ - public _password?: "password"; - - /** ServerRoomUpdated _locked. */ - public _locked?: "locked"; - - /** - * Creates a new ServerRoomUpdated instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomUpdated instance - */ - public static create(properties?: NT.IServerRoomUpdated): NT.ServerRoomUpdated; - - /** - * Encodes the specified ServerRoomUpdated message. Does not implicitly {@link NT.ServerRoomUpdated.verify|verify} messages. - * @param message ServerRoomUpdated message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomUpdated, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomUpdated message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomUpdated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomUpdated; - - /** - * Verifies a ServerRoomUpdated message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomUpdated message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomUpdated - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomUpdated; - - /** - * Creates a plain object from a ServerRoomUpdated message. Also converts values to other types if specified. - * @param message ServerRoomUpdated - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomUpdated to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerRoomUpdateFailed. */ - interface IServerRoomUpdateFailed { - - /** ServerRoomUpdateFailed reason */ - reason?: (string|null); - } - - /** Represents a ServerRoomUpdateFailed. */ - class ServerRoomUpdateFailed implements IServerRoomUpdateFailed { - - /** - * Constructs a new ServerRoomUpdateFailed. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomUpdateFailed); - - /** ServerRoomUpdateFailed reason. */ - public reason: string; - - /** - * Creates a new ServerRoomUpdateFailed instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomUpdateFailed instance - */ - public static create(properties?: NT.IServerRoomUpdateFailed): NT.ServerRoomUpdateFailed; - - /** - * Encodes the specified ServerRoomUpdateFailed message. Does not implicitly {@link NT.ServerRoomUpdateFailed.verify|verify} messages. - * @param message ServerRoomUpdateFailed message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomUpdateFailed, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomUpdateFailed message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomUpdateFailed - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomUpdateFailed; - - /** - * Verifies a ServerRoomUpdateFailed message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomUpdateFailed message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomUpdateFailed - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomUpdateFailed; - - /** - * Creates a plain object from a ServerRoomUpdateFailed message. Also converts values to other types if specified. - * @param message ServerRoomUpdateFailed - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomUpdateFailed, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomUpdateFailed to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRoomFlagsUpdate. */ - interface IClientRoomFlagsUpdate { - - /** ClientRoomFlagsUpdate flags */ - flags?: (NT.ClientRoomFlagsUpdate.IGameFlag[]|null); - } - - /** Represents a ClientRoomFlagsUpdate. */ - class ClientRoomFlagsUpdate implements IClientRoomFlagsUpdate { - - /** - * Constructs a new ClientRoomFlagsUpdate. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRoomFlagsUpdate); - - /** ClientRoomFlagsUpdate flags. */ - public flags: NT.ClientRoomFlagsUpdate.IGameFlag[]; - - /** - * Creates a new ClientRoomFlagsUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRoomFlagsUpdate instance - */ - public static create(properties?: NT.IClientRoomFlagsUpdate): NT.ClientRoomFlagsUpdate; - - /** - * Encodes the specified ClientRoomFlagsUpdate message. Does not implicitly {@link NT.ClientRoomFlagsUpdate.verify|verify} messages. - * @param message ClientRoomFlagsUpdate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRoomFlagsUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRoomFlagsUpdate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRoomFlagsUpdate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRoomFlagsUpdate; - - /** - * Verifies a ClientRoomFlagsUpdate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRoomFlagsUpdate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRoomFlagsUpdate - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRoomFlagsUpdate; - - /** - * Creates a plain object from a ClientRoomFlagsUpdate message. Also converts values to other types if specified. - * @param message ClientRoomFlagsUpdate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRoomFlagsUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRoomFlagsUpdate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ClientRoomFlagsUpdate { - - /** Properties of a GameFlag. */ - interface IGameFlag { - - /** GameFlag flag */ - flag?: (string|null); - - /** GameFlag intVal */ - intVal?: (number|null); - - /** GameFlag strVal */ - strVal?: (string|null); - - /** GameFlag floatVal */ - floatVal?: (number|null); - - /** GameFlag boolVal */ - boolVal?: (boolean|null); - - /** GameFlag uIntVal */ - uIntVal?: (number|null); - } - - /** Represents a GameFlag. */ - class GameFlag implements IGameFlag { - - /** - * Constructs a new GameFlag. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ClientRoomFlagsUpdate.IGameFlag); - - /** GameFlag flag. */ - public flag: string; - - /** GameFlag intVal. */ - public intVal?: (number|null); - - /** GameFlag strVal. */ - public strVal?: (string|null); - - /** GameFlag floatVal. */ - public floatVal?: (number|null); - - /** GameFlag boolVal. */ - public boolVal?: (boolean|null); - - /** GameFlag uIntVal. */ - public uIntVal?: (number|null); - - /** GameFlag _intVal. */ - public _intVal?: "intVal"; - - /** GameFlag _strVal. */ - public _strVal?: "strVal"; - - /** GameFlag _floatVal. */ - public _floatVal?: "floatVal"; - - /** GameFlag _boolVal. */ - public _boolVal?: "boolVal"; - - /** GameFlag _uIntVal. */ - public _uIntVal?: "uIntVal"; - - /** - * Creates a new GameFlag instance using the specified properties. - * @param [properties] Properties to set - * @returns GameFlag instance - */ - public static create(properties?: NT.ClientRoomFlagsUpdate.IGameFlag): NT.ClientRoomFlagsUpdate.GameFlag; - - /** - * Encodes the specified GameFlag message. Does not implicitly {@link NT.ClientRoomFlagsUpdate.GameFlag.verify|verify} messages. - * @param message GameFlag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ClientRoomFlagsUpdate.IGameFlag, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GameFlag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GameFlag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRoomFlagsUpdate.GameFlag; - - /** - * Verifies a GameFlag message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GameFlag message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GameFlag - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRoomFlagsUpdate.GameFlag; - - /** - * Creates a plain object from a GameFlag message. Also converts values to other types if specified. - * @param message GameFlag - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRoomFlagsUpdate.GameFlag, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GameFlag to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerRoomFlagsUpdated. */ - interface IServerRoomFlagsUpdated { - - /** ServerRoomFlagsUpdated flags */ - flags?: (NT.ServerRoomFlagsUpdated.IGameFlag[]|null); - } - - /** Represents a ServerRoomFlagsUpdated. */ - class ServerRoomFlagsUpdated implements IServerRoomFlagsUpdated { - - /** - * Constructs a new ServerRoomFlagsUpdated. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomFlagsUpdated); - - /** ServerRoomFlagsUpdated flags. */ - public flags: NT.ServerRoomFlagsUpdated.IGameFlag[]; - - /** - * Creates a new ServerRoomFlagsUpdated instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomFlagsUpdated instance - */ - public static create(properties?: NT.IServerRoomFlagsUpdated): NT.ServerRoomFlagsUpdated; - - /** - * Encodes the specified ServerRoomFlagsUpdated message. Does not implicitly {@link NT.ServerRoomFlagsUpdated.verify|verify} messages. - * @param message ServerRoomFlagsUpdated message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomFlagsUpdated, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomFlagsUpdated message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomFlagsUpdated - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomFlagsUpdated; - - /** - * Verifies a ServerRoomFlagsUpdated message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomFlagsUpdated message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomFlagsUpdated - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomFlagsUpdated; - - /** - * Creates a plain object from a ServerRoomFlagsUpdated message. Also converts values to other types if specified. - * @param message ServerRoomFlagsUpdated - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomFlagsUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomFlagsUpdated to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerRoomFlagsUpdated { - - /** Properties of a GameFlag. */ - interface IGameFlag { - - /** GameFlag flag */ - flag?: (string|null); - - /** GameFlag intVal */ - intVal?: (number|null); - - /** GameFlag strVal */ - strVal?: (string|null); - - /** GameFlag floatVal */ - floatVal?: (number|null); - - /** GameFlag boolVal */ - boolVal?: (boolean|null); - - /** GameFlag uIntVal */ - uIntVal?: (number|null); - } - - /** Represents a GameFlag. */ - class GameFlag implements IGameFlag { - - /** - * Constructs a new GameFlag. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerRoomFlagsUpdated.IGameFlag); - - /** GameFlag flag. */ - public flag: string; - - /** GameFlag intVal. */ - public intVal?: (number|null); - - /** GameFlag strVal. */ - public strVal?: (string|null); - - /** GameFlag floatVal. */ - public floatVal?: (number|null); - - /** GameFlag boolVal. */ - public boolVal?: (boolean|null); - - /** GameFlag uIntVal. */ - public uIntVal?: (number|null); - - /** GameFlag _intVal. */ - public _intVal?: "intVal"; - - /** GameFlag _strVal. */ - public _strVal?: "strVal"; - - /** GameFlag _floatVal. */ - public _floatVal?: "floatVal"; - - /** GameFlag _boolVal. */ - public _boolVal?: "boolVal"; - - /** GameFlag _uIntVal. */ - public _uIntVal?: "uIntVal"; - - /** - * Creates a new GameFlag instance using the specified properties. - * @param [properties] Properties to set - * @returns GameFlag instance - */ - public static create(properties?: NT.ServerRoomFlagsUpdated.IGameFlag): NT.ServerRoomFlagsUpdated.GameFlag; - - /** - * Encodes the specified GameFlag message. Does not implicitly {@link NT.ServerRoomFlagsUpdated.GameFlag.verify|verify} messages. - * @param message GameFlag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerRoomFlagsUpdated.IGameFlag, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GameFlag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GameFlag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomFlagsUpdated.GameFlag; - - /** - * Verifies a GameFlag message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GameFlag message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GameFlag - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomFlagsUpdated.GameFlag; - - /** - * Creates a plain object from a GameFlag message. Also converts values to other types if specified. - * @param message GameFlag - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomFlagsUpdated.GameFlag, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GameFlag to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerRoomFlagsUpdateFailed. */ - interface IServerRoomFlagsUpdateFailed { - - /** ServerRoomFlagsUpdateFailed reason */ - reason?: (string|null); - } - - /** Represents a ServerRoomFlagsUpdateFailed. */ - class ServerRoomFlagsUpdateFailed implements IServerRoomFlagsUpdateFailed { - - /** - * Constructs a new ServerRoomFlagsUpdateFailed. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomFlagsUpdateFailed); - - /** ServerRoomFlagsUpdateFailed reason. */ - public reason: string; - - /** - * Creates a new ServerRoomFlagsUpdateFailed instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomFlagsUpdateFailed instance - */ - public static create(properties?: NT.IServerRoomFlagsUpdateFailed): NT.ServerRoomFlagsUpdateFailed; - - /** - * Encodes the specified ServerRoomFlagsUpdateFailed message. Does not implicitly {@link NT.ServerRoomFlagsUpdateFailed.verify|verify} messages. - * @param message ServerRoomFlagsUpdateFailed message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomFlagsUpdateFailed, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomFlagsUpdateFailed message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomFlagsUpdateFailed - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomFlagsUpdateFailed; - - /** - * Verifies a ServerRoomFlagsUpdateFailed message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomFlagsUpdateFailed message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomFlagsUpdateFailed - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomFlagsUpdateFailed; - - /** - * Creates a plain object from a ServerRoomFlagsUpdateFailed message. Also converts values to other types if specified. - * @param message ServerRoomFlagsUpdateFailed - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomFlagsUpdateFailed, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomFlagsUpdateFailed to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientJoinRoom. */ - interface IClientJoinRoom { - - /** ClientJoinRoom id */ - id?: (string|null); - - /** ClientJoinRoom password */ - password?: (string|null); - } - - /** Represents a ClientJoinRoom. */ - class ClientJoinRoom implements IClientJoinRoom { - - /** - * Constructs a new ClientJoinRoom. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientJoinRoom); - - /** ClientJoinRoom id. */ - public id: string; - - /** ClientJoinRoom password. */ - public password?: (string|null); - - /** ClientJoinRoom _password. */ - public _password?: "password"; - - /** - * Creates a new ClientJoinRoom instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientJoinRoom instance - */ - public static create(properties?: NT.IClientJoinRoom): NT.ClientJoinRoom; - - /** - * Encodes the specified ClientJoinRoom message. Does not implicitly {@link NT.ClientJoinRoom.verify|verify} messages. - * @param message ClientJoinRoom message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientJoinRoom, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientJoinRoom message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientJoinRoom - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientJoinRoom; - - /** - * Verifies a ClientJoinRoom message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientJoinRoom message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientJoinRoom - */ - public static fromObject(object: { [k: string]: any }): NT.ClientJoinRoom; - - /** - * Creates a plain object from a ClientJoinRoom message. Also converts values to other types if specified. - * @param message ClientJoinRoom - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientJoinRoom, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientJoinRoom to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerJoinRoomSuccess. */ - interface IServerJoinRoomSuccess { - - /** ServerJoinRoomSuccess id */ - id?: (string|null); - - /** ServerJoinRoomSuccess name */ - name?: (string|null); - - /** ServerJoinRoomSuccess gamemode */ - gamemode?: (number|null); - - /** ServerJoinRoomSuccess maxUsers */ - maxUsers?: (number|null); - - /** ServerJoinRoomSuccess password */ - password?: (string|null); - - /** ServerJoinRoomSuccess locked */ - locked?: (boolean|null); - - /** ServerJoinRoomSuccess users */ - users?: (NT.ServerJoinRoomSuccess.IUser[]|null); - } - - /** Represents a ServerJoinRoomSuccess. */ - class ServerJoinRoomSuccess implements IServerJoinRoomSuccess { - - /** - * Constructs a new ServerJoinRoomSuccess. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerJoinRoomSuccess); - - /** ServerJoinRoomSuccess id. */ - public id: string; - - /** ServerJoinRoomSuccess name. */ - public name: string; - - /** ServerJoinRoomSuccess gamemode. */ - public gamemode: number; - - /** ServerJoinRoomSuccess maxUsers. */ - public maxUsers: number; - - /** ServerJoinRoomSuccess password. */ - public password?: (string|null); - - /** ServerJoinRoomSuccess locked. */ - public locked: boolean; - - /** ServerJoinRoomSuccess users. */ - public users: NT.ServerJoinRoomSuccess.IUser[]; - - /** ServerJoinRoomSuccess _password. */ - public _password?: "password"; - - /** - * Creates a new ServerJoinRoomSuccess instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerJoinRoomSuccess instance - */ - public static create(properties?: NT.IServerJoinRoomSuccess): NT.ServerJoinRoomSuccess; - - /** - * Encodes the specified ServerJoinRoomSuccess message. Does not implicitly {@link NT.ServerJoinRoomSuccess.verify|verify} messages. - * @param message ServerJoinRoomSuccess message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerJoinRoomSuccess, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerJoinRoomSuccess message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerJoinRoomSuccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerJoinRoomSuccess; - - /** - * Verifies a ServerJoinRoomSuccess message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerJoinRoomSuccess message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerJoinRoomSuccess - */ - public static fromObject(object: { [k: string]: any }): NT.ServerJoinRoomSuccess; - - /** - * Creates a plain object from a ServerJoinRoomSuccess message. Also converts values to other types if specified. - * @param message ServerJoinRoomSuccess - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerJoinRoomSuccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerJoinRoomSuccess to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerJoinRoomSuccess { - - /** Properties of a User. */ - interface IUser { - - /** User userId */ - userId?: (string|null); - - /** User name */ - name?: (string|null); - - /** User ready */ - ready?: (boolean|null); - - /** User owner */ - owner?: (boolean|null); - } - - /** Represents a User. */ - class User implements IUser { - - /** - * Constructs a new User. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerJoinRoomSuccess.IUser); - - /** User userId. */ - public userId: string; - - /** User name. */ - public name: string; - - /** User ready. */ - public ready: boolean; - - /** User owner. */ - public owner: boolean; - - /** - * Creates a new User instance using the specified properties. - * @param [properties] Properties to set - * @returns User instance - */ - public static create(properties?: NT.ServerJoinRoomSuccess.IUser): NT.ServerJoinRoomSuccess.User; - - /** - * Encodes the specified User message. Does not implicitly {@link NT.ServerJoinRoomSuccess.User.verify|verify} messages. - * @param message User message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerJoinRoomSuccess.IUser, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a User message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns User - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerJoinRoomSuccess.User; - - /** - * Verifies a User message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a User message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns User - */ - public static fromObject(object: { [k: string]: any }): NT.ServerJoinRoomSuccess.User; - - /** - * Creates a plain object from a User message. Also converts values to other types if specified. - * @param message User - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerJoinRoomSuccess.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this User to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerJoinRoomFailed. */ - interface IServerJoinRoomFailed { - - /** ServerJoinRoomFailed reason */ - reason?: (string|null); - } - - /** Represents a ServerJoinRoomFailed. */ - class ServerJoinRoomFailed implements IServerJoinRoomFailed { - - /** - * Constructs a new ServerJoinRoomFailed. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerJoinRoomFailed); - - /** ServerJoinRoomFailed reason. */ - public reason: string; - - /** - * Creates a new ServerJoinRoomFailed instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerJoinRoomFailed instance - */ - public static create(properties?: NT.IServerJoinRoomFailed): NT.ServerJoinRoomFailed; - - /** - * Encodes the specified ServerJoinRoomFailed message. Does not implicitly {@link NT.ServerJoinRoomFailed.verify|verify} messages. - * @param message ServerJoinRoomFailed message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerJoinRoomFailed, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerJoinRoomFailed message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerJoinRoomFailed - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerJoinRoomFailed; - - /** - * Verifies a ServerJoinRoomFailed message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerJoinRoomFailed message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerJoinRoomFailed - */ - public static fromObject(object: { [k: string]: any }): NT.ServerJoinRoomFailed; - - /** - * Creates a plain object from a ServerJoinRoomFailed message. Also converts values to other types if specified. - * @param message ServerJoinRoomFailed - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerJoinRoomFailed, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerJoinRoomFailed to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerUserJoinedRoom. */ - interface IServerUserJoinedRoom { - - /** ServerUserJoinedRoom userId */ - userId?: (string|null); - - /** ServerUserJoinedRoom name */ - name?: (string|null); - } - - /** Represents a ServerUserJoinedRoom. */ - class ServerUserJoinedRoom implements IServerUserJoinedRoom { - - /** - * Constructs a new ServerUserJoinedRoom. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerUserJoinedRoom); - - /** ServerUserJoinedRoom userId. */ - public userId: string; - - /** ServerUserJoinedRoom name. */ - public name: string; - - /** - * Creates a new ServerUserJoinedRoom instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerUserJoinedRoom instance - */ - public static create(properties?: NT.IServerUserJoinedRoom): NT.ServerUserJoinedRoom; - - /** - * Encodes the specified ServerUserJoinedRoom message. Does not implicitly {@link NT.ServerUserJoinedRoom.verify|verify} messages. - * @param message ServerUserJoinedRoom message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerUserJoinedRoom, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerUserJoinedRoom message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerUserJoinedRoom - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerUserJoinedRoom; - - /** - * Verifies a ServerUserJoinedRoom message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerUserJoinedRoom message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerUserJoinedRoom - */ - public static fromObject(object: { [k: string]: any }): NT.ServerUserJoinedRoom; - - /** - * Creates a plain object from a ServerUserJoinedRoom message. Also converts values to other types if specified. - * @param message ServerUserJoinedRoom - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerUserJoinedRoom, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerUserJoinedRoom to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientLeaveRoom. */ - interface IClientLeaveRoom { - - /** ClientLeaveRoom userId */ - userId?: (string|null); - } - - /** Represents a ClientLeaveRoom. */ - class ClientLeaveRoom implements IClientLeaveRoom { - - /** - * Constructs a new ClientLeaveRoom. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientLeaveRoom); - - /** ClientLeaveRoom userId. */ - public userId: string; - - /** - * Creates a new ClientLeaveRoom instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientLeaveRoom instance - */ - public static create(properties?: NT.IClientLeaveRoom): NT.ClientLeaveRoom; - - /** - * Encodes the specified ClientLeaveRoom message. Does not implicitly {@link NT.ClientLeaveRoom.verify|verify} messages. - * @param message ClientLeaveRoom message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientLeaveRoom, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientLeaveRoom message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientLeaveRoom - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientLeaveRoom; - - /** - * Verifies a ClientLeaveRoom message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientLeaveRoom message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientLeaveRoom - */ - public static fromObject(object: { [k: string]: any }): NT.ClientLeaveRoom; - - /** - * Creates a plain object from a ClientLeaveRoom message. Also converts values to other types if specified. - * @param message ClientLeaveRoom - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientLeaveRoom, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientLeaveRoom to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerUserLeftRoom. */ - interface IServerUserLeftRoom { - - /** ServerUserLeftRoom userId */ - userId?: (string|null); - } - - /** Represents a ServerUserLeftRoom. */ - class ServerUserLeftRoom implements IServerUserLeftRoom { - - /** - * Constructs a new ServerUserLeftRoom. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerUserLeftRoom); - - /** ServerUserLeftRoom userId. */ - public userId: string; - - /** - * Creates a new ServerUserLeftRoom instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerUserLeftRoom instance - */ - public static create(properties?: NT.IServerUserLeftRoom): NT.ServerUserLeftRoom; - - /** - * Encodes the specified ServerUserLeftRoom message. Does not implicitly {@link NT.ServerUserLeftRoom.verify|verify} messages. - * @param message ServerUserLeftRoom message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerUserLeftRoom, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerUserLeftRoom message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerUserLeftRoom - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerUserLeftRoom; - - /** - * Verifies a ServerUserLeftRoom message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerUserLeftRoom message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerUserLeftRoom - */ - public static fromObject(object: { [k: string]: any }): NT.ServerUserLeftRoom; - - /** - * Creates a plain object from a ServerUserLeftRoom message. Also converts values to other types if specified. - * @param message ServerUserLeftRoom - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerUserLeftRoom, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerUserLeftRoom to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientKickUser. */ - interface IClientKickUser { - - /** ClientKickUser userId */ - userId?: (string|null); - } - - /** Represents a ClientKickUser. */ - class ClientKickUser implements IClientKickUser { - - /** - * Constructs a new ClientKickUser. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientKickUser); - - /** ClientKickUser userId. */ - public userId: string; - - /** - * Creates a new ClientKickUser instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientKickUser instance - */ - public static create(properties?: NT.IClientKickUser): NT.ClientKickUser; - - /** - * Encodes the specified ClientKickUser message. Does not implicitly {@link NT.ClientKickUser.verify|verify} messages. - * @param message ClientKickUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientKickUser, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientKickUser message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientKickUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientKickUser; - - /** - * Verifies a ClientKickUser message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientKickUser message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientKickUser - */ - public static fromObject(object: { [k: string]: any }): NT.ClientKickUser; - - /** - * Creates a plain object from a ClientKickUser message. Also converts values to other types if specified. - * @param message ClientKickUser - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientKickUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientKickUser to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerUserKicked. */ - interface IServerUserKicked { - - /** ServerUserKicked userId */ - userId?: (string|null); - } - - /** Represents a ServerUserKicked. */ - class ServerUserKicked implements IServerUserKicked { - - /** - * Constructs a new ServerUserKicked. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerUserKicked); - - /** ServerUserKicked userId. */ - public userId: string; - - /** - * Creates a new ServerUserKicked instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerUserKicked instance - */ - public static create(properties?: NT.IServerUserKicked): NT.ServerUserKicked; - - /** - * Encodes the specified ServerUserKicked message. Does not implicitly {@link NT.ServerUserKicked.verify|verify} messages. - * @param message ServerUserKicked message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerUserKicked, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerUserKicked message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerUserKicked - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerUserKicked; - - /** - * Verifies a ServerUserKicked message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerUserKicked message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerUserKicked - */ - public static fromObject(object: { [k: string]: any }): NT.ServerUserKicked; - - /** - * Creates a plain object from a ServerUserKicked message. Also converts values to other types if specified. - * @param message ServerUserKicked - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerUserKicked, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerUserKicked to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientBanUser. */ - interface IClientBanUser { - - /** ClientBanUser userId */ - userId?: (string|null); - } - - /** Represents a ClientBanUser. */ - class ClientBanUser implements IClientBanUser { - - /** - * Constructs a new ClientBanUser. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientBanUser); - - /** ClientBanUser userId. */ - public userId: string; - - /** - * Creates a new ClientBanUser instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientBanUser instance - */ - public static create(properties?: NT.IClientBanUser): NT.ClientBanUser; - - /** - * Encodes the specified ClientBanUser message. Does not implicitly {@link NT.ClientBanUser.verify|verify} messages. - * @param message ClientBanUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientBanUser, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientBanUser message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientBanUser - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientBanUser; - - /** - * Verifies a ClientBanUser message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientBanUser message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientBanUser - */ - public static fromObject(object: { [k: string]: any }): NT.ClientBanUser; - - /** - * Creates a plain object from a ClientBanUser message. Also converts values to other types if specified. - * @param message ClientBanUser - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientBanUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientBanUser to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerUserBanned. */ - interface IServerUserBanned { - - /** ServerUserBanned userId */ - userId?: (string|null); - } - - /** Represents a ServerUserBanned. */ - class ServerUserBanned implements IServerUserBanned { - - /** - * Constructs a new ServerUserBanned. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerUserBanned); - - /** ServerUserBanned userId. */ - public userId: string; - - /** - * Creates a new ServerUserBanned instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerUserBanned instance - */ - public static create(properties?: NT.IServerUserBanned): NT.ServerUserBanned; - - /** - * Encodes the specified ServerUserBanned message. Does not implicitly {@link NT.ServerUserBanned.verify|verify} messages. - * @param message ServerUserBanned message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerUserBanned, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerUserBanned message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerUserBanned - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerUserBanned; - - /** - * Verifies a ServerUserBanned message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerUserBanned message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerUserBanned - */ - public static fromObject(object: { [k: string]: any }): NT.ServerUserBanned; - - /** - * Creates a plain object from a ServerUserBanned message. Also converts values to other types if specified. - * @param message ServerUserBanned - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerUserBanned, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerUserBanned to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientReadyState. */ - interface IClientReadyState { - - /** ClientReadyState ready */ - ready?: (boolean|null); - - /** ClientReadyState seed */ - seed?: (string|null); - - /** ClientReadyState mods */ - mods?: (string[]|null); - - /** ClientReadyState version */ - version?: (string|null); - - /** ClientReadyState beta */ - beta?: (boolean|null); - } - - /** Represents a ClientReadyState. */ - class ClientReadyState implements IClientReadyState { - - /** - * Constructs a new ClientReadyState. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientReadyState); - - /** ClientReadyState ready. */ - public ready: boolean; - - /** ClientReadyState seed. */ - public seed?: (string|null); - - /** ClientReadyState mods. */ - public mods: string[]; - - /** ClientReadyState version. */ - public version?: (string|null); - - /** ClientReadyState beta. */ - public beta?: (boolean|null); - - /** ClientReadyState _seed. */ - public _seed?: "seed"; - - /** ClientReadyState _version. */ - public _version?: "version"; - - /** ClientReadyState _beta. */ - public _beta?: "beta"; - - /** - * Creates a new ClientReadyState instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientReadyState instance - */ - public static create(properties?: NT.IClientReadyState): NT.ClientReadyState; - - /** - * Encodes the specified ClientReadyState message. Does not implicitly {@link NT.ClientReadyState.verify|verify} messages. - * @param message ClientReadyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientReadyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientReadyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientReadyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientReadyState; - - /** - * Verifies a ClientReadyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientReadyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientReadyState - */ - public static fromObject(object: { [k: string]: any }): NT.ClientReadyState; - - /** - * Creates a plain object from a ClientReadyState message. Also converts values to other types if specified. - * @param message ClientReadyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientReadyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientReadyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerUserReadyState. */ - interface IServerUserReadyState { - - /** ServerUserReadyState userId */ - userId?: (string|null); - - /** ServerUserReadyState ready */ - ready?: (boolean|null); - - /** ServerUserReadyState seed */ - seed?: (string|null); - - /** ServerUserReadyState mods */ - mods?: (string[]|null); - - /** ServerUserReadyState version */ - version?: (string|null); - - /** ServerUserReadyState beta */ - beta?: (boolean|null); - } - - /** Represents a ServerUserReadyState. */ - class ServerUserReadyState implements IServerUserReadyState { - - /** - * Constructs a new ServerUserReadyState. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerUserReadyState); - - /** ServerUserReadyState userId. */ - public userId: string; - - /** ServerUserReadyState ready. */ - public ready: boolean; - - /** ServerUserReadyState seed. */ - public seed?: (string|null); - - /** ServerUserReadyState mods. */ - public mods: string[]; - - /** ServerUserReadyState version. */ - public version?: (string|null); - - /** ServerUserReadyState beta. */ - public beta?: (boolean|null); - - /** ServerUserReadyState _seed. */ - public _seed?: "seed"; - - /** ServerUserReadyState _version. */ - public _version?: "version"; - - /** ServerUserReadyState _beta. */ - public _beta?: "beta"; - - /** - * Creates a new ServerUserReadyState instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerUserReadyState instance - */ - public static create(properties?: NT.IServerUserReadyState): NT.ServerUserReadyState; - - /** - * Encodes the specified ServerUserReadyState message. Does not implicitly {@link NT.ServerUserReadyState.verify|verify} messages. - * @param message ServerUserReadyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerUserReadyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerUserReadyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerUserReadyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerUserReadyState; - - /** - * Verifies a ServerUserReadyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerUserReadyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerUserReadyState - */ - public static fromObject(object: { [k: string]: any }): NT.ServerUserReadyState; - - /** - * Creates a plain object from a ServerUserReadyState message. Also converts values to other types if specified. - * @param message ServerUserReadyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerUserReadyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerUserReadyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientStartRun. */ - interface IClientStartRun { - - /** ClientStartRun forced */ - forced?: (boolean|null); - } - - /** Represents a ClientStartRun. */ - class ClientStartRun implements IClientStartRun { - - /** - * Constructs a new ClientStartRun. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientStartRun); - - /** ClientStartRun forced. */ - public forced: boolean; - - /** - * Creates a new ClientStartRun instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientStartRun instance - */ - public static create(properties?: NT.IClientStartRun): NT.ClientStartRun; - - /** - * Encodes the specified ClientStartRun message. Does not implicitly {@link NT.ClientStartRun.verify|verify} messages. - * @param message ClientStartRun message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientStartRun, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientStartRun message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientStartRun - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientStartRun; - - /** - * Verifies a ClientStartRun message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientStartRun message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientStartRun - */ - public static fromObject(object: { [k: string]: any }): NT.ClientStartRun; - - /** - * Creates a plain object from a ClientStartRun message. Also converts values to other types if specified. - * @param message ClientStartRun - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientStartRun, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientStartRun to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerHostStart. */ - interface IServerHostStart { - - /** ServerHostStart forced */ - forced?: (boolean|null); - } - - /** Represents a ServerHostStart. */ - class ServerHostStart implements IServerHostStart { - - /** - * Constructs a new ServerHostStart. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerHostStart); - - /** ServerHostStart forced. */ - public forced: boolean; - - /** - * Creates a new ServerHostStart instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerHostStart instance - */ - public static create(properties?: NT.IServerHostStart): NT.ServerHostStart; - - /** - * Encodes the specified ServerHostStart message. Does not implicitly {@link NT.ServerHostStart.verify|verify} messages. - * @param message ServerHostStart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerHostStart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerHostStart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerHostStart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerHostStart; - - /** - * Verifies a ServerHostStart message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerHostStart message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerHostStart - */ - public static fromObject(object: { [k: string]: any }): NT.ServerHostStart; - - /** - * Creates a plain object from a ServerHostStart message. Also converts values to other types if specified. - * @param message ServerHostStart - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerHostStart, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerHostStart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ClientRequestRoomList. */ - interface IClientRequestRoomList { - - /** ClientRequestRoomList page */ - page?: (number|null); - } - - /** Represents a ClientRequestRoomList. */ - class ClientRequestRoomList implements IClientRequestRoomList { - - /** - * Constructs a new ClientRequestRoomList. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IClientRequestRoomList); - - /** ClientRequestRoomList page. */ - public page: number; - - /** - * Creates a new ClientRequestRoomList instance using the specified properties. - * @param [properties] Properties to set - * @returns ClientRequestRoomList instance - */ - public static create(properties?: NT.IClientRequestRoomList): NT.ClientRequestRoomList; - - /** - * Encodes the specified ClientRequestRoomList message. Does not implicitly {@link NT.ClientRequestRoomList.verify|verify} messages. - * @param message ClientRequestRoomList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IClientRequestRoomList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientRequestRoomList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientRequestRoomList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ClientRequestRoomList; - - /** - * Verifies a ClientRequestRoomList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ClientRequestRoomList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientRequestRoomList - */ - public static fromObject(object: { [k: string]: any }): NT.ClientRequestRoomList; - - /** - * Creates a plain object from a ClientRequestRoomList message. Also converts values to other types if specified. - * @param message ClientRequestRoomList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ClientRequestRoomList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ClientRequestRoomList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServerRoomList. */ - interface IServerRoomList { - - /** ServerRoomList rooms */ - rooms?: (NT.ServerRoomList.IRoom[]|null); - - /** ServerRoomList pages */ - pages?: (number|null); - } - - /** Represents a ServerRoomList. */ - class ServerRoomList implements IServerRoomList { - - /** - * Constructs a new ServerRoomList. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomList); - - /** ServerRoomList rooms. */ - public rooms: NT.ServerRoomList.IRoom[]; - - /** ServerRoomList pages. */ - public pages?: (number|null); - - /** ServerRoomList _pages. */ - public _pages?: "pages"; - - /** - * Creates a new ServerRoomList instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomList instance - */ - public static create(properties?: NT.IServerRoomList): NT.ServerRoomList; - - /** - * Encodes the specified ServerRoomList message. Does not implicitly {@link NT.ServerRoomList.verify|verify} messages. - * @param message ServerRoomList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomList; - - /** - * Verifies a ServerRoomList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomList - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomList; - - /** - * Creates a plain object from a ServerRoomList message. Also converts values to other types if specified. - * @param message ServerRoomList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerRoomList { - - /** Properties of a Room. */ - interface IRoom { - - /** Room id */ - id?: (string|null); - - /** Room name */ - name?: (string|null); - - /** Room gamemode */ - gamemode?: (number|null); - - /** Room curUsers */ - curUsers?: (number|null); - - /** Room maxUsers */ - maxUsers?: (number|null); - - /** Room protected */ - "protected"?: (boolean|null); - - /** Room owner */ - owner?: (string|null); - - /** Room locked */ - locked?: (boolean|null); - } - - /** Represents a Room. */ - class Room implements IRoom { - - /** - * Constructs a new Room. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerRoomList.IRoom); - - /** Room id. */ - public id: string; - - /** Room name. */ - public name: string; - - /** Room gamemode. */ - public gamemode: number; - - /** Room curUsers. */ - public curUsers: number; - - /** Room maxUsers. */ - public maxUsers: number; - - /** Room protected. */ - public protected: boolean; - - /** Room owner. */ - public owner: string; - - /** Room locked. */ - public locked: boolean; - - /** - * Creates a new Room instance using the specified properties. - * @param [properties] Properties to set - * @returns Room instance - */ - public static create(properties?: NT.ServerRoomList.IRoom): NT.ServerRoomList.Room; - - /** - * Encodes the specified Room message. Does not implicitly {@link NT.ServerRoomList.Room.verify|verify} messages. - * @param message Room message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerRoomList.IRoom, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Room message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Room - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomList.Room; - - /** - * Verifies a Room message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Room message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Room - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomList.Room; - - /** - * Creates a plain object from a Room message. Also converts values to other types if specified. - * @param message Room - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomList.Room, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Room to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ServerRoomAddToList. */ - interface IServerRoomAddToList { - - /** ServerRoomAddToList room */ - room?: (NT.ServerRoomAddToList.IRoom|null); - } - - /** Represents a ServerRoomAddToList. */ - class ServerRoomAddToList implements IServerRoomAddToList { - - /** - * Constructs a new ServerRoomAddToList. - * @param [properties] Properties to set - */ - constructor(properties?: NT.IServerRoomAddToList); - - /** ServerRoomAddToList room. */ - public room?: (NT.ServerRoomAddToList.IRoom|null); - - /** - * Creates a new ServerRoomAddToList instance using the specified properties. - * @param [properties] Properties to set - * @returns ServerRoomAddToList instance - */ - public static create(properties?: NT.IServerRoomAddToList): NT.ServerRoomAddToList; - - /** - * Encodes the specified ServerRoomAddToList message. Does not implicitly {@link NT.ServerRoomAddToList.verify|verify} messages. - * @param message ServerRoomAddToList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.IServerRoomAddToList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServerRoomAddToList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServerRoomAddToList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomAddToList; - - /** - * Verifies a ServerRoomAddToList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServerRoomAddToList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServerRoomAddToList - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomAddToList; - - /** - * Creates a plain object from a ServerRoomAddToList message. Also converts values to other types if specified. - * @param message ServerRoomAddToList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomAddToList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServerRoomAddToList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ServerRoomAddToList { - - /** Properties of a Room. */ - interface IRoom { - - /** Room id */ - id?: (string|null); - - /** Room name */ - name?: (string|null); - - /** Room gamemode */ - gamemode?: (number|null); - - /** Room curUsers */ - curUsers?: (number|null); - - /** Room maxUsers */ - maxUsers?: (number|null); - - /** Room protected */ - "protected"?: (boolean|null); - - /** Room owner */ - owner?: (string|null); - - /** Room locked */ - locked?: (boolean|null); - } - - /** Represents a Room. */ - class Room implements IRoom { - - /** - * Constructs a new Room. - * @param [properties] Properties to set - */ - constructor(properties?: NT.ServerRoomAddToList.IRoom); - - /** Room id. */ - public id: string; - - /** Room name. */ - public name: string; - - /** Room gamemode. */ - public gamemode: number; - - /** Room curUsers. */ - public curUsers: number; - - /** Room maxUsers. */ - public maxUsers: number; - - /** Room protected. */ - public protected: boolean; - - /** Room owner. */ - public owner: string; - - /** Room locked. */ - public locked: boolean; - - /** - * Creates a new Room instance using the specified properties. - * @param [properties] Properties to set - * @returns Room instance - */ - public static create(properties?: NT.ServerRoomAddToList.IRoom): NT.ServerRoomAddToList.Room; - - /** - * Encodes the specified Room message. Does not implicitly {@link NT.ServerRoomAddToList.Room.verify|verify} messages. - * @param message Room message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: NT.ServerRoomAddToList.IRoom, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Room message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Room - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NT.ServerRoomAddToList.Room; - - /** - * Verifies a Room message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Room message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Room - */ - public static fromObject(object: { [k: string]: any }): NT.ServerRoomAddToList.Room; - - /** - * Creates a plain object from a Room message. Also converts values to other types if specified. - * @param message Room - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: NT.ServerRoomAddToList.Room, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Room to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } -} diff --git a/nt-web-app/websocket/messages.js b/nt-web-app/websocket/messages.js deleted file mode 100644 index d672e66d..00000000 --- a/nt-web-app/websocket/messages.js +++ /dev/null @@ -1,14047 +0,0 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ -import * as $protobuf from "protobufjs/minimal"; - -const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - -const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); - -export const NT = $root.NT = (() => { - - const NT = {}; - - NT.Envelope = (function() { - - function Envelope(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Envelope.prototype.gameAction = null; - Envelope.prototype.lobbyAction = null; - - let $oneOfFields; - - Object.defineProperty(Envelope.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["gameAction", "lobbyAction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Envelope.create = function create(properties) { - return new Envelope(properties); - }; - - Envelope.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gameAction != null && Object.hasOwnProperty.call(message, "gameAction")) - $root.NT.GameAction.encode(message.gameAction, writer.uint32(10).fork()).ldelim(); - if (message.lobbyAction != null && Object.hasOwnProperty.call(message, "lobbyAction")) - $root.NT.LobbyAction.encode(message.lobbyAction, writer.uint32(402).fork()).ldelim(); - return writer; - }; - - Envelope.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Envelope(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gameAction = $root.NT.GameAction.decode(reader, reader.uint32()); - break; - case 50: - message.lobbyAction = $root.NT.LobbyAction.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Envelope.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.gameAction != null && message.hasOwnProperty("gameAction")) { - properties.kind = 1; - { - let error = $root.NT.GameAction.verify(message.gameAction); - if (error) - return "gameAction." + error; - } - } - if (message.lobbyAction != null && message.hasOwnProperty("lobbyAction")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - let error = $root.NT.LobbyAction.verify(message.lobbyAction); - if (error) - return "lobbyAction." + error; - } - } - return null; - }; - - Envelope.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Envelope) - return object; - let message = new $root.NT.Envelope(); - if (object.gameAction != null) { - if (typeof object.gameAction !== "object") - throw TypeError(".NT.Envelope.gameAction: object expected"); - message.gameAction = $root.NT.GameAction.fromObject(object.gameAction); - } - if (object.lobbyAction != null) { - if (typeof object.lobbyAction !== "object") - throw TypeError(".NT.Envelope.lobbyAction: object expected"); - message.lobbyAction = $root.NT.LobbyAction.fromObject(object.lobbyAction); - } - return message; - }; - - Envelope.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.gameAction != null && message.hasOwnProperty("gameAction")) { - object.gameAction = $root.NT.GameAction.toObject(message.gameAction, options); - if (options.oneofs) - object.kind = "gameAction"; - } - if (message.lobbyAction != null && message.hasOwnProperty("lobbyAction")) { - object.lobbyAction = $root.NT.LobbyAction.toObject(message.lobbyAction, options); - if (options.oneofs) - object.kind = "lobbyAction"; - } - return object; - }; - - Envelope.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Envelope; - })(); - - NT.GameAction = (function() { - - function GameAction(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - GameAction.prototype.cPlayerMove = null; - GameAction.prototype.sPlayerMove = null; - GameAction.prototype.cPlayerUpdate = null; - GameAction.prototype.sPlayerUpdate = null; - GameAction.prototype.cPlayerUpdateInventory = null; - GameAction.prototype.sPlayerUpdateInventory = null; - GameAction.prototype.cHostItemBank = null; - GameAction.prototype.sHostItemBank = null; - GameAction.prototype.cHostUserTake = null; - GameAction.prototype.sHostUserTake = null; - GameAction.prototype.cHostUserTakeGold = null; - GameAction.prototype.sHostUserTakeGold = null; - GameAction.prototype.cPlayerAddGold = null; - GameAction.prototype.sPlayerAddGold = null; - GameAction.prototype.cPlayerTakeGold = null; - GameAction.prototype.sPlayerTakeGold = null; - GameAction.prototype.cPlayerAddItem = null; - GameAction.prototype.sPlayerAddItem = null; - GameAction.prototype.cPlayerTakeItem = null; - GameAction.prototype.sPlayerTakeItem = null; - GameAction.prototype.cPlayerPickup = null; - GameAction.prototype.sPlayerPickup = null; - GameAction.prototype.cNemesisAbility = null; - GameAction.prototype.sNemesisAbility = null; - GameAction.prototype.cNemesisPickupItem = null; - GameAction.prototype.sNemesisPickupItem = null; - GameAction.prototype.cChat = null; - GameAction.prototype.sChat = null; - GameAction.prototype.cPlayerDeath = null; - GameAction.prototype.sPlayerDeath = null; - GameAction.prototype.cPlayerNewGamePlus = null; - GameAction.prototype.sPlayerNewGamePlus = null; - GameAction.prototype.cPlayerSecretHourglass = null; - GameAction.prototype.sPlayerSecretHourglass = null; - GameAction.prototype.cCustomModEvent = null; - GameAction.prototype.sCustomModEvent = null; - GameAction.prototype.cRespawnPenalty = null; - GameAction.prototype.sRespawnPenalty = null; - GameAction.prototype.cAngerySteve = null; - GameAction.prototype.sAngerySteve = null; - GameAction.prototype.sPlayerPos = null; - GameAction.prototype.sStatUpdate = null; - - let $oneOfFields; - - Object.defineProperty(GameAction.prototype, "action", { - get: $util.oneOfGetter($oneOfFields = ["cPlayerMove", "sPlayerMove", "cPlayerUpdate", "sPlayerUpdate", "cPlayerUpdateInventory", "sPlayerUpdateInventory", "cHostItemBank", "sHostItemBank", "cHostUserTake", "sHostUserTake", "cHostUserTakeGold", "sHostUserTakeGold", "cPlayerAddGold", "sPlayerAddGold", "cPlayerTakeGold", "sPlayerTakeGold", "cPlayerAddItem", "sPlayerAddItem", "cPlayerTakeItem", "sPlayerTakeItem", "cPlayerPickup", "sPlayerPickup", "cNemesisAbility", "sNemesisAbility", "cNemesisPickupItem", "sNemesisPickupItem", "cChat", "sChat", "cPlayerDeath", "sPlayerDeath", "cPlayerNewGamePlus", "sPlayerNewGamePlus", "cPlayerSecretHourglass", "sPlayerSecretHourglass", "cCustomModEvent", "sCustomModEvent", "cRespawnPenalty", "sRespawnPenalty", "cAngerySteve", "sAngerySteve", "sPlayerPos", "sStatUpdate"]), - set: $util.oneOfSetter($oneOfFields) - }); - - GameAction.create = function create(properties) { - return new GameAction(properties); - }; - - GameAction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cPlayerMove != null && Object.hasOwnProperty.call(message, "cPlayerMove")) - $root.NT.ClientPlayerMove.encode(message.cPlayerMove, writer.uint32(10).fork()).ldelim(); - if (message.sPlayerMove != null && Object.hasOwnProperty.call(message, "sPlayerMove")) - $root.NT.ServerPlayerMove.encode(message.sPlayerMove, writer.uint32(18).fork()).ldelim(); - if (message.cPlayerUpdate != null && Object.hasOwnProperty.call(message, "cPlayerUpdate")) - $root.NT.ClientPlayerUpdate.encode(message.cPlayerUpdate, writer.uint32(26).fork()).ldelim(); - if (message.sPlayerUpdate != null && Object.hasOwnProperty.call(message, "sPlayerUpdate")) - $root.NT.ServerPlayerUpdate.encode(message.sPlayerUpdate, writer.uint32(34).fork()).ldelim(); - if (message.cPlayerUpdateInventory != null && Object.hasOwnProperty.call(message, "cPlayerUpdateInventory")) - $root.NT.ClientPlayerUpdateInventory.encode(message.cPlayerUpdateInventory, writer.uint32(42).fork()).ldelim(); - if (message.sPlayerUpdateInventory != null && Object.hasOwnProperty.call(message, "sPlayerUpdateInventory")) - $root.NT.ServerPlayerUpdateInventory.encode(message.sPlayerUpdateInventory, writer.uint32(50).fork()).ldelim(); - if (message.cHostItemBank != null && Object.hasOwnProperty.call(message, "cHostItemBank")) - $root.NT.ClientHostItemBank.encode(message.cHostItemBank, writer.uint32(58).fork()).ldelim(); - if (message.sHostItemBank != null && Object.hasOwnProperty.call(message, "sHostItemBank")) - $root.NT.ServerHostItemBank.encode(message.sHostItemBank, writer.uint32(66).fork()).ldelim(); - if (message.cHostUserTake != null && Object.hasOwnProperty.call(message, "cHostUserTake")) - $root.NT.ClientHostUserTake.encode(message.cHostUserTake, writer.uint32(74).fork()).ldelim(); - if (message.sHostUserTake != null && Object.hasOwnProperty.call(message, "sHostUserTake")) - $root.NT.ServerHostUserTake.encode(message.sHostUserTake, writer.uint32(82).fork()).ldelim(); - if (message.cHostUserTakeGold != null && Object.hasOwnProperty.call(message, "cHostUserTakeGold")) - $root.NT.ClientHostUserTakeGold.encode(message.cHostUserTakeGold, writer.uint32(90).fork()).ldelim(); - if (message.sHostUserTakeGold != null && Object.hasOwnProperty.call(message, "sHostUserTakeGold")) - $root.NT.ServerHostUserTakeGold.encode(message.sHostUserTakeGold, writer.uint32(98).fork()).ldelim(); - if (message.cPlayerAddGold != null && Object.hasOwnProperty.call(message, "cPlayerAddGold")) - $root.NT.ClientPlayerAddGold.encode(message.cPlayerAddGold, writer.uint32(106).fork()).ldelim(); - if (message.sPlayerAddGold != null && Object.hasOwnProperty.call(message, "sPlayerAddGold")) - $root.NT.ServerPlayerAddGold.encode(message.sPlayerAddGold, writer.uint32(114).fork()).ldelim(); - if (message.cPlayerTakeGold != null && Object.hasOwnProperty.call(message, "cPlayerTakeGold")) - $root.NT.ClientPlayerTakeGold.encode(message.cPlayerTakeGold, writer.uint32(122).fork()).ldelim(); - if (message.sPlayerTakeGold != null && Object.hasOwnProperty.call(message, "sPlayerTakeGold")) - $root.NT.ServerPlayerTakeGold.encode(message.sPlayerTakeGold, writer.uint32(130).fork()).ldelim(); - if (message.cPlayerAddItem != null && Object.hasOwnProperty.call(message, "cPlayerAddItem")) - $root.NT.ClientPlayerAddItem.encode(message.cPlayerAddItem, writer.uint32(138).fork()).ldelim(); - if (message.sPlayerAddItem != null && Object.hasOwnProperty.call(message, "sPlayerAddItem")) - $root.NT.ServerPlayerAddItem.encode(message.sPlayerAddItem, writer.uint32(146).fork()).ldelim(); - if (message.cPlayerTakeItem != null && Object.hasOwnProperty.call(message, "cPlayerTakeItem")) - $root.NT.ClientPlayerTakeItem.encode(message.cPlayerTakeItem, writer.uint32(154).fork()).ldelim(); - if (message.sPlayerTakeItem != null && Object.hasOwnProperty.call(message, "sPlayerTakeItem")) - $root.NT.ServerPlayerTakeItem.encode(message.sPlayerTakeItem, writer.uint32(162).fork()).ldelim(); - if (message.cPlayerPickup != null && Object.hasOwnProperty.call(message, "cPlayerPickup")) - $root.NT.ClientPlayerPickup.encode(message.cPlayerPickup, writer.uint32(170).fork()).ldelim(); - if (message.sPlayerPickup != null && Object.hasOwnProperty.call(message, "sPlayerPickup")) - $root.NT.ServerPlayerPickup.encode(message.sPlayerPickup, writer.uint32(178).fork()).ldelim(); - if (message.cNemesisAbility != null && Object.hasOwnProperty.call(message, "cNemesisAbility")) - $root.NT.ClientNemesisAbility.encode(message.cNemesisAbility, writer.uint32(186).fork()).ldelim(); - if (message.sNemesisAbility != null && Object.hasOwnProperty.call(message, "sNemesisAbility")) - $root.NT.ServerNemesisAbility.encode(message.sNemesisAbility, writer.uint32(194).fork()).ldelim(); - if (message.cNemesisPickupItem != null && Object.hasOwnProperty.call(message, "cNemesisPickupItem")) - $root.NT.ClientNemesisPickupItem.encode(message.cNemesisPickupItem, writer.uint32(202).fork()).ldelim(); - if (message.sNemesisPickupItem != null && Object.hasOwnProperty.call(message, "sNemesisPickupItem")) - $root.NT.ServerNemesisPickupItem.encode(message.sNemesisPickupItem, writer.uint32(210).fork()).ldelim(); - if (message.cChat != null && Object.hasOwnProperty.call(message, "cChat")) - $root.NT.ClientChat.encode(message.cChat, writer.uint32(218).fork()).ldelim(); - if (message.sChat != null && Object.hasOwnProperty.call(message, "sChat")) - $root.NT.ServerChat.encode(message.sChat, writer.uint32(226).fork()).ldelim(); - if (message.cPlayerDeath != null && Object.hasOwnProperty.call(message, "cPlayerDeath")) - $root.NT.ClientPlayerDeath.encode(message.cPlayerDeath, writer.uint32(234).fork()).ldelim(); - if (message.sPlayerDeath != null && Object.hasOwnProperty.call(message, "sPlayerDeath")) - $root.NT.ServerPlayerDeath.encode(message.sPlayerDeath, writer.uint32(242).fork()).ldelim(); - if (message.cPlayerNewGamePlus != null && Object.hasOwnProperty.call(message, "cPlayerNewGamePlus")) - $root.NT.ClientPlayerNewGamePlus.encode(message.cPlayerNewGamePlus, writer.uint32(250).fork()).ldelim(); - if (message.sPlayerNewGamePlus != null && Object.hasOwnProperty.call(message, "sPlayerNewGamePlus")) - $root.NT.ServerPlayerNewGamePlus.encode(message.sPlayerNewGamePlus, writer.uint32(258).fork()).ldelim(); - if (message.cPlayerSecretHourglass != null && Object.hasOwnProperty.call(message, "cPlayerSecretHourglass")) - $root.NT.ClientPlayerSecretHourglass.encode(message.cPlayerSecretHourglass, writer.uint32(266).fork()).ldelim(); - if (message.sPlayerSecretHourglass != null && Object.hasOwnProperty.call(message, "sPlayerSecretHourglass")) - $root.NT.ServerPlayerSecretHourglass.encode(message.sPlayerSecretHourglass, writer.uint32(274).fork()).ldelim(); - if (message.cCustomModEvent != null && Object.hasOwnProperty.call(message, "cCustomModEvent")) - $root.NT.ClientCustomModEvent.encode(message.cCustomModEvent, writer.uint32(282).fork()).ldelim(); - if (message.sCustomModEvent != null && Object.hasOwnProperty.call(message, "sCustomModEvent")) - $root.NT.ServerCustomModEvent.encode(message.sCustomModEvent, writer.uint32(290).fork()).ldelim(); - if (message.cRespawnPenalty != null && Object.hasOwnProperty.call(message, "cRespawnPenalty")) - $root.NT.ClientRespawnPenalty.encode(message.cRespawnPenalty, writer.uint32(298).fork()).ldelim(); - if (message.sRespawnPenalty != null && Object.hasOwnProperty.call(message, "sRespawnPenalty")) - $root.NT.ServerRespawnPenalty.encode(message.sRespawnPenalty, writer.uint32(306).fork()).ldelim(); - if (message.cAngerySteve != null && Object.hasOwnProperty.call(message, "cAngerySteve")) - $root.NT.ClientAngerySteve.encode(message.cAngerySteve, writer.uint32(314).fork()).ldelim(); - if (message.sAngerySteve != null && Object.hasOwnProperty.call(message, "sAngerySteve")) - $root.NT.ServerAngerySteve.encode(message.sAngerySteve, writer.uint32(322).fork()).ldelim(); - if (message.sPlayerPos != null && Object.hasOwnProperty.call(message, "sPlayerPos")) - $root.NT.ServerPlayerPos.encode(message.sPlayerPos, writer.uint32(330).fork()).ldelim(); - if (message.sStatUpdate != null && Object.hasOwnProperty.call(message, "sStatUpdate")) - $root.NT.ServerStatsUpdate.encode(message.sStatUpdate, writer.uint32(338).fork()).ldelim(); - return writer; - }; - - GameAction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.GameAction(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cPlayerMove = $root.NT.ClientPlayerMove.decode(reader, reader.uint32()); - break; - case 2: - message.sPlayerMove = $root.NT.ServerPlayerMove.decode(reader, reader.uint32()); - break; - case 3: - message.cPlayerUpdate = $root.NT.ClientPlayerUpdate.decode(reader, reader.uint32()); - break; - case 4: - message.sPlayerUpdate = $root.NT.ServerPlayerUpdate.decode(reader, reader.uint32()); - break; - case 5: - message.cPlayerUpdateInventory = $root.NT.ClientPlayerUpdateInventory.decode(reader, reader.uint32()); - break; - case 6: - message.sPlayerUpdateInventory = $root.NT.ServerPlayerUpdateInventory.decode(reader, reader.uint32()); - break; - case 7: - message.cHostItemBank = $root.NT.ClientHostItemBank.decode(reader, reader.uint32()); - break; - case 8: - message.sHostItemBank = $root.NT.ServerHostItemBank.decode(reader, reader.uint32()); - break; - case 9: - message.cHostUserTake = $root.NT.ClientHostUserTake.decode(reader, reader.uint32()); - break; - case 10: - message.sHostUserTake = $root.NT.ServerHostUserTake.decode(reader, reader.uint32()); - break; - case 11: - message.cHostUserTakeGold = $root.NT.ClientHostUserTakeGold.decode(reader, reader.uint32()); - break; - case 12: - message.sHostUserTakeGold = $root.NT.ServerHostUserTakeGold.decode(reader, reader.uint32()); - break; - case 13: - message.cPlayerAddGold = $root.NT.ClientPlayerAddGold.decode(reader, reader.uint32()); - break; - case 14: - message.sPlayerAddGold = $root.NT.ServerPlayerAddGold.decode(reader, reader.uint32()); - break; - case 15: - message.cPlayerTakeGold = $root.NT.ClientPlayerTakeGold.decode(reader, reader.uint32()); - break; - case 16: - message.sPlayerTakeGold = $root.NT.ServerPlayerTakeGold.decode(reader, reader.uint32()); - break; - case 17: - message.cPlayerAddItem = $root.NT.ClientPlayerAddItem.decode(reader, reader.uint32()); - break; - case 18: - message.sPlayerAddItem = $root.NT.ServerPlayerAddItem.decode(reader, reader.uint32()); - break; - case 19: - message.cPlayerTakeItem = $root.NT.ClientPlayerTakeItem.decode(reader, reader.uint32()); - break; - case 20: - message.sPlayerTakeItem = $root.NT.ServerPlayerTakeItem.decode(reader, reader.uint32()); - break; - case 21: - message.cPlayerPickup = $root.NT.ClientPlayerPickup.decode(reader, reader.uint32()); - break; - case 22: - message.sPlayerPickup = $root.NT.ServerPlayerPickup.decode(reader, reader.uint32()); - break; - case 23: - message.cNemesisAbility = $root.NT.ClientNemesisAbility.decode(reader, reader.uint32()); - break; - case 24: - message.sNemesisAbility = $root.NT.ServerNemesisAbility.decode(reader, reader.uint32()); - break; - case 25: - message.cNemesisPickupItem = $root.NT.ClientNemesisPickupItem.decode(reader, reader.uint32()); - break; - case 26: - message.sNemesisPickupItem = $root.NT.ServerNemesisPickupItem.decode(reader, reader.uint32()); - break; - case 27: - message.cChat = $root.NT.ClientChat.decode(reader, reader.uint32()); - break; - case 28: - message.sChat = $root.NT.ServerChat.decode(reader, reader.uint32()); - break; - case 29: - message.cPlayerDeath = $root.NT.ClientPlayerDeath.decode(reader, reader.uint32()); - break; - case 30: - message.sPlayerDeath = $root.NT.ServerPlayerDeath.decode(reader, reader.uint32()); - break; - case 31: - message.cPlayerNewGamePlus = $root.NT.ClientPlayerNewGamePlus.decode(reader, reader.uint32()); - break; - case 32: - message.sPlayerNewGamePlus = $root.NT.ServerPlayerNewGamePlus.decode(reader, reader.uint32()); - break; - case 33: - message.cPlayerSecretHourglass = $root.NT.ClientPlayerSecretHourglass.decode(reader, reader.uint32()); - break; - case 34: - message.sPlayerSecretHourglass = $root.NT.ServerPlayerSecretHourglass.decode(reader, reader.uint32()); - break; - case 35: - message.cCustomModEvent = $root.NT.ClientCustomModEvent.decode(reader, reader.uint32()); - break; - case 36: - message.sCustomModEvent = $root.NT.ServerCustomModEvent.decode(reader, reader.uint32()); - break; - case 37: - message.cRespawnPenalty = $root.NT.ClientRespawnPenalty.decode(reader, reader.uint32()); - break; - case 38: - message.sRespawnPenalty = $root.NT.ServerRespawnPenalty.decode(reader, reader.uint32()); - break; - case 39: - message.cAngerySteve = $root.NT.ClientAngerySteve.decode(reader, reader.uint32()); - break; - case 40: - message.sAngerySteve = $root.NT.ServerAngerySteve.decode(reader, reader.uint32()); - break; - case 41: - message.sPlayerPos = $root.NT.ServerPlayerPos.decode(reader, reader.uint32()); - break; - case 42: - message.sStatUpdate = $root.NT.ServerStatsUpdate.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - GameAction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.cPlayerMove != null && message.hasOwnProperty("cPlayerMove")) { - properties.action = 1; - { - let error = $root.NT.ClientPlayerMove.verify(message.cPlayerMove); - if (error) - return "cPlayerMove." + error; - } - } - if (message.sPlayerMove != null && message.hasOwnProperty("sPlayerMove")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerMove.verify(message.sPlayerMove); - if (error) - return "sPlayerMove." + error; - } - } - if (message.cPlayerUpdate != null && message.hasOwnProperty("cPlayerUpdate")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerUpdate.verify(message.cPlayerUpdate); - if (error) - return "cPlayerUpdate." + error; - } - } - if (message.sPlayerUpdate != null && message.hasOwnProperty("sPlayerUpdate")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerUpdate.verify(message.sPlayerUpdate); - if (error) - return "sPlayerUpdate." + error; - } - } - if (message.cPlayerUpdateInventory != null && message.hasOwnProperty("cPlayerUpdateInventory")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerUpdateInventory.verify(message.cPlayerUpdateInventory); - if (error) - return "cPlayerUpdateInventory." + error; - } - } - if (message.sPlayerUpdateInventory != null && message.hasOwnProperty("sPlayerUpdateInventory")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerUpdateInventory.verify(message.sPlayerUpdateInventory); - if (error) - return "sPlayerUpdateInventory." + error; - } - } - if (message.cHostItemBank != null && message.hasOwnProperty("cHostItemBank")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientHostItemBank.verify(message.cHostItemBank); - if (error) - return "cHostItemBank." + error; - } - } - if (message.sHostItemBank != null && message.hasOwnProperty("sHostItemBank")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerHostItemBank.verify(message.sHostItemBank); - if (error) - return "sHostItemBank." + error; - } - } - if (message.cHostUserTake != null && message.hasOwnProperty("cHostUserTake")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientHostUserTake.verify(message.cHostUserTake); - if (error) - return "cHostUserTake." + error; - } - } - if (message.sHostUserTake != null && message.hasOwnProperty("sHostUserTake")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerHostUserTake.verify(message.sHostUserTake); - if (error) - return "sHostUserTake." + error; - } - } - if (message.cHostUserTakeGold != null && message.hasOwnProperty("cHostUserTakeGold")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientHostUserTakeGold.verify(message.cHostUserTakeGold); - if (error) - return "cHostUserTakeGold." + error; - } - } - if (message.sHostUserTakeGold != null && message.hasOwnProperty("sHostUserTakeGold")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerHostUserTakeGold.verify(message.sHostUserTakeGold); - if (error) - return "sHostUserTakeGold." + error; - } - } - if (message.cPlayerAddGold != null && message.hasOwnProperty("cPlayerAddGold")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerAddGold.verify(message.cPlayerAddGold); - if (error) - return "cPlayerAddGold." + error; - } - } - if (message.sPlayerAddGold != null && message.hasOwnProperty("sPlayerAddGold")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerAddGold.verify(message.sPlayerAddGold); - if (error) - return "sPlayerAddGold." + error; - } - } - if (message.cPlayerTakeGold != null && message.hasOwnProperty("cPlayerTakeGold")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerTakeGold.verify(message.cPlayerTakeGold); - if (error) - return "cPlayerTakeGold." + error; - } - } - if (message.sPlayerTakeGold != null && message.hasOwnProperty("sPlayerTakeGold")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerTakeGold.verify(message.sPlayerTakeGold); - if (error) - return "sPlayerTakeGold." + error; - } - } - if (message.cPlayerAddItem != null && message.hasOwnProperty("cPlayerAddItem")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerAddItem.verify(message.cPlayerAddItem); - if (error) - return "cPlayerAddItem." + error; - } - } - if (message.sPlayerAddItem != null && message.hasOwnProperty("sPlayerAddItem")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerAddItem.verify(message.sPlayerAddItem); - if (error) - return "sPlayerAddItem." + error; - } - } - if (message.cPlayerTakeItem != null && message.hasOwnProperty("cPlayerTakeItem")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerTakeItem.verify(message.cPlayerTakeItem); - if (error) - return "cPlayerTakeItem." + error; - } - } - if (message.sPlayerTakeItem != null && message.hasOwnProperty("sPlayerTakeItem")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerTakeItem.verify(message.sPlayerTakeItem); - if (error) - return "sPlayerTakeItem." + error; - } - } - if (message.cPlayerPickup != null && message.hasOwnProperty("cPlayerPickup")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerPickup.verify(message.cPlayerPickup); - if (error) - return "cPlayerPickup." + error; - } - } - if (message.sPlayerPickup != null && message.hasOwnProperty("sPlayerPickup")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerPickup.verify(message.sPlayerPickup); - if (error) - return "sPlayerPickup." + error; - } - } - if (message.cNemesisAbility != null && message.hasOwnProperty("cNemesisAbility")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientNemesisAbility.verify(message.cNemesisAbility); - if (error) - return "cNemesisAbility." + error; - } - } - if (message.sNemesisAbility != null && message.hasOwnProperty("sNemesisAbility")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerNemesisAbility.verify(message.sNemesisAbility); - if (error) - return "sNemesisAbility." + error; - } - } - if (message.cNemesisPickupItem != null && message.hasOwnProperty("cNemesisPickupItem")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientNemesisPickupItem.verify(message.cNemesisPickupItem); - if (error) - return "cNemesisPickupItem." + error; - } - } - if (message.sNemesisPickupItem != null && message.hasOwnProperty("sNemesisPickupItem")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerNemesisPickupItem.verify(message.sNemesisPickupItem); - if (error) - return "sNemesisPickupItem." + error; - } - } - if (message.cChat != null && message.hasOwnProperty("cChat")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientChat.verify(message.cChat); - if (error) - return "cChat." + error; - } - } - if (message.sChat != null && message.hasOwnProperty("sChat")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerChat.verify(message.sChat); - if (error) - return "sChat." + error; - } - } - if (message.cPlayerDeath != null && message.hasOwnProperty("cPlayerDeath")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerDeath.verify(message.cPlayerDeath); - if (error) - return "cPlayerDeath." + error; - } - } - if (message.sPlayerDeath != null && message.hasOwnProperty("sPlayerDeath")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerDeath.verify(message.sPlayerDeath); - if (error) - return "sPlayerDeath." + error; - } - } - if (message.cPlayerNewGamePlus != null && message.hasOwnProperty("cPlayerNewGamePlus")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerNewGamePlus.verify(message.cPlayerNewGamePlus); - if (error) - return "cPlayerNewGamePlus." + error; - } - } - if (message.sPlayerNewGamePlus != null && message.hasOwnProperty("sPlayerNewGamePlus")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerNewGamePlus.verify(message.sPlayerNewGamePlus); - if (error) - return "sPlayerNewGamePlus." + error; - } - } - if (message.cPlayerSecretHourglass != null && message.hasOwnProperty("cPlayerSecretHourglass")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientPlayerSecretHourglass.verify(message.cPlayerSecretHourglass); - if (error) - return "cPlayerSecretHourglass." + error; - } - } - if (message.sPlayerSecretHourglass != null && message.hasOwnProperty("sPlayerSecretHourglass")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerSecretHourglass.verify(message.sPlayerSecretHourglass); - if (error) - return "sPlayerSecretHourglass." + error; - } - } - if (message.cCustomModEvent != null && message.hasOwnProperty("cCustomModEvent")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientCustomModEvent.verify(message.cCustomModEvent); - if (error) - return "cCustomModEvent." + error; - } - } - if (message.sCustomModEvent != null && message.hasOwnProperty("sCustomModEvent")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerCustomModEvent.verify(message.sCustomModEvent); - if (error) - return "sCustomModEvent." + error; - } - } - if (message.cRespawnPenalty != null && message.hasOwnProperty("cRespawnPenalty")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientRespawnPenalty.verify(message.cRespawnPenalty); - if (error) - return "cRespawnPenalty." + error; - } - } - if (message.sRespawnPenalty != null && message.hasOwnProperty("sRespawnPenalty")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRespawnPenalty.verify(message.sRespawnPenalty); - if (error) - return "sRespawnPenalty." + error; - } - } - if (message.cAngerySteve != null && message.hasOwnProperty("cAngerySteve")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientAngerySteve.verify(message.cAngerySteve); - if (error) - return "cAngerySteve." + error; - } - } - if (message.sAngerySteve != null && message.hasOwnProperty("sAngerySteve")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerAngerySteve.verify(message.sAngerySteve); - if (error) - return "sAngerySteve." + error; - } - } - if (message.sPlayerPos != null && message.hasOwnProperty("sPlayerPos")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerPlayerPos.verify(message.sPlayerPos); - if (error) - return "sPlayerPos." + error; - } - } - if (message.sStatUpdate != null && message.hasOwnProperty("sStatUpdate")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerStatsUpdate.verify(message.sStatUpdate); - if (error) - return "sStatUpdate." + error; - } - } - return null; - }; - - GameAction.fromObject = function fromObject(object) { - if (object instanceof $root.NT.GameAction) - return object; - let message = new $root.NT.GameAction(); - if (object.cPlayerMove != null) { - if (typeof object.cPlayerMove !== "object") - throw TypeError(".NT.GameAction.cPlayerMove: object expected"); - message.cPlayerMove = $root.NT.ClientPlayerMove.fromObject(object.cPlayerMove); - } - if (object.sPlayerMove != null) { - if (typeof object.sPlayerMove !== "object") - throw TypeError(".NT.GameAction.sPlayerMove: object expected"); - message.sPlayerMove = $root.NT.ServerPlayerMove.fromObject(object.sPlayerMove); - } - if (object.cPlayerUpdate != null) { - if (typeof object.cPlayerUpdate !== "object") - throw TypeError(".NT.GameAction.cPlayerUpdate: object expected"); - message.cPlayerUpdate = $root.NT.ClientPlayerUpdate.fromObject(object.cPlayerUpdate); - } - if (object.sPlayerUpdate != null) { - if (typeof object.sPlayerUpdate !== "object") - throw TypeError(".NT.GameAction.sPlayerUpdate: object expected"); - message.sPlayerUpdate = $root.NT.ServerPlayerUpdate.fromObject(object.sPlayerUpdate); - } - if (object.cPlayerUpdateInventory != null) { - if (typeof object.cPlayerUpdateInventory !== "object") - throw TypeError(".NT.GameAction.cPlayerUpdateInventory: object expected"); - message.cPlayerUpdateInventory = $root.NT.ClientPlayerUpdateInventory.fromObject(object.cPlayerUpdateInventory); - } - if (object.sPlayerUpdateInventory != null) { - if (typeof object.sPlayerUpdateInventory !== "object") - throw TypeError(".NT.GameAction.sPlayerUpdateInventory: object expected"); - message.sPlayerUpdateInventory = $root.NT.ServerPlayerUpdateInventory.fromObject(object.sPlayerUpdateInventory); - } - if (object.cHostItemBank != null) { - if (typeof object.cHostItemBank !== "object") - throw TypeError(".NT.GameAction.cHostItemBank: object expected"); - message.cHostItemBank = $root.NT.ClientHostItemBank.fromObject(object.cHostItemBank); - } - if (object.sHostItemBank != null) { - if (typeof object.sHostItemBank !== "object") - throw TypeError(".NT.GameAction.sHostItemBank: object expected"); - message.sHostItemBank = $root.NT.ServerHostItemBank.fromObject(object.sHostItemBank); - } - if (object.cHostUserTake != null) { - if (typeof object.cHostUserTake !== "object") - throw TypeError(".NT.GameAction.cHostUserTake: object expected"); - message.cHostUserTake = $root.NT.ClientHostUserTake.fromObject(object.cHostUserTake); - } - if (object.sHostUserTake != null) { - if (typeof object.sHostUserTake !== "object") - throw TypeError(".NT.GameAction.sHostUserTake: object expected"); - message.sHostUserTake = $root.NT.ServerHostUserTake.fromObject(object.sHostUserTake); - } - if (object.cHostUserTakeGold != null) { - if (typeof object.cHostUserTakeGold !== "object") - throw TypeError(".NT.GameAction.cHostUserTakeGold: object expected"); - message.cHostUserTakeGold = $root.NT.ClientHostUserTakeGold.fromObject(object.cHostUserTakeGold); - } - if (object.sHostUserTakeGold != null) { - if (typeof object.sHostUserTakeGold !== "object") - throw TypeError(".NT.GameAction.sHostUserTakeGold: object expected"); - message.sHostUserTakeGold = $root.NT.ServerHostUserTakeGold.fromObject(object.sHostUserTakeGold); - } - if (object.cPlayerAddGold != null) { - if (typeof object.cPlayerAddGold !== "object") - throw TypeError(".NT.GameAction.cPlayerAddGold: object expected"); - message.cPlayerAddGold = $root.NT.ClientPlayerAddGold.fromObject(object.cPlayerAddGold); - } - if (object.sPlayerAddGold != null) { - if (typeof object.sPlayerAddGold !== "object") - throw TypeError(".NT.GameAction.sPlayerAddGold: object expected"); - message.sPlayerAddGold = $root.NT.ServerPlayerAddGold.fromObject(object.sPlayerAddGold); - } - if (object.cPlayerTakeGold != null) { - if (typeof object.cPlayerTakeGold !== "object") - throw TypeError(".NT.GameAction.cPlayerTakeGold: object expected"); - message.cPlayerTakeGold = $root.NT.ClientPlayerTakeGold.fromObject(object.cPlayerTakeGold); - } - if (object.sPlayerTakeGold != null) { - if (typeof object.sPlayerTakeGold !== "object") - throw TypeError(".NT.GameAction.sPlayerTakeGold: object expected"); - message.sPlayerTakeGold = $root.NT.ServerPlayerTakeGold.fromObject(object.sPlayerTakeGold); - } - if (object.cPlayerAddItem != null) { - if (typeof object.cPlayerAddItem !== "object") - throw TypeError(".NT.GameAction.cPlayerAddItem: object expected"); - message.cPlayerAddItem = $root.NT.ClientPlayerAddItem.fromObject(object.cPlayerAddItem); - } - if (object.sPlayerAddItem != null) { - if (typeof object.sPlayerAddItem !== "object") - throw TypeError(".NT.GameAction.sPlayerAddItem: object expected"); - message.sPlayerAddItem = $root.NT.ServerPlayerAddItem.fromObject(object.sPlayerAddItem); - } - if (object.cPlayerTakeItem != null) { - if (typeof object.cPlayerTakeItem !== "object") - throw TypeError(".NT.GameAction.cPlayerTakeItem: object expected"); - message.cPlayerTakeItem = $root.NT.ClientPlayerTakeItem.fromObject(object.cPlayerTakeItem); - } - if (object.sPlayerTakeItem != null) { - if (typeof object.sPlayerTakeItem !== "object") - throw TypeError(".NT.GameAction.sPlayerTakeItem: object expected"); - message.sPlayerTakeItem = $root.NT.ServerPlayerTakeItem.fromObject(object.sPlayerTakeItem); - } - if (object.cPlayerPickup != null) { - if (typeof object.cPlayerPickup !== "object") - throw TypeError(".NT.GameAction.cPlayerPickup: object expected"); - message.cPlayerPickup = $root.NT.ClientPlayerPickup.fromObject(object.cPlayerPickup); - } - if (object.sPlayerPickup != null) { - if (typeof object.sPlayerPickup !== "object") - throw TypeError(".NT.GameAction.sPlayerPickup: object expected"); - message.sPlayerPickup = $root.NT.ServerPlayerPickup.fromObject(object.sPlayerPickup); - } - if (object.cNemesisAbility != null) { - if (typeof object.cNemesisAbility !== "object") - throw TypeError(".NT.GameAction.cNemesisAbility: object expected"); - message.cNemesisAbility = $root.NT.ClientNemesisAbility.fromObject(object.cNemesisAbility); - } - if (object.sNemesisAbility != null) { - if (typeof object.sNemesisAbility !== "object") - throw TypeError(".NT.GameAction.sNemesisAbility: object expected"); - message.sNemesisAbility = $root.NT.ServerNemesisAbility.fromObject(object.sNemesisAbility); - } - if (object.cNemesisPickupItem != null) { - if (typeof object.cNemesisPickupItem !== "object") - throw TypeError(".NT.GameAction.cNemesisPickupItem: object expected"); - message.cNemesisPickupItem = $root.NT.ClientNemesisPickupItem.fromObject(object.cNemesisPickupItem); - } - if (object.sNemesisPickupItem != null) { - if (typeof object.sNemesisPickupItem !== "object") - throw TypeError(".NT.GameAction.sNemesisPickupItem: object expected"); - message.sNemesisPickupItem = $root.NT.ServerNemesisPickupItem.fromObject(object.sNemesisPickupItem); - } - if (object.cChat != null) { - if (typeof object.cChat !== "object") - throw TypeError(".NT.GameAction.cChat: object expected"); - message.cChat = $root.NT.ClientChat.fromObject(object.cChat); - } - if (object.sChat != null) { - if (typeof object.sChat !== "object") - throw TypeError(".NT.GameAction.sChat: object expected"); - message.sChat = $root.NT.ServerChat.fromObject(object.sChat); - } - if (object.cPlayerDeath != null) { - if (typeof object.cPlayerDeath !== "object") - throw TypeError(".NT.GameAction.cPlayerDeath: object expected"); - message.cPlayerDeath = $root.NT.ClientPlayerDeath.fromObject(object.cPlayerDeath); - } - if (object.sPlayerDeath != null) { - if (typeof object.sPlayerDeath !== "object") - throw TypeError(".NT.GameAction.sPlayerDeath: object expected"); - message.sPlayerDeath = $root.NT.ServerPlayerDeath.fromObject(object.sPlayerDeath); - } - if (object.cPlayerNewGamePlus != null) { - if (typeof object.cPlayerNewGamePlus !== "object") - throw TypeError(".NT.GameAction.cPlayerNewGamePlus: object expected"); - message.cPlayerNewGamePlus = $root.NT.ClientPlayerNewGamePlus.fromObject(object.cPlayerNewGamePlus); - } - if (object.sPlayerNewGamePlus != null) { - if (typeof object.sPlayerNewGamePlus !== "object") - throw TypeError(".NT.GameAction.sPlayerNewGamePlus: object expected"); - message.sPlayerNewGamePlus = $root.NT.ServerPlayerNewGamePlus.fromObject(object.sPlayerNewGamePlus); - } - if (object.cPlayerSecretHourglass != null) { - if (typeof object.cPlayerSecretHourglass !== "object") - throw TypeError(".NT.GameAction.cPlayerSecretHourglass: object expected"); - message.cPlayerSecretHourglass = $root.NT.ClientPlayerSecretHourglass.fromObject(object.cPlayerSecretHourglass); - } - if (object.sPlayerSecretHourglass != null) { - if (typeof object.sPlayerSecretHourglass !== "object") - throw TypeError(".NT.GameAction.sPlayerSecretHourglass: object expected"); - message.sPlayerSecretHourglass = $root.NT.ServerPlayerSecretHourglass.fromObject(object.sPlayerSecretHourglass); - } - if (object.cCustomModEvent != null) { - if (typeof object.cCustomModEvent !== "object") - throw TypeError(".NT.GameAction.cCustomModEvent: object expected"); - message.cCustomModEvent = $root.NT.ClientCustomModEvent.fromObject(object.cCustomModEvent); - } - if (object.sCustomModEvent != null) { - if (typeof object.sCustomModEvent !== "object") - throw TypeError(".NT.GameAction.sCustomModEvent: object expected"); - message.sCustomModEvent = $root.NT.ServerCustomModEvent.fromObject(object.sCustomModEvent); - } - if (object.cRespawnPenalty != null) { - if (typeof object.cRespawnPenalty !== "object") - throw TypeError(".NT.GameAction.cRespawnPenalty: object expected"); - message.cRespawnPenalty = $root.NT.ClientRespawnPenalty.fromObject(object.cRespawnPenalty); - } - if (object.sRespawnPenalty != null) { - if (typeof object.sRespawnPenalty !== "object") - throw TypeError(".NT.GameAction.sRespawnPenalty: object expected"); - message.sRespawnPenalty = $root.NT.ServerRespawnPenalty.fromObject(object.sRespawnPenalty); - } - if (object.cAngerySteve != null) { - if (typeof object.cAngerySteve !== "object") - throw TypeError(".NT.GameAction.cAngerySteve: object expected"); - message.cAngerySteve = $root.NT.ClientAngerySteve.fromObject(object.cAngerySteve); - } - if (object.sAngerySteve != null) { - if (typeof object.sAngerySteve !== "object") - throw TypeError(".NT.GameAction.sAngerySteve: object expected"); - message.sAngerySteve = $root.NT.ServerAngerySteve.fromObject(object.sAngerySteve); - } - if (object.sPlayerPos != null) { - if (typeof object.sPlayerPos !== "object") - throw TypeError(".NT.GameAction.sPlayerPos: object expected"); - message.sPlayerPos = $root.NT.ServerPlayerPos.fromObject(object.sPlayerPos); - } - if (object.sStatUpdate != null) { - if (typeof object.sStatUpdate !== "object") - throw TypeError(".NT.GameAction.sStatUpdate: object expected"); - message.sStatUpdate = $root.NT.ServerStatsUpdate.fromObject(object.sStatUpdate); - } - return message; - }; - - GameAction.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.cPlayerMove != null && message.hasOwnProperty("cPlayerMove")) { - object.cPlayerMove = $root.NT.ClientPlayerMove.toObject(message.cPlayerMove, options); - if (options.oneofs) - object.action = "cPlayerMove"; - } - if (message.sPlayerMove != null && message.hasOwnProperty("sPlayerMove")) { - object.sPlayerMove = $root.NT.ServerPlayerMove.toObject(message.sPlayerMove, options); - if (options.oneofs) - object.action = "sPlayerMove"; - } - if (message.cPlayerUpdate != null && message.hasOwnProperty("cPlayerUpdate")) { - object.cPlayerUpdate = $root.NT.ClientPlayerUpdate.toObject(message.cPlayerUpdate, options); - if (options.oneofs) - object.action = "cPlayerUpdate"; - } - if (message.sPlayerUpdate != null && message.hasOwnProperty("sPlayerUpdate")) { - object.sPlayerUpdate = $root.NT.ServerPlayerUpdate.toObject(message.sPlayerUpdate, options); - if (options.oneofs) - object.action = "sPlayerUpdate"; - } - if (message.cPlayerUpdateInventory != null && message.hasOwnProperty("cPlayerUpdateInventory")) { - object.cPlayerUpdateInventory = $root.NT.ClientPlayerUpdateInventory.toObject(message.cPlayerUpdateInventory, options); - if (options.oneofs) - object.action = "cPlayerUpdateInventory"; - } - if (message.sPlayerUpdateInventory != null && message.hasOwnProperty("sPlayerUpdateInventory")) { - object.sPlayerUpdateInventory = $root.NT.ServerPlayerUpdateInventory.toObject(message.sPlayerUpdateInventory, options); - if (options.oneofs) - object.action = "sPlayerUpdateInventory"; - } - if (message.cHostItemBank != null && message.hasOwnProperty("cHostItemBank")) { - object.cHostItemBank = $root.NT.ClientHostItemBank.toObject(message.cHostItemBank, options); - if (options.oneofs) - object.action = "cHostItemBank"; - } - if (message.sHostItemBank != null && message.hasOwnProperty("sHostItemBank")) { - object.sHostItemBank = $root.NT.ServerHostItemBank.toObject(message.sHostItemBank, options); - if (options.oneofs) - object.action = "sHostItemBank"; - } - if (message.cHostUserTake != null && message.hasOwnProperty("cHostUserTake")) { - object.cHostUserTake = $root.NT.ClientHostUserTake.toObject(message.cHostUserTake, options); - if (options.oneofs) - object.action = "cHostUserTake"; - } - if (message.sHostUserTake != null && message.hasOwnProperty("sHostUserTake")) { - object.sHostUserTake = $root.NT.ServerHostUserTake.toObject(message.sHostUserTake, options); - if (options.oneofs) - object.action = "sHostUserTake"; - } - if (message.cHostUserTakeGold != null && message.hasOwnProperty("cHostUserTakeGold")) { - object.cHostUserTakeGold = $root.NT.ClientHostUserTakeGold.toObject(message.cHostUserTakeGold, options); - if (options.oneofs) - object.action = "cHostUserTakeGold"; - } - if (message.sHostUserTakeGold != null && message.hasOwnProperty("sHostUserTakeGold")) { - object.sHostUserTakeGold = $root.NT.ServerHostUserTakeGold.toObject(message.sHostUserTakeGold, options); - if (options.oneofs) - object.action = "sHostUserTakeGold"; - } - if (message.cPlayerAddGold != null && message.hasOwnProperty("cPlayerAddGold")) { - object.cPlayerAddGold = $root.NT.ClientPlayerAddGold.toObject(message.cPlayerAddGold, options); - if (options.oneofs) - object.action = "cPlayerAddGold"; - } - if (message.sPlayerAddGold != null && message.hasOwnProperty("sPlayerAddGold")) { - object.sPlayerAddGold = $root.NT.ServerPlayerAddGold.toObject(message.sPlayerAddGold, options); - if (options.oneofs) - object.action = "sPlayerAddGold"; - } - if (message.cPlayerTakeGold != null && message.hasOwnProperty("cPlayerTakeGold")) { - object.cPlayerTakeGold = $root.NT.ClientPlayerTakeGold.toObject(message.cPlayerTakeGold, options); - if (options.oneofs) - object.action = "cPlayerTakeGold"; - } - if (message.sPlayerTakeGold != null && message.hasOwnProperty("sPlayerTakeGold")) { - object.sPlayerTakeGold = $root.NT.ServerPlayerTakeGold.toObject(message.sPlayerTakeGold, options); - if (options.oneofs) - object.action = "sPlayerTakeGold"; - } - if (message.cPlayerAddItem != null && message.hasOwnProperty("cPlayerAddItem")) { - object.cPlayerAddItem = $root.NT.ClientPlayerAddItem.toObject(message.cPlayerAddItem, options); - if (options.oneofs) - object.action = "cPlayerAddItem"; - } - if (message.sPlayerAddItem != null && message.hasOwnProperty("sPlayerAddItem")) { - object.sPlayerAddItem = $root.NT.ServerPlayerAddItem.toObject(message.sPlayerAddItem, options); - if (options.oneofs) - object.action = "sPlayerAddItem"; - } - if (message.cPlayerTakeItem != null && message.hasOwnProperty("cPlayerTakeItem")) { - object.cPlayerTakeItem = $root.NT.ClientPlayerTakeItem.toObject(message.cPlayerTakeItem, options); - if (options.oneofs) - object.action = "cPlayerTakeItem"; - } - if (message.sPlayerTakeItem != null && message.hasOwnProperty("sPlayerTakeItem")) { - object.sPlayerTakeItem = $root.NT.ServerPlayerTakeItem.toObject(message.sPlayerTakeItem, options); - if (options.oneofs) - object.action = "sPlayerTakeItem"; - } - if (message.cPlayerPickup != null && message.hasOwnProperty("cPlayerPickup")) { - object.cPlayerPickup = $root.NT.ClientPlayerPickup.toObject(message.cPlayerPickup, options); - if (options.oneofs) - object.action = "cPlayerPickup"; - } - if (message.sPlayerPickup != null && message.hasOwnProperty("sPlayerPickup")) { - object.sPlayerPickup = $root.NT.ServerPlayerPickup.toObject(message.sPlayerPickup, options); - if (options.oneofs) - object.action = "sPlayerPickup"; - } - if (message.cNemesisAbility != null && message.hasOwnProperty("cNemesisAbility")) { - object.cNemesisAbility = $root.NT.ClientNemesisAbility.toObject(message.cNemesisAbility, options); - if (options.oneofs) - object.action = "cNemesisAbility"; - } - if (message.sNemesisAbility != null && message.hasOwnProperty("sNemesisAbility")) { - object.sNemesisAbility = $root.NT.ServerNemesisAbility.toObject(message.sNemesisAbility, options); - if (options.oneofs) - object.action = "sNemesisAbility"; - } - if (message.cNemesisPickupItem != null && message.hasOwnProperty("cNemesisPickupItem")) { - object.cNemesisPickupItem = $root.NT.ClientNemesisPickupItem.toObject(message.cNemesisPickupItem, options); - if (options.oneofs) - object.action = "cNemesisPickupItem"; - } - if (message.sNemesisPickupItem != null && message.hasOwnProperty("sNemesisPickupItem")) { - object.sNemesisPickupItem = $root.NT.ServerNemesisPickupItem.toObject(message.sNemesisPickupItem, options); - if (options.oneofs) - object.action = "sNemesisPickupItem"; - } - if (message.cChat != null && message.hasOwnProperty("cChat")) { - object.cChat = $root.NT.ClientChat.toObject(message.cChat, options); - if (options.oneofs) - object.action = "cChat"; - } - if (message.sChat != null && message.hasOwnProperty("sChat")) { - object.sChat = $root.NT.ServerChat.toObject(message.sChat, options); - if (options.oneofs) - object.action = "sChat"; - } - if (message.cPlayerDeath != null && message.hasOwnProperty("cPlayerDeath")) { - object.cPlayerDeath = $root.NT.ClientPlayerDeath.toObject(message.cPlayerDeath, options); - if (options.oneofs) - object.action = "cPlayerDeath"; - } - if (message.sPlayerDeath != null && message.hasOwnProperty("sPlayerDeath")) { - object.sPlayerDeath = $root.NT.ServerPlayerDeath.toObject(message.sPlayerDeath, options); - if (options.oneofs) - object.action = "sPlayerDeath"; - } - if (message.cPlayerNewGamePlus != null && message.hasOwnProperty("cPlayerNewGamePlus")) { - object.cPlayerNewGamePlus = $root.NT.ClientPlayerNewGamePlus.toObject(message.cPlayerNewGamePlus, options); - if (options.oneofs) - object.action = "cPlayerNewGamePlus"; - } - if (message.sPlayerNewGamePlus != null && message.hasOwnProperty("sPlayerNewGamePlus")) { - object.sPlayerNewGamePlus = $root.NT.ServerPlayerNewGamePlus.toObject(message.sPlayerNewGamePlus, options); - if (options.oneofs) - object.action = "sPlayerNewGamePlus"; - } - if (message.cPlayerSecretHourglass != null && message.hasOwnProperty("cPlayerSecretHourglass")) { - object.cPlayerSecretHourglass = $root.NT.ClientPlayerSecretHourglass.toObject(message.cPlayerSecretHourglass, options); - if (options.oneofs) - object.action = "cPlayerSecretHourglass"; - } - if (message.sPlayerSecretHourglass != null && message.hasOwnProperty("sPlayerSecretHourglass")) { - object.sPlayerSecretHourglass = $root.NT.ServerPlayerSecretHourglass.toObject(message.sPlayerSecretHourglass, options); - if (options.oneofs) - object.action = "sPlayerSecretHourglass"; - } - if (message.cCustomModEvent != null && message.hasOwnProperty("cCustomModEvent")) { - object.cCustomModEvent = $root.NT.ClientCustomModEvent.toObject(message.cCustomModEvent, options); - if (options.oneofs) - object.action = "cCustomModEvent"; - } - if (message.sCustomModEvent != null && message.hasOwnProperty("sCustomModEvent")) { - object.sCustomModEvent = $root.NT.ServerCustomModEvent.toObject(message.sCustomModEvent, options); - if (options.oneofs) - object.action = "sCustomModEvent"; - } - if (message.cRespawnPenalty != null && message.hasOwnProperty("cRespawnPenalty")) { - object.cRespawnPenalty = $root.NT.ClientRespawnPenalty.toObject(message.cRespawnPenalty, options); - if (options.oneofs) - object.action = "cRespawnPenalty"; - } - if (message.sRespawnPenalty != null && message.hasOwnProperty("sRespawnPenalty")) { - object.sRespawnPenalty = $root.NT.ServerRespawnPenalty.toObject(message.sRespawnPenalty, options); - if (options.oneofs) - object.action = "sRespawnPenalty"; - } - if (message.cAngerySteve != null && message.hasOwnProperty("cAngerySteve")) { - object.cAngerySteve = $root.NT.ClientAngerySteve.toObject(message.cAngerySteve, options); - if (options.oneofs) - object.action = "cAngerySteve"; - } - if (message.sAngerySteve != null && message.hasOwnProperty("sAngerySteve")) { - object.sAngerySteve = $root.NT.ServerAngerySteve.toObject(message.sAngerySteve, options); - if (options.oneofs) - object.action = "sAngerySteve"; - } - if (message.sPlayerPos != null && message.hasOwnProperty("sPlayerPos")) { - object.sPlayerPos = $root.NT.ServerPlayerPos.toObject(message.sPlayerPos, options); - if (options.oneofs) - object.action = "sPlayerPos"; - } - if (message.sStatUpdate != null && message.hasOwnProperty("sStatUpdate")) { - object.sStatUpdate = $root.NT.ServerStatsUpdate.toObject(message.sStatUpdate, options); - if (options.oneofs) - object.action = "sStatUpdate"; - } - return object; - }; - - GameAction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GameAction; - })(); - - NT.PlayerFrame = (function() { - - function PlayerFrame(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - PlayerFrame.prototype.x = null; - PlayerFrame.prototype.y = null; - PlayerFrame.prototype.armR = null; - PlayerFrame.prototype.armScaleY = null; - PlayerFrame.prototype.scaleX = null; - PlayerFrame.prototype.anim = null; - PlayerFrame.prototype.held = null; - - let $oneOfFields; - - Object.defineProperty(PlayerFrame.prototype, "_x", { - get: $util.oneOfGetter($oneOfFields = ["x"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(PlayerFrame.prototype, "_y", { - get: $util.oneOfGetter($oneOfFields = ["y"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(PlayerFrame.prototype, "_armR", { - get: $util.oneOfGetter($oneOfFields = ["armR"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(PlayerFrame.prototype, "_armScaleY", { - get: $util.oneOfGetter($oneOfFields = ["armScaleY"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(PlayerFrame.prototype, "_scaleX", { - get: $util.oneOfGetter($oneOfFields = ["scaleX"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(PlayerFrame.prototype, "_anim", { - get: $util.oneOfGetter($oneOfFields = ["anim"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(PlayerFrame.prototype, "_held", { - get: $util.oneOfGetter($oneOfFields = ["held"]), - set: $util.oneOfSetter($oneOfFields) - }); - - PlayerFrame.create = function create(properties) { - return new PlayerFrame(properties); - }; - - PlayerFrame.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.x != null && Object.hasOwnProperty.call(message, "x")) - writer.uint32(13).float(message.x); - if (message.y != null && Object.hasOwnProperty.call(message, "y")) - writer.uint32(21).float(message.y); - if (message.armR != null && Object.hasOwnProperty.call(message, "armR")) - writer.uint32(29).float(message.armR); - if (message.armScaleY != null && Object.hasOwnProperty.call(message, "armScaleY")) - writer.uint32(37).float(message.armScaleY); - if (message.scaleX != null && Object.hasOwnProperty.call(message, "scaleX")) - writer.uint32(45).float(message.scaleX); - if (message.anim != null && Object.hasOwnProperty.call(message, "anim")) - writer.uint32(48).int32(message.anim); - if (message.held != null && Object.hasOwnProperty.call(message, "held")) - writer.uint32(56).int32(message.held); - return writer; - }; - - PlayerFrame.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.PlayerFrame(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.x = reader.float(); - break; - case 2: - message.y = reader.float(); - break; - case 3: - message.armR = reader.float(); - break; - case 4: - message.armScaleY = reader.float(); - break; - case 5: - message.scaleX = reader.float(); - break; - case 6: - message.anim = reader.int32(); - break; - case 7: - message.held = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - PlayerFrame.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.x != null && message.hasOwnProperty("x")) { - properties._x = 1; - if (typeof message.x !== "number") - return "x: number expected"; - } - if (message.y != null && message.hasOwnProperty("y")) { - properties._y = 1; - if (typeof message.y !== "number") - return "y: number expected"; - } - if (message.armR != null && message.hasOwnProperty("armR")) { - properties._armR = 1; - if (typeof message.armR !== "number") - return "armR: number expected"; - } - if (message.armScaleY != null && message.hasOwnProperty("armScaleY")) { - properties._armScaleY = 1; - if (typeof message.armScaleY !== "number") - return "armScaleY: number expected"; - } - if (message.scaleX != null && message.hasOwnProperty("scaleX")) { - properties._scaleX = 1; - if (typeof message.scaleX !== "number") - return "scaleX: number expected"; - } - if (message.anim != null && message.hasOwnProperty("anim")) { - properties._anim = 1; - if (!$util.isInteger(message.anim)) - return "anim: integer expected"; - } - if (message.held != null && message.hasOwnProperty("held")) { - properties._held = 1; - if (!$util.isInteger(message.held)) - return "held: integer expected"; - } - return null; - }; - - PlayerFrame.fromObject = function fromObject(object) { - if (object instanceof $root.NT.PlayerFrame) - return object; - let message = new $root.NT.PlayerFrame(); - if (object.x != null) - message.x = Number(object.x); - if (object.y != null) - message.y = Number(object.y); - if (object.armR != null) - message.armR = Number(object.armR); - if (object.armScaleY != null) - message.armScaleY = Number(object.armScaleY); - if (object.scaleX != null) - message.scaleX = Number(object.scaleX); - if (object.anim != null) - message.anim = object.anim | 0; - if (object.held != null) - message.held = object.held | 0; - return message; - }; - - PlayerFrame.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.x != null && message.hasOwnProperty("x")) { - object.x = options.json && !isFinite(message.x) ? String(message.x) : message.x; - if (options.oneofs) - object._x = "x"; - } - if (message.y != null && message.hasOwnProperty("y")) { - object.y = options.json && !isFinite(message.y) ? String(message.y) : message.y; - if (options.oneofs) - object._y = "y"; - } - if (message.armR != null && message.hasOwnProperty("armR")) { - object.armR = options.json && !isFinite(message.armR) ? String(message.armR) : message.armR; - if (options.oneofs) - object._armR = "armR"; - } - if (message.armScaleY != null && message.hasOwnProperty("armScaleY")) { - object.armScaleY = options.json && !isFinite(message.armScaleY) ? String(message.armScaleY) : message.armScaleY; - if (options.oneofs) - object._armScaleY = "armScaleY"; - } - if (message.scaleX != null && message.hasOwnProperty("scaleX")) { - object.scaleX = options.json && !isFinite(message.scaleX) ? String(message.scaleX) : message.scaleX; - if (options.oneofs) - object._scaleX = "scaleX"; - } - if (message.anim != null && message.hasOwnProperty("anim")) { - object.anim = message.anim; - if (options.oneofs) - object._anim = "anim"; - } - if (message.held != null && message.hasOwnProperty("held")) { - object.held = message.held; - if (options.oneofs) - object._held = "held"; - } - return object; - }; - - PlayerFrame.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PlayerFrame; - })(); - - NT.ServerPlayerPos = (function() { - - function ServerPlayerPos(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerPos.prototype.userId = ""; - ServerPlayerPos.prototype.x = 0; - ServerPlayerPos.prototype.y = 0; - - ServerPlayerPos.create = function create(properties) { - return new ServerPlayerPos(properties); - }; - - ServerPlayerPos.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.x != null && Object.hasOwnProperty.call(message, "x")) - writer.uint32(21).float(message.x); - if (message.y != null && Object.hasOwnProperty.call(message, "y")) - writer.uint32(29).float(message.y); - return writer; - }; - - ServerPlayerPos.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerPos(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.x = reader.float(); - break; - case 3: - message.y = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerPos.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.x != null && message.hasOwnProperty("x")) - if (typeof message.x !== "number") - return "x: number expected"; - if (message.y != null && message.hasOwnProperty("y")) - if (typeof message.y !== "number") - return "y: number expected"; - return null; - }; - - ServerPlayerPos.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerPos) - return object; - let message = new $root.NT.ServerPlayerPos(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.x != null) - message.x = Number(object.x); - if (object.y != null) - message.y = Number(object.y); - return message; - }; - - ServerPlayerPos.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.x = 0; - object.y = 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.x != null && message.hasOwnProperty("x")) - object.x = options.json && !isFinite(message.x) ? String(message.x) : message.x; - if (message.y != null && message.hasOwnProperty("y")) - object.y = options.json && !isFinite(message.y) ? String(message.y) : message.y; - return object; - }; - - ServerPlayerPos.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerPos; - })(); - - NT.ClientPlayerMove = (function() { - - function ClientPlayerMove(properties) { - this.frames = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerMove.prototype.frames = $util.emptyArray; - - ClientPlayerMove.create = function create(properties) { - return new ClientPlayerMove(properties); - }; - - ClientPlayerMove.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.frames != null && message.frames.length) - for (let i = 0; i < message.frames.length; ++i) - $root.NT.PlayerFrame.encode(message.frames[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - ClientPlayerMove.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerMove(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.frames && message.frames.length)) - message.frames = []; - message.frames.push($root.NT.PlayerFrame.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerMove.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.frames != null && message.hasOwnProperty("frames")) { - if (!Array.isArray(message.frames)) - return "frames: array expected"; - for (let i = 0; i < message.frames.length; ++i) { - let error = $root.NT.PlayerFrame.verify(message.frames[i]); - if (error) - return "frames." + error; - } - } - return null; - }; - - ClientPlayerMove.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerMove) - return object; - let message = new $root.NT.ClientPlayerMove(); - if (object.frames) { - if (!Array.isArray(object.frames)) - throw TypeError(".NT.ClientPlayerMove.frames: array expected"); - message.frames = []; - for (let i = 0; i < object.frames.length; ++i) { - if (typeof object.frames[i] !== "object") - throw TypeError(".NT.ClientPlayerMove.frames: object expected"); - message.frames[i] = $root.NT.PlayerFrame.fromObject(object.frames[i]); - } - } - return message; - }; - - ClientPlayerMove.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.frames = []; - if (message.frames && message.frames.length) { - object.frames = []; - for (let j = 0; j < message.frames.length; ++j) - object.frames[j] = $root.NT.PlayerFrame.toObject(message.frames[j], options); - } - return object; - }; - - ClientPlayerMove.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerMove; - })(); - - NT.ServerPlayerMove = (function() { - - function ServerPlayerMove(properties) { - this.frames = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerMove.prototype.userId = ""; - ServerPlayerMove.prototype.frames = $util.emptyArray; - - ServerPlayerMove.create = function create(properties) { - return new ServerPlayerMove(properties); - }; - - ServerPlayerMove.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.frames != null && message.frames.length) - for (let i = 0; i < message.frames.length; ++i) - $root.NT.PlayerFrame.encode(message.frames[i], writer.uint32(18).fork()).ldelim(); - return writer; - }; - - ServerPlayerMove.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerMove(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - if (!(message.frames && message.frames.length)) - message.frames = []; - message.frames.push($root.NT.PlayerFrame.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerMove.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.frames != null && message.hasOwnProperty("frames")) { - if (!Array.isArray(message.frames)) - return "frames: array expected"; - for (let i = 0; i < message.frames.length; ++i) { - let error = $root.NT.PlayerFrame.verify(message.frames[i]); - if (error) - return "frames." + error; - } - } - return null; - }; - - ServerPlayerMove.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerMove) - return object; - let message = new $root.NT.ServerPlayerMove(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.frames) { - if (!Array.isArray(object.frames)) - throw TypeError(".NT.ServerPlayerMove.frames: array expected"); - message.frames = []; - for (let i = 0; i < object.frames.length; ++i) { - if (typeof object.frames[i] !== "object") - throw TypeError(".NT.ServerPlayerMove.frames: object expected"); - message.frames[i] = $root.NT.PlayerFrame.fromObject(object.frames[i]); - } - } - return message; - }; - - ServerPlayerMove.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.frames = []; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.frames && message.frames.length) { - object.frames = []; - for (let j = 0; j < message.frames.length; ++j) - object.frames[j] = $root.NT.PlayerFrame.toObject(message.frames[j], options); - } - return object; - }; - - ServerPlayerMove.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerMove; - })(); - - NT.ClientPlayerUpdate = (function() { - - function ClientPlayerUpdate(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerUpdate.prototype.curHp = null; - ClientPlayerUpdate.prototype.maxHp = null; - ClientPlayerUpdate.prototype.location = null; - ClientPlayerUpdate.prototype.sampo = null; - - let $oneOfFields; - - Object.defineProperty(ClientPlayerUpdate.prototype, "_curHp", { - get: $util.oneOfGetter($oneOfFields = ["curHp"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientPlayerUpdate.prototype, "_maxHp", { - get: $util.oneOfGetter($oneOfFields = ["maxHp"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientPlayerUpdate.prototype, "_location", { - get: $util.oneOfGetter($oneOfFields = ["location"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientPlayerUpdate.prototype, "_sampo", { - get: $util.oneOfGetter($oneOfFields = ["sampo"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientPlayerUpdate.create = function create(properties) { - return new ClientPlayerUpdate(properties); - }; - - ClientPlayerUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.curHp != null && Object.hasOwnProperty.call(message, "curHp")) - writer.uint32(13).float(message.curHp); - if (message.maxHp != null && Object.hasOwnProperty.call(message, "maxHp")) - writer.uint32(21).float(message.maxHp); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(26).string(message.location); - if (message.sampo != null && Object.hasOwnProperty.call(message, "sampo")) - writer.uint32(32).bool(message.sampo); - return writer; - }; - - ClientPlayerUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.curHp = reader.float(); - break; - case 2: - message.maxHp = reader.float(); - break; - case 3: - message.location = reader.string(); - break; - case 4: - message.sampo = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.curHp != null && message.hasOwnProperty("curHp")) { - properties._curHp = 1; - if (typeof message.curHp !== "number") - return "curHp: number expected"; - } - if (message.maxHp != null && message.hasOwnProperty("maxHp")) { - properties._maxHp = 1; - if (typeof message.maxHp !== "number") - return "maxHp: number expected"; - } - if (message.location != null && message.hasOwnProperty("location")) { - properties._location = 1; - if (!$util.isString(message.location)) - return "location: string expected"; - } - if (message.sampo != null && message.hasOwnProperty("sampo")) { - properties._sampo = 1; - if (typeof message.sampo !== "boolean") - return "sampo: boolean expected"; - } - return null; - }; - - ClientPlayerUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerUpdate) - return object; - let message = new $root.NT.ClientPlayerUpdate(); - if (object.curHp != null) - message.curHp = Number(object.curHp); - if (object.maxHp != null) - message.maxHp = Number(object.maxHp); - if (object.location != null) - message.location = String(object.location); - if (object.sampo != null) - message.sampo = Boolean(object.sampo); - return message; - }; - - ClientPlayerUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.curHp != null && message.hasOwnProperty("curHp")) { - object.curHp = options.json && !isFinite(message.curHp) ? String(message.curHp) : message.curHp; - if (options.oneofs) - object._curHp = "curHp"; - } - if (message.maxHp != null && message.hasOwnProperty("maxHp")) { - object.maxHp = options.json && !isFinite(message.maxHp) ? String(message.maxHp) : message.maxHp; - if (options.oneofs) - object._maxHp = "maxHp"; - } - if (message.location != null && message.hasOwnProperty("location")) { - object.location = message.location; - if (options.oneofs) - object._location = "location"; - } - if (message.sampo != null && message.hasOwnProperty("sampo")) { - object.sampo = message.sampo; - if (options.oneofs) - object._sampo = "sampo"; - } - return object; - }; - - ClientPlayerUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerUpdate; - })(); - - NT.ServerPlayerUpdate = (function() { - - function ServerPlayerUpdate(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerUpdate.prototype.userId = ""; - ServerPlayerUpdate.prototype.curHp = null; - ServerPlayerUpdate.prototype.maxHp = null; - ServerPlayerUpdate.prototype.location = null; - ServerPlayerUpdate.prototype.sampo = null; - - let $oneOfFields; - - Object.defineProperty(ServerPlayerUpdate.prototype, "_curHp", { - get: $util.oneOfGetter($oneOfFields = ["curHp"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerPlayerUpdate.prototype, "_maxHp", { - get: $util.oneOfGetter($oneOfFields = ["maxHp"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerPlayerUpdate.prototype, "_location", { - get: $util.oneOfGetter($oneOfFields = ["location"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerPlayerUpdate.prototype, "_sampo", { - get: $util.oneOfGetter($oneOfFields = ["sampo"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerPlayerUpdate.create = function create(properties) { - return new ServerPlayerUpdate(properties); - }; - - ServerPlayerUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.curHp != null && Object.hasOwnProperty.call(message, "curHp")) - writer.uint32(21).float(message.curHp); - if (message.maxHp != null && Object.hasOwnProperty.call(message, "maxHp")) - writer.uint32(29).float(message.maxHp); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(34).string(message.location); - if (message.sampo != null && Object.hasOwnProperty.call(message, "sampo")) - writer.uint32(40).bool(message.sampo); - return writer; - }; - - ServerPlayerUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.curHp = reader.float(); - break; - case 3: - message.maxHp = reader.float(); - break; - case 4: - message.location = reader.string(); - break; - case 5: - message.sampo = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.curHp != null && message.hasOwnProperty("curHp")) { - properties._curHp = 1; - if (typeof message.curHp !== "number") - return "curHp: number expected"; - } - if (message.maxHp != null && message.hasOwnProperty("maxHp")) { - properties._maxHp = 1; - if (typeof message.maxHp !== "number") - return "maxHp: number expected"; - } - if (message.location != null && message.hasOwnProperty("location")) { - properties._location = 1; - if (!$util.isString(message.location)) - return "location: string expected"; - } - if (message.sampo != null && message.hasOwnProperty("sampo")) { - properties._sampo = 1; - if (typeof message.sampo !== "boolean") - return "sampo: boolean expected"; - } - return null; - }; - - ServerPlayerUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerUpdate) - return object; - let message = new $root.NT.ServerPlayerUpdate(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.curHp != null) - message.curHp = Number(object.curHp); - if (object.maxHp != null) - message.maxHp = Number(object.maxHp); - if (object.location != null) - message.location = String(object.location); - if (object.sampo != null) - message.sampo = Boolean(object.sampo); - return message; - }; - - ServerPlayerUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.curHp != null && message.hasOwnProperty("curHp")) { - object.curHp = options.json && !isFinite(message.curHp) ? String(message.curHp) : message.curHp; - if (options.oneofs) - object._curHp = "curHp"; - } - if (message.maxHp != null && message.hasOwnProperty("maxHp")) { - object.maxHp = options.json && !isFinite(message.maxHp) ? String(message.maxHp) : message.maxHp; - if (options.oneofs) - object._maxHp = "maxHp"; - } - if (message.location != null && message.hasOwnProperty("location")) { - object.location = message.location; - if (options.oneofs) - object._location = "location"; - } - if (message.sampo != null && message.hasOwnProperty("sampo")) { - object.sampo = message.sampo; - if (options.oneofs) - object._sampo = "sampo"; - } - return object; - }; - - ServerPlayerUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerUpdate; - })(); - - NT.ClientPlayerUpdateInventory = (function() { - - function ClientPlayerUpdateInventory(properties) { - this.wands = []; - this.items = []; - this.spells = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerUpdateInventory.prototype.wands = $util.emptyArray; - ClientPlayerUpdateInventory.prototype.items = $util.emptyArray; - ClientPlayerUpdateInventory.prototype.spells = $util.emptyArray; - - ClientPlayerUpdateInventory.create = function create(properties) { - return new ClientPlayerUpdateInventory(properties); - }; - - ClientPlayerUpdateInventory.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.wands != null && message.wands.length) - for (let i = 0; i < message.wands.length; ++i) - $root.NT.ClientPlayerUpdateInventory.InventoryWand.encode(message.wands[i], writer.uint32(10).fork()).ldelim(); - if (message.items != null && message.items.length) - for (let i = 0; i < message.items.length; ++i) - $root.NT.ClientPlayerUpdateInventory.InventoryItem.encode(message.items[i], writer.uint32(18).fork()).ldelim(); - if (message.spells != null && message.spells.length) - for (let i = 0; i < message.spells.length; ++i) - $root.NT.ClientPlayerUpdateInventory.InventorySpell.encode(message.spells[i], writer.uint32(26).fork()).ldelim(); - return writer; - }; - - ClientPlayerUpdateInventory.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerUpdateInventory(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.wands && message.wands.length)) - message.wands = []; - message.wands.push($root.NT.ClientPlayerUpdateInventory.InventoryWand.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.items && message.items.length)) - message.items = []; - message.items.push($root.NT.ClientPlayerUpdateInventory.InventoryItem.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.spells && message.spells.length)) - message.spells = []; - message.spells.push($root.NT.ClientPlayerUpdateInventory.InventorySpell.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerUpdateInventory.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.wands != null && message.hasOwnProperty("wands")) { - if (!Array.isArray(message.wands)) - return "wands: array expected"; - for (let i = 0; i < message.wands.length; ++i) { - let error = $root.NT.ClientPlayerUpdateInventory.InventoryWand.verify(message.wands[i]); - if (error) - return "wands." + error; - } - } - if (message.items != null && message.hasOwnProperty("items")) { - if (!Array.isArray(message.items)) - return "items: array expected"; - for (let i = 0; i < message.items.length; ++i) { - let error = $root.NT.ClientPlayerUpdateInventory.InventoryItem.verify(message.items[i]); - if (error) - return "items." + error; - } - } - if (message.spells != null && message.hasOwnProperty("spells")) { - if (!Array.isArray(message.spells)) - return "spells: array expected"; - for (let i = 0; i < message.spells.length; ++i) { - let error = $root.NT.ClientPlayerUpdateInventory.InventorySpell.verify(message.spells[i]); - if (error) - return "spells." + error; - } - } - return null; - }; - - ClientPlayerUpdateInventory.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerUpdateInventory) - return object; - let message = new $root.NT.ClientPlayerUpdateInventory(); - if (object.wands) { - if (!Array.isArray(object.wands)) - throw TypeError(".NT.ClientPlayerUpdateInventory.wands: array expected"); - message.wands = []; - for (let i = 0; i < object.wands.length; ++i) { - if (typeof object.wands[i] !== "object") - throw TypeError(".NT.ClientPlayerUpdateInventory.wands: object expected"); - message.wands[i] = $root.NT.ClientPlayerUpdateInventory.InventoryWand.fromObject(object.wands[i]); - } - } - if (object.items) { - if (!Array.isArray(object.items)) - throw TypeError(".NT.ClientPlayerUpdateInventory.items: array expected"); - message.items = []; - for (let i = 0; i < object.items.length; ++i) { - if (typeof object.items[i] !== "object") - throw TypeError(".NT.ClientPlayerUpdateInventory.items: object expected"); - message.items[i] = $root.NT.ClientPlayerUpdateInventory.InventoryItem.fromObject(object.items[i]); - } - } - if (object.spells) { - if (!Array.isArray(object.spells)) - throw TypeError(".NT.ClientPlayerUpdateInventory.spells: array expected"); - message.spells = []; - for (let i = 0; i < object.spells.length; ++i) { - if (typeof object.spells[i] !== "object") - throw TypeError(".NT.ClientPlayerUpdateInventory.spells: object expected"); - message.spells[i] = $root.NT.ClientPlayerUpdateInventory.InventorySpell.fromObject(object.spells[i]); - } - } - return message; - }; - - ClientPlayerUpdateInventory.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.wands = []; - object.items = []; - object.spells = []; - } - if (message.wands && message.wands.length) { - object.wands = []; - for (let j = 0; j < message.wands.length; ++j) - object.wands[j] = $root.NT.ClientPlayerUpdateInventory.InventoryWand.toObject(message.wands[j], options); - } - if (message.items && message.items.length) { - object.items = []; - for (let j = 0; j < message.items.length; ++j) - object.items[j] = $root.NT.ClientPlayerUpdateInventory.InventoryItem.toObject(message.items[j], options); - } - if (message.spells && message.spells.length) { - object.spells = []; - for (let j = 0; j < message.spells.length; ++j) - object.spells[j] = $root.NT.ClientPlayerUpdateInventory.InventorySpell.toObject(message.spells[j], options); - } - return object; - }; - - ClientPlayerUpdateInventory.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ClientPlayerUpdateInventory.InventoryWand = (function() { - - function InventoryWand(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - InventoryWand.prototype.index = 0; - InventoryWand.prototype.wand = null; - - InventoryWand.create = function create(properties) { - return new InventoryWand(properties); - }; - - InventoryWand.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(8).uint32(message.index); - if (message.wand != null && Object.hasOwnProperty.call(message, "wand")) - $root.NT.Wand.encode(message.wand, writer.uint32(18).fork()).ldelim(); - return writer; - }; - - InventoryWand.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerUpdateInventory.InventoryWand(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.wand = $root.NT.Wand.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - InventoryWand.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.wand != null && message.hasOwnProperty("wand")) { - let error = $root.NT.Wand.verify(message.wand); - if (error) - return "wand." + error; - } - return null; - }; - - InventoryWand.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerUpdateInventory.InventoryWand) - return object; - let message = new $root.NT.ClientPlayerUpdateInventory.InventoryWand(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.wand != null) { - if (typeof object.wand !== "object") - throw TypeError(".NT.ClientPlayerUpdateInventory.InventoryWand.wand: object expected"); - message.wand = $root.NT.Wand.fromObject(object.wand); - } - return message; - }; - - InventoryWand.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.wand = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.wand != null && message.hasOwnProperty("wand")) - object.wand = $root.NT.Wand.toObject(message.wand, options); - return object; - }; - - InventoryWand.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InventoryWand; - })(); - - ClientPlayerUpdateInventory.InventoryItem = (function() { - - function InventoryItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - InventoryItem.prototype.index = 0; - InventoryItem.prototype.item = null; - - InventoryItem.create = function create(properties) { - return new InventoryItem(properties); - }; - - InventoryItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(24).uint32(message.index); - if (message.item != null && Object.hasOwnProperty.call(message, "item")) - $root.NT.Item.encode(message.item, writer.uint32(34).fork()).ldelim(); - return writer; - }; - - InventoryItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerUpdateInventory.InventoryItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - message.index = reader.uint32(); - break; - case 4: - message.item = $root.NT.Item.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - InventoryItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.item != null && message.hasOwnProperty("item")) { - let error = $root.NT.Item.verify(message.item); - if (error) - return "item." + error; - } - return null; - }; - - InventoryItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerUpdateInventory.InventoryItem) - return object; - let message = new $root.NT.ClientPlayerUpdateInventory.InventoryItem(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.item != null) { - if (typeof object.item !== "object") - throw TypeError(".NT.ClientPlayerUpdateInventory.InventoryItem.item: object expected"); - message.item = $root.NT.Item.fromObject(object.item); - } - return message; - }; - - InventoryItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.item = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.item != null && message.hasOwnProperty("item")) - object.item = $root.NT.Item.toObject(message.item, options); - return object; - }; - - InventoryItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InventoryItem; - })(); - - ClientPlayerUpdateInventory.InventorySpell = (function() { - - function InventorySpell(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - InventorySpell.prototype.index = 0; - InventorySpell.prototype.spell = null; - - InventorySpell.create = function create(properties) { - return new InventorySpell(properties); - }; - - InventorySpell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(8).uint32(message.index); - if (message.spell != null && Object.hasOwnProperty.call(message, "spell")) - $root.NT.Spell.encode(message.spell, writer.uint32(18).fork()).ldelim(); - return writer; - }; - - InventorySpell.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerUpdateInventory.InventorySpell(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.spell = $root.NT.Spell.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - InventorySpell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.spell != null && message.hasOwnProperty("spell")) { - let error = $root.NT.Spell.verify(message.spell); - if (error) - return "spell." + error; - } - return null; - }; - - InventorySpell.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerUpdateInventory.InventorySpell) - return object; - let message = new $root.NT.ClientPlayerUpdateInventory.InventorySpell(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.spell != null) { - if (typeof object.spell !== "object") - throw TypeError(".NT.ClientPlayerUpdateInventory.InventorySpell.spell: object expected"); - message.spell = $root.NT.Spell.fromObject(object.spell); - } - return message; - }; - - InventorySpell.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.spell = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.spell != null && message.hasOwnProperty("spell")) - object.spell = $root.NT.Spell.toObject(message.spell, options); - return object; - }; - - InventorySpell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InventorySpell; - })(); - - return ClientPlayerUpdateInventory; - })(); - - NT.ServerPlayerUpdateInventory = (function() { - - function ServerPlayerUpdateInventory(properties) { - this.wands = []; - this.items = []; - this.spells = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerUpdateInventory.prototype.userId = ""; - ServerPlayerUpdateInventory.prototype.wands = $util.emptyArray; - ServerPlayerUpdateInventory.prototype.items = $util.emptyArray; - ServerPlayerUpdateInventory.prototype.spells = $util.emptyArray; - - ServerPlayerUpdateInventory.create = function create(properties) { - return new ServerPlayerUpdateInventory(properties); - }; - - ServerPlayerUpdateInventory.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.wands != null && message.wands.length) - for (let i = 0; i < message.wands.length; ++i) - $root.NT.ServerPlayerUpdateInventory.InventoryWand.encode(message.wands[i], writer.uint32(18).fork()).ldelim(); - if (message.items != null && message.items.length) - for (let i = 0; i < message.items.length; ++i) - $root.NT.ServerPlayerUpdateInventory.InventoryItem.encode(message.items[i], writer.uint32(26).fork()).ldelim(); - if (message.spells != null && message.spells.length) - for (let i = 0; i < message.spells.length; ++i) - $root.NT.ServerPlayerUpdateInventory.InventorySpell.encode(message.spells[i], writer.uint32(34).fork()).ldelim(); - return writer; - }; - - ServerPlayerUpdateInventory.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerUpdateInventory(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - if (!(message.wands && message.wands.length)) - message.wands = []; - message.wands.push($root.NT.ServerPlayerUpdateInventory.InventoryWand.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.items && message.items.length)) - message.items = []; - message.items.push($root.NT.ServerPlayerUpdateInventory.InventoryItem.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.spells && message.spells.length)) - message.spells = []; - message.spells.push($root.NT.ServerPlayerUpdateInventory.InventorySpell.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerUpdateInventory.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.wands != null && message.hasOwnProperty("wands")) { - if (!Array.isArray(message.wands)) - return "wands: array expected"; - for (let i = 0; i < message.wands.length; ++i) { - let error = $root.NT.ServerPlayerUpdateInventory.InventoryWand.verify(message.wands[i]); - if (error) - return "wands." + error; - } - } - if (message.items != null && message.hasOwnProperty("items")) { - if (!Array.isArray(message.items)) - return "items: array expected"; - for (let i = 0; i < message.items.length; ++i) { - let error = $root.NT.ServerPlayerUpdateInventory.InventoryItem.verify(message.items[i]); - if (error) - return "items." + error; - } - } - if (message.spells != null && message.hasOwnProperty("spells")) { - if (!Array.isArray(message.spells)) - return "spells: array expected"; - for (let i = 0; i < message.spells.length; ++i) { - let error = $root.NT.ServerPlayerUpdateInventory.InventorySpell.verify(message.spells[i]); - if (error) - return "spells." + error; - } - } - return null; - }; - - ServerPlayerUpdateInventory.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerUpdateInventory) - return object; - let message = new $root.NT.ServerPlayerUpdateInventory(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.wands) { - if (!Array.isArray(object.wands)) - throw TypeError(".NT.ServerPlayerUpdateInventory.wands: array expected"); - message.wands = []; - for (let i = 0; i < object.wands.length; ++i) { - if (typeof object.wands[i] !== "object") - throw TypeError(".NT.ServerPlayerUpdateInventory.wands: object expected"); - message.wands[i] = $root.NT.ServerPlayerUpdateInventory.InventoryWand.fromObject(object.wands[i]); - } - } - if (object.items) { - if (!Array.isArray(object.items)) - throw TypeError(".NT.ServerPlayerUpdateInventory.items: array expected"); - message.items = []; - for (let i = 0; i < object.items.length; ++i) { - if (typeof object.items[i] !== "object") - throw TypeError(".NT.ServerPlayerUpdateInventory.items: object expected"); - message.items[i] = $root.NT.ServerPlayerUpdateInventory.InventoryItem.fromObject(object.items[i]); - } - } - if (object.spells) { - if (!Array.isArray(object.spells)) - throw TypeError(".NT.ServerPlayerUpdateInventory.spells: array expected"); - message.spells = []; - for (let i = 0; i < object.spells.length; ++i) { - if (typeof object.spells[i] !== "object") - throw TypeError(".NT.ServerPlayerUpdateInventory.spells: object expected"); - message.spells[i] = $root.NT.ServerPlayerUpdateInventory.InventorySpell.fromObject(object.spells[i]); - } - } - return message; - }; - - ServerPlayerUpdateInventory.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.wands = []; - object.items = []; - object.spells = []; - } - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.wands && message.wands.length) { - object.wands = []; - for (let j = 0; j < message.wands.length; ++j) - object.wands[j] = $root.NT.ServerPlayerUpdateInventory.InventoryWand.toObject(message.wands[j], options); - } - if (message.items && message.items.length) { - object.items = []; - for (let j = 0; j < message.items.length; ++j) - object.items[j] = $root.NT.ServerPlayerUpdateInventory.InventoryItem.toObject(message.items[j], options); - } - if (message.spells && message.spells.length) { - object.spells = []; - for (let j = 0; j < message.spells.length; ++j) - object.spells[j] = $root.NT.ServerPlayerUpdateInventory.InventorySpell.toObject(message.spells[j], options); - } - return object; - }; - - ServerPlayerUpdateInventory.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerPlayerUpdateInventory.InventoryWand = (function() { - - function InventoryWand(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - InventoryWand.prototype.index = 0; - InventoryWand.prototype.wand = null; - - InventoryWand.create = function create(properties) { - return new InventoryWand(properties); - }; - - InventoryWand.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(8).uint32(message.index); - if (message.wand != null && Object.hasOwnProperty.call(message, "wand")) - $root.NT.Wand.encode(message.wand, writer.uint32(18).fork()).ldelim(); - return writer; - }; - - InventoryWand.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerUpdateInventory.InventoryWand(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.wand = $root.NT.Wand.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - InventoryWand.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.wand != null && message.hasOwnProperty("wand")) { - let error = $root.NT.Wand.verify(message.wand); - if (error) - return "wand." + error; - } - return null; - }; - - InventoryWand.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerUpdateInventory.InventoryWand) - return object; - let message = new $root.NT.ServerPlayerUpdateInventory.InventoryWand(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.wand != null) { - if (typeof object.wand !== "object") - throw TypeError(".NT.ServerPlayerUpdateInventory.InventoryWand.wand: object expected"); - message.wand = $root.NT.Wand.fromObject(object.wand); - } - return message; - }; - - InventoryWand.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.wand = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.wand != null && message.hasOwnProperty("wand")) - object.wand = $root.NT.Wand.toObject(message.wand, options); - return object; - }; - - InventoryWand.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InventoryWand; - })(); - - ServerPlayerUpdateInventory.InventoryItem = (function() { - - function InventoryItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - InventoryItem.prototype.index = 0; - InventoryItem.prototype.item = null; - - InventoryItem.create = function create(properties) { - return new InventoryItem(properties); - }; - - InventoryItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(8).uint32(message.index); - if (message.item != null && Object.hasOwnProperty.call(message, "item")) - $root.NT.Item.encode(message.item, writer.uint32(18).fork()).ldelim(); - return writer; - }; - - InventoryItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerUpdateInventory.InventoryItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.item = $root.NT.Item.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - InventoryItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.item != null && message.hasOwnProperty("item")) { - let error = $root.NT.Item.verify(message.item); - if (error) - return "item." + error; - } - return null; - }; - - InventoryItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerUpdateInventory.InventoryItem) - return object; - let message = new $root.NT.ServerPlayerUpdateInventory.InventoryItem(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.item != null) { - if (typeof object.item !== "object") - throw TypeError(".NT.ServerPlayerUpdateInventory.InventoryItem.item: object expected"); - message.item = $root.NT.Item.fromObject(object.item); - } - return message; - }; - - InventoryItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.item = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.item != null && message.hasOwnProperty("item")) - object.item = $root.NT.Item.toObject(message.item, options); - return object; - }; - - InventoryItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InventoryItem; - })(); - - ServerPlayerUpdateInventory.InventorySpell = (function() { - - function InventorySpell(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - InventorySpell.prototype.index = 0; - InventorySpell.prototype.spell = null; - - InventorySpell.create = function create(properties) { - return new InventorySpell(properties); - }; - - InventorySpell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(8).uint32(message.index); - if (message.spell != null && Object.hasOwnProperty.call(message, "spell")) - $root.NT.Spell.encode(message.spell, writer.uint32(18).fork()).ldelim(); - return writer; - }; - - InventorySpell.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerUpdateInventory.InventorySpell(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.spell = $root.NT.Spell.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - InventorySpell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.spell != null && message.hasOwnProperty("spell")) { - let error = $root.NT.Spell.verify(message.spell); - if (error) - return "spell." + error; - } - return null; - }; - - InventorySpell.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerUpdateInventory.InventorySpell) - return object; - let message = new $root.NT.ServerPlayerUpdateInventory.InventorySpell(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.spell != null) { - if (typeof object.spell !== "object") - throw TypeError(".NT.ServerPlayerUpdateInventory.InventorySpell.spell: object expected"); - message.spell = $root.NT.Spell.fromObject(object.spell); - } - return message; - }; - - InventorySpell.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.index = 0; - object.spell = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.spell != null && message.hasOwnProperty("spell")) - object.spell = $root.NT.Spell.toObject(message.spell, options); - return object; - }; - - InventorySpell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InventorySpell; - })(); - - return ServerPlayerUpdateInventory; - })(); - - NT.ClientHostItemBank = (function() { - - function ClientHostItemBank(properties) { - this.wands = []; - this.spells = []; - this.items = []; - this.objects = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientHostItemBank.prototype.wands = $util.emptyArray; - ClientHostItemBank.prototype.spells = $util.emptyArray; - ClientHostItemBank.prototype.items = $util.emptyArray; - ClientHostItemBank.prototype.gold = 0; - ClientHostItemBank.prototype.objects = $util.emptyArray; - - ClientHostItemBank.create = function create(properties) { - return new ClientHostItemBank(properties); - }; - - ClientHostItemBank.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.wands != null && message.wands.length) - for (let i = 0; i < message.wands.length; ++i) - $root.NT.Wand.encode(message.wands[i], writer.uint32(10).fork()).ldelim(); - if (message.spells != null && message.spells.length) - for (let i = 0; i < message.spells.length; ++i) - $root.NT.Spell.encode(message.spells[i], writer.uint32(18).fork()).ldelim(); - if (message.items != null && message.items.length) - for (let i = 0; i < message.items.length; ++i) - $root.NT.Item.encode(message.items[i], writer.uint32(26).fork()).ldelim(); - if (message.gold != null && Object.hasOwnProperty.call(message, "gold")) - writer.uint32(32).uint32(message.gold); - if (message.objects != null && message.objects.length) - for (let i = 0; i < message.objects.length; ++i) - $root.NT.EntityItem.encode(message.objects[i], writer.uint32(42).fork()).ldelim(); - return writer; - }; - - ClientHostItemBank.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientHostItemBank(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.wands && message.wands.length)) - message.wands = []; - message.wands.push($root.NT.Wand.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.spells && message.spells.length)) - message.spells = []; - message.spells.push($root.NT.Spell.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.items && message.items.length)) - message.items = []; - message.items.push($root.NT.Item.decode(reader, reader.uint32())); - break; - case 4: - message.gold = reader.uint32(); - break; - case 5: - if (!(message.objects && message.objects.length)) - message.objects = []; - message.objects.push($root.NT.EntityItem.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientHostItemBank.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.wands != null && message.hasOwnProperty("wands")) { - if (!Array.isArray(message.wands)) - return "wands: array expected"; - for (let i = 0; i < message.wands.length; ++i) { - let error = $root.NT.Wand.verify(message.wands[i]); - if (error) - return "wands." + error; - } - } - if (message.spells != null && message.hasOwnProperty("spells")) { - if (!Array.isArray(message.spells)) - return "spells: array expected"; - for (let i = 0; i < message.spells.length; ++i) { - let error = $root.NT.Spell.verify(message.spells[i]); - if (error) - return "spells." + error; - } - } - if (message.items != null && message.hasOwnProperty("items")) { - if (!Array.isArray(message.items)) - return "items: array expected"; - for (let i = 0; i < message.items.length; ++i) { - let error = $root.NT.Item.verify(message.items[i]); - if (error) - return "items." + error; - } - } - if (message.gold != null && message.hasOwnProperty("gold")) - if (!$util.isInteger(message.gold)) - return "gold: integer expected"; - if (message.objects != null && message.hasOwnProperty("objects")) { - if (!Array.isArray(message.objects)) - return "objects: array expected"; - for (let i = 0; i < message.objects.length; ++i) { - let error = $root.NT.EntityItem.verify(message.objects[i]); - if (error) - return "objects." + error; - } - } - return null; - }; - - ClientHostItemBank.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientHostItemBank) - return object; - let message = new $root.NT.ClientHostItemBank(); - if (object.wands) { - if (!Array.isArray(object.wands)) - throw TypeError(".NT.ClientHostItemBank.wands: array expected"); - message.wands = []; - for (let i = 0; i < object.wands.length; ++i) { - if (typeof object.wands[i] !== "object") - throw TypeError(".NT.ClientHostItemBank.wands: object expected"); - message.wands[i] = $root.NT.Wand.fromObject(object.wands[i]); - } - } - if (object.spells) { - if (!Array.isArray(object.spells)) - throw TypeError(".NT.ClientHostItemBank.spells: array expected"); - message.spells = []; - for (let i = 0; i < object.spells.length; ++i) { - if (typeof object.spells[i] !== "object") - throw TypeError(".NT.ClientHostItemBank.spells: object expected"); - message.spells[i] = $root.NT.Spell.fromObject(object.spells[i]); - } - } - if (object.items) { - if (!Array.isArray(object.items)) - throw TypeError(".NT.ClientHostItemBank.items: array expected"); - message.items = []; - for (let i = 0; i < object.items.length; ++i) { - if (typeof object.items[i] !== "object") - throw TypeError(".NT.ClientHostItemBank.items: object expected"); - message.items[i] = $root.NT.Item.fromObject(object.items[i]); - } - } - if (object.gold != null) - message.gold = object.gold >>> 0; - if (object.objects) { - if (!Array.isArray(object.objects)) - throw TypeError(".NT.ClientHostItemBank.objects: array expected"); - message.objects = []; - for (let i = 0; i < object.objects.length; ++i) { - if (typeof object.objects[i] !== "object") - throw TypeError(".NT.ClientHostItemBank.objects: object expected"); - message.objects[i] = $root.NT.EntityItem.fromObject(object.objects[i]); - } - } - return message; - }; - - ClientHostItemBank.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.wands = []; - object.spells = []; - object.items = []; - object.objects = []; - } - if (options.defaults) - object.gold = 0; - if (message.wands && message.wands.length) { - object.wands = []; - for (let j = 0; j < message.wands.length; ++j) - object.wands[j] = $root.NT.Wand.toObject(message.wands[j], options); - } - if (message.spells && message.spells.length) { - object.spells = []; - for (let j = 0; j < message.spells.length; ++j) - object.spells[j] = $root.NT.Spell.toObject(message.spells[j], options); - } - if (message.items && message.items.length) { - object.items = []; - for (let j = 0; j < message.items.length; ++j) - object.items[j] = $root.NT.Item.toObject(message.items[j], options); - } - if (message.gold != null && message.hasOwnProperty("gold")) - object.gold = message.gold; - if (message.objects && message.objects.length) { - object.objects = []; - for (let j = 0; j < message.objects.length; ++j) - object.objects[j] = $root.NT.EntityItem.toObject(message.objects[j], options); - } - return object; - }; - - ClientHostItemBank.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientHostItemBank; - })(); - - NT.ServerHostItemBank = (function() { - - function ServerHostItemBank(properties) { - this.wands = []; - this.spells = []; - this.items = []; - this.objects = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerHostItemBank.prototype.wands = $util.emptyArray; - ServerHostItemBank.prototype.spells = $util.emptyArray; - ServerHostItemBank.prototype.items = $util.emptyArray; - ServerHostItemBank.prototype.gold = 0; - ServerHostItemBank.prototype.objects = $util.emptyArray; - - ServerHostItemBank.create = function create(properties) { - return new ServerHostItemBank(properties); - }; - - ServerHostItemBank.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.wands != null && message.wands.length) - for (let i = 0; i < message.wands.length; ++i) - $root.NT.Wand.encode(message.wands[i], writer.uint32(10).fork()).ldelim(); - if (message.spells != null && message.spells.length) - for (let i = 0; i < message.spells.length; ++i) - $root.NT.Spell.encode(message.spells[i], writer.uint32(18).fork()).ldelim(); - if (message.items != null && message.items.length) - for (let i = 0; i < message.items.length; ++i) - $root.NT.Item.encode(message.items[i], writer.uint32(26).fork()).ldelim(); - if (message.gold != null && Object.hasOwnProperty.call(message, "gold")) - writer.uint32(32).uint32(message.gold); - if (message.objects != null && message.objects.length) - for (let i = 0; i < message.objects.length; ++i) - $root.NT.EntityItem.encode(message.objects[i], writer.uint32(42).fork()).ldelim(); - return writer; - }; - - ServerHostItemBank.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerHostItemBank(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.wands && message.wands.length)) - message.wands = []; - message.wands.push($root.NT.Wand.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.spells && message.spells.length)) - message.spells = []; - message.spells.push($root.NT.Spell.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.items && message.items.length)) - message.items = []; - message.items.push($root.NT.Item.decode(reader, reader.uint32())); - break; - case 4: - message.gold = reader.uint32(); - break; - case 5: - if (!(message.objects && message.objects.length)) - message.objects = []; - message.objects.push($root.NT.EntityItem.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerHostItemBank.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.wands != null && message.hasOwnProperty("wands")) { - if (!Array.isArray(message.wands)) - return "wands: array expected"; - for (let i = 0; i < message.wands.length; ++i) { - let error = $root.NT.Wand.verify(message.wands[i]); - if (error) - return "wands." + error; - } - } - if (message.spells != null && message.hasOwnProperty("spells")) { - if (!Array.isArray(message.spells)) - return "spells: array expected"; - for (let i = 0; i < message.spells.length; ++i) { - let error = $root.NT.Spell.verify(message.spells[i]); - if (error) - return "spells." + error; - } - } - if (message.items != null && message.hasOwnProperty("items")) { - if (!Array.isArray(message.items)) - return "items: array expected"; - for (let i = 0; i < message.items.length; ++i) { - let error = $root.NT.Item.verify(message.items[i]); - if (error) - return "items." + error; - } - } - if (message.gold != null && message.hasOwnProperty("gold")) - if (!$util.isInteger(message.gold)) - return "gold: integer expected"; - if (message.objects != null && message.hasOwnProperty("objects")) { - if (!Array.isArray(message.objects)) - return "objects: array expected"; - for (let i = 0; i < message.objects.length; ++i) { - let error = $root.NT.EntityItem.verify(message.objects[i]); - if (error) - return "objects." + error; - } - } - return null; - }; - - ServerHostItemBank.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerHostItemBank) - return object; - let message = new $root.NT.ServerHostItemBank(); - if (object.wands) { - if (!Array.isArray(object.wands)) - throw TypeError(".NT.ServerHostItemBank.wands: array expected"); - message.wands = []; - for (let i = 0; i < object.wands.length; ++i) { - if (typeof object.wands[i] !== "object") - throw TypeError(".NT.ServerHostItemBank.wands: object expected"); - message.wands[i] = $root.NT.Wand.fromObject(object.wands[i]); - } - } - if (object.spells) { - if (!Array.isArray(object.spells)) - throw TypeError(".NT.ServerHostItemBank.spells: array expected"); - message.spells = []; - for (let i = 0; i < object.spells.length; ++i) { - if (typeof object.spells[i] !== "object") - throw TypeError(".NT.ServerHostItemBank.spells: object expected"); - message.spells[i] = $root.NT.Spell.fromObject(object.spells[i]); - } - } - if (object.items) { - if (!Array.isArray(object.items)) - throw TypeError(".NT.ServerHostItemBank.items: array expected"); - message.items = []; - for (let i = 0; i < object.items.length; ++i) { - if (typeof object.items[i] !== "object") - throw TypeError(".NT.ServerHostItemBank.items: object expected"); - message.items[i] = $root.NT.Item.fromObject(object.items[i]); - } - } - if (object.gold != null) - message.gold = object.gold >>> 0; - if (object.objects) { - if (!Array.isArray(object.objects)) - throw TypeError(".NT.ServerHostItemBank.objects: array expected"); - message.objects = []; - for (let i = 0; i < object.objects.length; ++i) { - if (typeof object.objects[i] !== "object") - throw TypeError(".NT.ServerHostItemBank.objects: object expected"); - message.objects[i] = $root.NT.EntityItem.fromObject(object.objects[i]); - } - } - return message; - }; - - ServerHostItemBank.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.wands = []; - object.spells = []; - object.items = []; - object.objects = []; - } - if (options.defaults) - object.gold = 0; - if (message.wands && message.wands.length) { - object.wands = []; - for (let j = 0; j < message.wands.length; ++j) - object.wands[j] = $root.NT.Wand.toObject(message.wands[j], options); - } - if (message.spells && message.spells.length) { - object.spells = []; - for (let j = 0; j < message.spells.length; ++j) - object.spells[j] = $root.NT.Spell.toObject(message.spells[j], options); - } - if (message.items && message.items.length) { - object.items = []; - for (let j = 0; j < message.items.length; ++j) - object.items[j] = $root.NT.Item.toObject(message.items[j], options); - } - if (message.gold != null && message.hasOwnProperty("gold")) - object.gold = message.gold; - if (message.objects && message.objects.length) { - object.objects = []; - for (let j = 0; j < message.objects.length; ++j) - object.objects[j] = $root.NT.EntityItem.toObject(message.objects[j], options); - } - return object; - }; - - ServerHostItemBank.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerHostItemBank; - })(); - - NT.ClientHostUserTake = (function() { - - function ClientHostUserTake(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientHostUserTake.prototype.userId = ""; - ClientHostUserTake.prototype.id = ""; - ClientHostUserTake.prototype.success = false; - - ClientHostUserTake.create = function create(properties) { - return new ClientHostUserTake(properties); - }; - - ClientHostUserTake.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(18).string(message.id); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(24).bool(message.success); - return writer; - }; - - ClientHostUserTake.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientHostUserTake(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.success = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientHostUserTake.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - return null; - }; - - ClientHostUserTake.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientHostUserTake) - return object; - let message = new $root.NT.ClientHostUserTake(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.id != null) - message.id = String(object.id); - if (object.success != null) - message.success = Boolean(object.success); - return message; - }; - - ClientHostUserTake.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.id = ""; - object.success = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - return object; - }; - - ClientHostUserTake.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientHostUserTake; - })(); - - NT.ServerHostUserTake = (function() { - - function ServerHostUserTake(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerHostUserTake.prototype.userId = ""; - ServerHostUserTake.prototype.id = ""; - ServerHostUserTake.prototype.success = false; - - ServerHostUserTake.create = function create(properties) { - return new ServerHostUserTake(properties); - }; - - ServerHostUserTake.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(18).string(message.id); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(24).bool(message.success); - return writer; - }; - - ServerHostUserTake.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerHostUserTake(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.success = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerHostUserTake.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - return null; - }; - - ServerHostUserTake.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerHostUserTake) - return object; - let message = new $root.NT.ServerHostUserTake(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.id != null) - message.id = String(object.id); - if (object.success != null) - message.success = Boolean(object.success); - return message; - }; - - ServerHostUserTake.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.id = ""; - object.success = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - return object; - }; - - ServerHostUserTake.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerHostUserTake; - })(); - - NT.ClientHostUserTakeGold = (function() { - - function ClientHostUserTakeGold(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientHostUserTakeGold.prototype.userId = ""; - ClientHostUserTakeGold.prototype.amount = 0; - ClientHostUserTakeGold.prototype.success = false; - - ClientHostUserTakeGold.create = function create(properties) { - return new ClientHostUserTakeGold(properties); - }; - - ClientHostUserTakeGold.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(16).uint32(message.amount); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(24).bool(message.success); - return writer; - }; - - ClientHostUserTakeGold.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientHostUserTakeGold(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.amount = reader.uint32(); - break; - case 3: - message.success = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientHostUserTakeGold.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - return null; - }; - - ClientHostUserTakeGold.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientHostUserTakeGold) - return object; - let message = new $root.NT.ClientHostUserTakeGold(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.amount != null) - message.amount = object.amount >>> 0; - if (object.success != null) - message.success = Boolean(object.success); - return message; - }; - - ClientHostUserTakeGold.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.amount = 0; - object.success = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - return object; - }; - - ClientHostUserTakeGold.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientHostUserTakeGold; - })(); - - NT.ServerHostUserTakeGold = (function() { - - function ServerHostUserTakeGold(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerHostUserTakeGold.prototype.userId = ""; - ServerHostUserTakeGold.prototype.amount = 0; - ServerHostUserTakeGold.prototype.success = false; - - ServerHostUserTakeGold.create = function create(properties) { - return new ServerHostUserTakeGold(properties); - }; - - ServerHostUserTakeGold.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(16).uint32(message.amount); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(24).bool(message.success); - return writer; - }; - - ServerHostUserTakeGold.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerHostUserTakeGold(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.amount = reader.uint32(); - break; - case 3: - message.success = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerHostUserTakeGold.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - return null; - }; - - ServerHostUserTakeGold.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerHostUserTakeGold) - return object; - let message = new $root.NT.ServerHostUserTakeGold(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.amount != null) - message.amount = object.amount >>> 0; - if (object.success != null) - message.success = Boolean(object.success); - return message; - }; - - ServerHostUserTakeGold.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.amount = 0; - object.success = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - return object; - }; - - ServerHostUserTakeGold.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerHostUserTakeGold; - })(); - - NT.ClientPlayerAddGold = (function() { - - function ClientPlayerAddGold(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerAddGold.prototype.amount = 0; - - ClientPlayerAddGold.create = function create(properties) { - return new ClientPlayerAddGold(properties); - }; - - ClientPlayerAddGold.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(8).uint32(message.amount); - return writer; - }; - - ClientPlayerAddGold.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerAddGold(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerAddGold.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - ClientPlayerAddGold.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerAddGold) - return object; - let message = new $root.NT.ClientPlayerAddGold(); - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - ClientPlayerAddGold.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.amount = 0; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - ClientPlayerAddGold.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerAddGold; - })(); - - NT.ServerPlayerAddGold = (function() { - - function ServerPlayerAddGold(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerAddGold.prototype.userId = ""; - ServerPlayerAddGold.prototype.amount = 0; - - ServerPlayerAddGold.create = function create(properties) { - return new ServerPlayerAddGold(properties); - }; - - ServerPlayerAddGold.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(16).uint32(message.amount); - return writer; - }; - - ServerPlayerAddGold.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerAddGold(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerAddGold.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - ServerPlayerAddGold.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerAddGold) - return object; - let message = new $root.NT.ServerPlayerAddGold(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - ServerPlayerAddGold.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.amount = 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - ServerPlayerAddGold.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerAddGold; - })(); - - NT.ClientPlayerTakeGold = (function() { - - function ClientPlayerTakeGold(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerTakeGold.prototype.amount = 0; - - ClientPlayerTakeGold.create = function create(properties) { - return new ClientPlayerTakeGold(properties); - }; - - ClientPlayerTakeGold.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(8).uint32(message.amount); - return writer; - }; - - ClientPlayerTakeGold.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerTakeGold(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerTakeGold.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - ClientPlayerTakeGold.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerTakeGold) - return object; - let message = new $root.NT.ClientPlayerTakeGold(); - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - ClientPlayerTakeGold.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.amount = 0; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - ClientPlayerTakeGold.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerTakeGold; - })(); - - NT.ServerPlayerTakeGold = (function() { - - function ServerPlayerTakeGold(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerTakeGold.prototype.userId = ""; - ServerPlayerTakeGold.prototype.amount = 0; - - ServerPlayerTakeGold.create = function create(properties) { - return new ServerPlayerTakeGold(properties); - }; - - ServerPlayerTakeGold.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(16).uint32(message.amount); - return writer; - }; - - ServerPlayerTakeGold.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerTakeGold(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerTakeGold.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - ServerPlayerTakeGold.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerTakeGold) - return object; - let message = new $root.NT.ServerPlayerTakeGold(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - ServerPlayerTakeGold.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.amount = 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - ServerPlayerTakeGold.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerTakeGold; - })(); - - NT.ClientPlayerAddItem = (function() { - - function ClientPlayerAddItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerAddItem.prototype.spells = null; - ClientPlayerAddItem.prototype.wands = null; - ClientPlayerAddItem.prototype.flasks = null; - ClientPlayerAddItem.prototype.objects = null; - - let $oneOfFields; - - Object.defineProperty(ClientPlayerAddItem.prototype, "item", { - get: $util.oneOfGetter($oneOfFields = ["spells", "wands", "flasks", "objects"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientPlayerAddItem.create = function create(properties) { - return new ClientPlayerAddItem(properties); - }; - - ClientPlayerAddItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.spells != null && Object.hasOwnProperty.call(message, "spells")) - $root.NT.ClientPlayerAddItem.Spells.encode(message.spells, writer.uint32(10).fork()).ldelim(); - if (message.wands != null && Object.hasOwnProperty.call(message, "wands")) - $root.NT.ClientPlayerAddItem.Wands.encode(message.wands, writer.uint32(18).fork()).ldelim(); - if (message.flasks != null && Object.hasOwnProperty.call(message, "flasks")) - $root.NT.ClientPlayerAddItem.Items.encode(message.flasks, writer.uint32(26).fork()).ldelim(); - if (message.objects != null && Object.hasOwnProperty.call(message, "objects")) - $root.NT.ClientPlayerAddItem.Entities.encode(message.objects, writer.uint32(34).fork()).ldelim(); - return writer; - }; - - ClientPlayerAddItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerAddItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spells = $root.NT.ClientPlayerAddItem.Spells.decode(reader, reader.uint32()); - break; - case 2: - message.wands = $root.NT.ClientPlayerAddItem.Wands.decode(reader, reader.uint32()); - break; - case 3: - message.flasks = $root.NT.ClientPlayerAddItem.Items.decode(reader, reader.uint32()); - break; - case 4: - message.objects = $root.NT.ClientPlayerAddItem.Entities.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerAddItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.spells != null && message.hasOwnProperty("spells")) { - properties.item = 1; - { - let error = $root.NT.ClientPlayerAddItem.Spells.verify(message.spells); - if (error) - return "spells." + error; - } - } - if (message.wands != null && message.hasOwnProperty("wands")) { - if (properties.item === 1) - return "item: multiple values"; - properties.item = 1; - { - let error = $root.NT.ClientPlayerAddItem.Wands.verify(message.wands); - if (error) - return "wands." + error; - } - } - if (message.flasks != null && message.hasOwnProperty("flasks")) { - if (properties.item === 1) - return "item: multiple values"; - properties.item = 1; - { - let error = $root.NT.ClientPlayerAddItem.Items.verify(message.flasks); - if (error) - return "flasks." + error; - } - } - if (message.objects != null && message.hasOwnProperty("objects")) { - if (properties.item === 1) - return "item: multiple values"; - properties.item = 1; - { - let error = $root.NT.ClientPlayerAddItem.Entities.verify(message.objects); - if (error) - return "objects." + error; - } - } - return null; - }; - - ClientPlayerAddItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerAddItem) - return object; - let message = new $root.NT.ClientPlayerAddItem(); - if (object.spells != null) { - if (typeof object.spells !== "object") - throw TypeError(".NT.ClientPlayerAddItem.spells: object expected"); - message.spells = $root.NT.ClientPlayerAddItem.Spells.fromObject(object.spells); - } - if (object.wands != null) { - if (typeof object.wands !== "object") - throw TypeError(".NT.ClientPlayerAddItem.wands: object expected"); - message.wands = $root.NT.ClientPlayerAddItem.Wands.fromObject(object.wands); - } - if (object.flasks != null) { - if (typeof object.flasks !== "object") - throw TypeError(".NT.ClientPlayerAddItem.flasks: object expected"); - message.flasks = $root.NT.ClientPlayerAddItem.Items.fromObject(object.flasks); - } - if (object.objects != null) { - if (typeof object.objects !== "object") - throw TypeError(".NT.ClientPlayerAddItem.objects: object expected"); - message.objects = $root.NT.ClientPlayerAddItem.Entities.fromObject(object.objects); - } - return message; - }; - - ClientPlayerAddItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.spells != null && message.hasOwnProperty("spells")) { - object.spells = $root.NT.ClientPlayerAddItem.Spells.toObject(message.spells, options); - if (options.oneofs) - object.item = "spells"; - } - if (message.wands != null && message.hasOwnProperty("wands")) { - object.wands = $root.NT.ClientPlayerAddItem.Wands.toObject(message.wands, options); - if (options.oneofs) - object.item = "wands"; - } - if (message.flasks != null && message.hasOwnProperty("flasks")) { - object.flasks = $root.NT.ClientPlayerAddItem.Items.toObject(message.flasks, options); - if (options.oneofs) - object.item = "flasks"; - } - if (message.objects != null && message.hasOwnProperty("objects")) { - object.objects = $root.NT.ClientPlayerAddItem.Entities.toObject(message.objects, options); - if (options.oneofs) - object.item = "objects"; - } - return object; - }; - - ClientPlayerAddItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ClientPlayerAddItem.Spells = (function() { - - function Spells(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Spells.prototype.list = $util.emptyArray; - - Spells.create = function create(properties) { - return new Spells(properties); - }; - - Spells.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.Spell.encode(message.list[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - Spells.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerAddItem.Spells(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.Spell.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Spells.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.Spell.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Spells.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerAddItem.Spells) - return object; - let message = new $root.NT.ClientPlayerAddItem.Spells(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ClientPlayerAddItem.Spells.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ClientPlayerAddItem.Spells.list: object expected"); - message.list[i] = $root.NT.Spell.fromObject(object.list[i]); - } - } - return message; - }; - - Spells.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.Spell.toObject(message.list[j], options); - } - return object; - }; - - Spells.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Spells; - })(); - - ClientPlayerAddItem.Wands = (function() { - - function Wands(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Wands.prototype.list = $util.emptyArray; - - Wands.create = function create(properties) { - return new Wands(properties); - }; - - Wands.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.Wand.encode(message.list[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - Wands.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerAddItem.Wands(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.Wand.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Wands.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.Wand.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Wands.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerAddItem.Wands) - return object; - let message = new $root.NT.ClientPlayerAddItem.Wands(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ClientPlayerAddItem.Wands.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ClientPlayerAddItem.Wands.list: object expected"); - message.list[i] = $root.NT.Wand.fromObject(object.list[i]); - } - } - return message; - }; - - Wands.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.Wand.toObject(message.list[j], options); - } - return object; - }; - - Wands.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Wands; - })(); - - ClientPlayerAddItem.Items = (function() { - - function Items(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Items.prototype.list = $util.emptyArray; - - Items.create = function create(properties) { - return new Items(properties); - }; - - Items.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.Item.encode(message.list[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - Items.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerAddItem.Items(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.Item.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Items.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.Item.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Items.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerAddItem.Items) - return object; - let message = new $root.NT.ClientPlayerAddItem.Items(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ClientPlayerAddItem.Items.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ClientPlayerAddItem.Items.list: object expected"); - message.list[i] = $root.NT.Item.fromObject(object.list[i]); - } - } - return message; - }; - - Items.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.Item.toObject(message.list[j], options); - } - return object; - }; - - Items.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Items; - })(); - - ClientPlayerAddItem.Entities = (function() { - - function Entities(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Entities.prototype.list = $util.emptyArray; - - Entities.create = function create(properties) { - return new Entities(properties); - }; - - Entities.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.EntityItem.encode(message.list[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - Entities.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerAddItem.Entities(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.EntityItem.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Entities.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.EntityItem.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Entities.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerAddItem.Entities) - return object; - let message = new $root.NT.ClientPlayerAddItem.Entities(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ClientPlayerAddItem.Entities.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ClientPlayerAddItem.Entities.list: object expected"); - message.list[i] = $root.NT.EntityItem.fromObject(object.list[i]); - } - } - return message; - }; - - Entities.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.EntityItem.toObject(message.list[j], options); - } - return object; - }; - - Entities.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Entities; - })(); - - return ClientPlayerAddItem; - })(); - - NT.ServerPlayerAddItem = (function() { - - function ServerPlayerAddItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerAddItem.prototype.userId = ""; - ServerPlayerAddItem.prototype.spells = null; - ServerPlayerAddItem.prototype.wands = null; - ServerPlayerAddItem.prototype.flasks = null; - ServerPlayerAddItem.prototype.objects = null; - - let $oneOfFields; - - Object.defineProperty(ServerPlayerAddItem.prototype, "item", { - get: $util.oneOfGetter($oneOfFields = ["spells", "wands", "flasks", "objects"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerPlayerAddItem.create = function create(properties) { - return new ServerPlayerAddItem(properties); - }; - - ServerPlayerAddItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.spells != null && Object.hasOwnProperty.call(message, "spells")) - $root.NT.ServerPlayerAddItem.Spells.encode(message.spells, writer.uint32(18).fork()).ldelim(); - if (message.wands != null && Object.hasOwnProperty.call(message, "wands")) - $root.NT.ServerPlayerAddItem.Wands.encode(message.wands, writer.uint32(26).fork()).ldelim(); - if (message.flasks != null && Object.hasOwnProperty.call(message, "flasks")) - $root.NT.ServerPlayerAddItem.Items.encode(message.flasks, writer.uint32(34).fork()).ldelim(); - if (message.objects != null && Object.hasOwnProperty.call(message, "objects")) - $root.NT.ServerPlayerAddItem.Entities.encode(message.objects, writer.uint32(42).fork()).ldelim(); - return writer; - }; - - ServerPlayerAddItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerAddItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.spells = $root.NT.ServerPlayerAddItem.Spells.decode(reader, reader.uint32()); - break; - case 3: - message.wands = $root.NT.ServerPlayerAddItem.Wands.decode(reader, reader.uint32()); - break; - case 4: - message.flasks = $root.NT.ServerPlayerAddItem.Items.decode(reader, reader.uint32()); - break; - case 5: - message.objects = $root.NT.ServerPlayerAddItem.Entities.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerAddItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.spells != null && message.hasOwnProperty("spells")) { - properties.item = 1; - { - let error = $root.NT.ServerPlayerAddItem.Spells.verify(message.spells); - if (error) - return "spells." + error; - } - } - if (message.wands != null && message.hasOwnProperty("wands")) { - if (properties.item === 1) - return "item: multiple values"; - properties.item = 1; - { - let error = $root.NT.ServerPlayerAddItem.Wands.verify(message.wands); - if (error) - return "wands." + error; - } - } - if (message.flasks != null && message.hasOwnProperty("flasks")) { - if (properties.item === 1) - return "item: multiple values"; - properties.item = 1; - { - let error = $root.NT.ServerPlayerAddItem.Items.verify(message.flasks); - if (error) - return "flasks." + error; - } - } - if (message.objects != null && message.hasOwnProperty("objects")) { - if (properties.item === 1) - return "item: multiple values"; - properties.item = 1; - { - let error = $root.NT.ServerPlayerAddItem.Entities.verify(message.objects); - if (error) - return "objects." + error; - } - } - return null; - }; - - ServerPlayerAddItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerAddItem) - return object; - let message = new $root.NT.ServerPlayerAddItem(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.spells != null) { - if (typeof object.spells !== "object") - throw TypeError(".NT.ServerPlayerAddItem.spells: object expected"); - message.spells = $root.NT.ServerPlayerAddItem.Spells.fromObject(object.spells); - } - if (object.wands != null) { - if (typeof object.wands !== "object") - throw TypeError(".NT.ServerPlayerAddItem.wands: object expected"); - message.wands = $root.NT.ServerPlayerAddItem.Wands.fromObject(object.wands); - } - if (object.flasks != null) { - if (typeof object.flasks !== "object") - throw TypeError(".NT.ServerPlayerAddItem.flasks: object expected"); - message.flasks = $root.NT.ServerPlayerAddItem.Items.fromObject(object.flasks); - } - if (object.objects != null) { - if (typeof object.objects !== "object") - throw TypeError(".NT.ServerPlayerAddItem.objects: object expected"); - message.objects = $root.NT.ServerPlayerAddItem.Entities.fromObject(object.objects); - } - return message; - }; - - ServerPlayerAddItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.spells != null && message.hasOwnProperty("spells")) { - object.spells = $root.NT.ServerPlayerAddItem.Spells.toObject(message.spells, options); - if (options.oneofs) - object.item = "spells"; - } - if (message.wands != null && message.hasOwnProperty("wands")) { - object.wands = $root.NT.ServerPlayerAddItem.Wands.toObject(message.wands, options); - if (options.oneofs) - object.item = "wands"; - } - if (message.flasks != null && message.hasOwnProperty("flasks")) { - object.flasks = $root.NT.ServerPlayerAddItem.Items.toObject(message.flasks, options); - if (options.oneofs) - object.item = "flasks"; - } - if (message.objects != null && message.hasOwnProperty("objects")) { - object.objects = $root.NT.ServerPlayerAddItem.Entities.toObject(message.objects, options); - if (options.oneofs) - object.item = "objects"; - } - return object; - }; - - ServerPlayerAddItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerPlayerAddItem.Spells = (function() { - - function Spells(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Spells.prototype.list = $util.emptyArray; - - Spells.create = function create(properties) { - return new Spells(properties); - }; - - Spells.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.Spell.encode(message.list[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - Spells.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerAddItem.Spells(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.Spell.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Spells.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.Spell.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Spells.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerAddItem.Spells) - return object; - let message = new $root.NT.ServerPlayerAddItem.Spells(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ServerPlayerAddItem.Spells.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ServerPlayerAddItem.Spells.list: object expected"); - message.list[i] = $root.NT.Spell.fromObject(object.list[i]); - } - } - return message; - }; - - Spells.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.Spell.toObject(message.list[j], options); - } - return object; - }; - - Spells.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Spells; - })(); - - ServerPlayerAddItem.Wands = (function() { - - function Wands(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Wands.prototype.list = $util.emptyArray; - - Wands.create = function create(properties) { - return new Wands(properties); - }; - - Wands.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.Wand.encode(message.list[i], writer.uint32(18).fork()).ldelim(); - return writer; - }; - - Wands.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerAddItem.Wands(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.Wand.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Wands.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.Wand.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Wands.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerAddItem.Wands) - return object; - let message = new $root.NT.ServerPlayerAddItem.Wands(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ServerPlayerAddItem.Wands.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ServerPlayerAddItem.Wands.list: object expected"); - message.list[i] = $root.NT.Wand.fromObject(object.list[i]); - } - } - return message; - }; - - Wands.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.Wand.toObject(message.list[j], options); - } - return object; - }; - - Wands.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Wands; - })(); - - ServerPlayerAddItem.Items = (function() { - - function Items(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Items.prototype.list = $util.emptyArray; - - Items.create = function create(properties) { - return new Items(properties); - }; - - Items.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.Item.encode(message.list[i], writer.uint32(26).fork()).ldelim(); - return writer; - }; - - Items.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerAddItem.Items(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.Item.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Items.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.Item.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Items.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerAddItem.Items) - return object; - let message = new $root.NT.ServerPlayerAddItem.Items(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ServerPlayerAddItem.Items.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ServerPlayerAddItem.Items.list: object expected"); - message.list[i] = $root.NT.Item.fromObject(object.list[i]); - } - } - return message; - }; - - Items.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.Item.toObject(message.list[j], options); - } - return object; - }; - - Items.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Items; - })(); - - ServerPlayerAddItem.Entities = (function() { - - function Entities(properties) { - this.list = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Entities.prototype.list = $util.emptyArray; - - Entities.create = function create(properties) { - return new Entities(properties); - }; - - Entities.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.list != null && message.list.length) - for (let i = 0; i < message.list.length; ++i) - $root.NT.EntityItem.encode(message.list[i], writer.uint32(34).fork()).ldelim(); - return writer; - }; - - Entities.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerAddItem.Entities(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 4: - if (!(message.list && message.list.length)) - message.list = []; - message.list.push($root.NT.EntityItem.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Entities.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.list != null && message.hasOwnProperty("list")) { - if (!Array.isArray(message.list)) - return "list: array expected"; - for (let i = 0; i < message.list.length; ++i) { - let error = $root.NT.EntityItem.verify(message.list[i]); - if (error) - return "list." + error; - } - } - return null; - }; - - Entities.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerAddItem.Entities) - return object; - let message = new $root.NT.ServerPlayerAddItem.Entities(); - if (object.list) { - if (!Array.isArray(object.list)) - throw TypeError(".NT.ServerPlayerAddItem.Entities.list: array expected"); - message.list = []; - for (let i = 0; i < object.list.length; ++i) { - if (typeof object.list[i] !== "object") - throw TypeError(".NT.ServerPlayerAddItem.Entities.list: object expected"); - message.list[i] = $root.NT.EntityItem.fromObject(object.list[i]); - } - } - return message; - }; - - Entities.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.list = []; - if (message.list && message.list.length) { - object.list = []; - for (let j = 0; j < message.list.length; ++j) - object.list[j] = $root.NT.EntityItem.toObject(message.list[j], options); - } - return object; - }; - - Entities.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Entities; - })(); - - return ServerPlayerAddItem; - })(); - - NT.ClientPlayerTakeItem = (function() { - - function ClientPlayerTakeItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerTakeItem.prototype.id = ""; - - ClientPlayerTakeItem.create = function create(properties) { - return new ClientPlayerTakeItem(properties); - }; - - ClientPlayerTakeItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - return writer; - }; - - ClientPlayerTakeItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerTakeItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerTakeItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - return null; - }; - - ClientPlayerTakeItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerTakeItem) - return object; - let message = new $root.NT.ClientPlayerTakeItem(); - if (object.id != null) - message.id = String(object.id); - return message; - }; - - ClientPlayerTakeItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - return object; - }; - - ClientPlayerTakeItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerTakeItem; - })(); - - NT.ServerPlayerTakeItem = (function() { - - function ServerPlayerTakeItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerTakeItem.prototype.userId = ""; - ServerPlayerTakeItem.prototype.id = ""; - - ServerPlayerTakeItem.create = function create(properties) { - return new ServerPlayerTakeItem(properties); - }; - - ServerPlayerTakeItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(18).string(message.id); - return writer; - }; - - ServerPlayerTakeItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerTakeItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerTakeItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - return null; - }; - - ServerPlayerTakeItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerTakeItem) - return object; - let message = new $root.NT.ServerPlayerTakeItem(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.id != null) - message.id = String(object.id); - return message; - }; - - ServerPlayerTakeItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.id = ""; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - return object; - }; - - ServerPlayerTakeItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerTakeItem; - })(); - - NT.ClientChat = (function() { - - function ClientChat(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientChat.prototype.message = ""; - - ClientChat.create = function create(properties) { - return new ClientChat(properties); - }; - - ClientChat.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(10).string(message.message); - return writer; - }; - - ClientChat.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientChat(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientChat.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - ClientChat.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientChat) - return object; - let message = new $root.NT.ClientChat(); - if (object.message != null) - message.message = String(object.message); - return message; - }; - - ClientChat.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; - - ClientChat.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientChat; - })(); - - NT.ServerChat = (function() { - - function ServerChat(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerChat.prototype.id = ""; - ServerChat.prototype.userId = ""; - ServerChat.prototype.name = ""; - ServerChat.prototype.message = ""; - - ServerChat.create = function create(properties) { - return new ServerChat(properties); - }; - - ServerChat.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(18).string(message.userId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(26).string(message.name); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(34).string(message.message); - return writer; - }; - - ServerChat.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerChat(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.userId = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerChat.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - ServerChat.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerChat) - return object; - let message = new $root.NT.ServerChat(); - if (object.id != null) - message.id = String(object.id); - if (object.userId != null) - message.userId = String(object.userId); - if (object.name != null) - message.name = String(object.name); - if (object.message != null) - message.message = String(object.message); - return message; - }; - - ServerChat.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = ""; - object.userId = ""; - object.name = ""; - object.message = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; - - ServerChat.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerChat; - })(); - - NT.ServerStatsUpdate = (function() { - - function ServerStatsUpdate(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerStatsUpdate.prototype.data = ""; - - ServerStatsUpdate.create = function create(properties) { - return new ServerStatsUpdate(properties); - }; - - ServerStatsUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(10).string(message.data); - return writer; - }; - - ServerStatsUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerStatsUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.data = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerStatsUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!$util.isString(message.data)) - return "data: string expected"; - return null; - }; - - ServerStatsUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerStatsUpdate) - return object; - let message = new $root.NT.ServerStatsUpdate(); - if (object.data != null) - message.data = String(object.data); - return message; - }; - - ServerStatsUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.data = ""; - if (message.data != null && message.hasOwnProperty("data")) - object.data = message.data; - return object; - }; - - ServerStatsUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerStatsUpdate; - })(); - - NT.ClientPlayerPickup = (function() { - - function ClientPlayerPickup(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerPickup.prototype.heart = null; - ClientPlayerPickup.prototype.orb = null; - - let $oneOfFields; - - Object.defineProperty(ClientPlayerPickup.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["heart", "orb"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientPlayerPickup.create = function create(properties) { - return new ClientPlayerPickup(properties); - }; - - ClientPlayerPickup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.heart != null && Object.hasOwnProperty.call(message, "heart")) - $root.NT.ClientPlayerPickup.HeartPickup.encode(message.heart, writer.uint32(10).fork()).ldelim(); - if (message.orb != null && Object.hasOwnProperty.call(message, "orb")) - $root.NT.ClientPlayerPickup.OrbPickup.encode(message.orb, writer.uint32(18).fork()).ldelim(); - return writer; - }; - - ClientPlayerPickup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerPickup(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.heart = $root.NT.ClientPlayerPickup.HeartPickup.decode(reader, reader.uint32()); - break; - case 2: - message.orb = $root.NT.ClientPlayerPickup.OrbPickup.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerPickup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.heart != null && message.hasOwnProperty("heart")) { - properties.kind = 1; - { - let error = $root.NT.ClientPlayerPickup.HeartPickup.verify(message.heart); - if (error) - return "heart." + error; - } - } - if (message.orb != null && message.hasOwnProperty("orb")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - let error = $root.NT.ClientPlayerPickup.OrbPickup.verify(message.orb); - if (error) - return "orb." + error; - } - } - return null; - }; - - ClientPlayerPickup.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerPickup) - return object; - let message = new $root.NT.ClientPlayerPickup(); - if (object.heart != null) { - if (typeof object.heart !== "object") - throw TypeError(".NT.ClientPlayerPickup.heart: object expected"); - message.heart = $root.NT.ClientPlayerPickup.HeartPickup.fromObject(object.heart); - } - if (object.orb != null) { - if (typeof object.orb !== "object") - throw TypeError(".NT.ClientPlayerPickup.orb: object expected"); - message.orb = $root.NT.ClientPlayerPickup.OrbPickup.fromObject(object.orb); - } - return message; - }; - - ClientPlayerPickup.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.heart != null && message.hasOwnProperty("heart")) { - object.heart = $root.NT.ClientPlayerPickup.HeartPickup.toObject(message.heart, options); - if (options.oneofs) - object.kind = "heart"; - } - if (message.orb != null && message.hasOwnProperty("orb")) { - object.orb = $root.NT.ClientPlayerPickup.OrbPickup.toObject(message.orb, options); - if (options.oneofs) - object.kind = "orb"; - } - return object; - }; - - ClientPlayerPickup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ClientPlayerPickup.HeartPickup = (function() { - - function HeartPickup(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - HeartPickup.prototype.hpPerk = false; - - HeartPickup.create = function create(properties) { - return new HeartPickup(properties); - }; - - HeartPickup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hpPerk != null && Object.hasOwnProperty.call(message, "hpPerk")) - writer.uint32(8).bool(message.hpPerk); - return writer; - }; - - HeartPickup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerPickup.HeartPickup(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hpPerk = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - HeartPickup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hpPerk != null && message.hasOwnProperty("hpPerk")) - if (typeof message.hpPerk !== "boolean") - return "hpPerk: boolean expected"; - return null; - }; - - HeartPickup.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerPickup.HeartPickup) - return object; - let message = new $root.NT.ClientPlayerPickup.HeartPickup(); - if (object.hpPerk != null) - message.hpPerk = Boolean(object.hpPerk); - return message; - }; - - HeartPickup.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.hpPerk = false; - if (message.hpPerk != null && message.hasOwnProperty("hpPerk")) - object.hpPerk = message.hpPerk; - return object; - }; - - HeartPickup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return HeartPickup; - })(); - - ClientPlayerPickup.OrbPickup = (function() { - - function OrbPickup(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - OrbPickup.prototype.id = 0; - - OrbPickup.create = function create(properties) { - return new OrbPickup(properties); - }; - - OrbPickup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(8).uint32(message.id); - return writer; - }; - - OrbPickup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerPickup.OrbPickup(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - OrbPickup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - return null; - }; - - OrbPickup.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerPickup.OrbPickup) - return object; - let message = new $root.NT.ClientPlayerPickup.OrbPickup(); - if (object.id != null) - message.id = object.id >>> 0; - return message; - }; - - OrbPickup.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.id = 0; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - return object; - }; - - OrbPickup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return OrbPickup; - })(); - - return ClientPlayerPickup; - })(); - - NT.ServerPlayerPickup = (function() { - - function ServerPlayerPickup(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerPickup.prototype.userId = ""; - ServerPlayerPickup.prototype.heart = null; - ServerPlayerPickup.prototype.orb = null; - - let $oneOfFields; - - Object.defineProperty(ServerPlayerPickup.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["heart", "orb"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerPlayerPickup.create = function create(properties) { - return new ServerPlayerPickup(properties); - }; - - ServerPlayerPickup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.heart != null && Object.hasOwnProperty.call(message, "heart")) - $root.NT.ServerPlayerPickup.HeartPickup.encode(message.heart, writer.uint32(18).fork()).ldelim(); - if (message.orb != null && Object.hasOwnProperty.call(message, "orb")) - $root.NT.ServerPlayerPickup.OrbPickup.encode(message.orb, writer.uint32(26).fork()).ldelim(); - return writer; - }; - - ServerPlayerPickup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerPickup(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.heart = $root.NT.ServerPlayerPickup.HeartPickup.decode(reader, reader.uint32()); - break; - case 3: - message.orb = $root.NT.ServerPlayerPickup.OrbPickup.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerPickup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.heart != null && message.hasOwnProperty("heart")) { - properties.kind = 1; - { - let error = $root.NT.ServerPlayerPickup.HeartPickup.verify(message.heart); - if (error) - return "heart." + error; - } - } - if (message.orb != null && message.hasOwnProperty("orb")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - let error = $root.NT.ServerPlayerPickup.OrbPickup.verify(message.orb); - if (error) - return "orb." + error; - } - } - return null; - }; - - ServerPlayerPickup.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerPickup) - return object; - let message = new $root.NT.ServerPlayerPickup(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.heart != null) { - if (typeof object.heart !== "object") - throw TypeError(".NT.ServerPlayerPickup.heart: object expected"); - message.heart = $root.NT.ServerPlayerPickup.HeartPickup.fromObject(object.heart); - } - if (object.orb != null) { - if (typeof object.orb !== "object") - throw TypeError(".NT.ServerPlayerPickup.orb: object expected"); - message.orb = $root.NT.ServerPlayerPickup.OrbPickup.fromObject(object.orb); - } - return message; - }; - - ServerPlayerPickup.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.heart != null && message.hasOwnProperty("heart")) { - object.heart = $root.NT.ServerPlayerPickup.HeartPickup.toObject(message.heart, options); - if (options.oneofs) - object.kind = "heart"; - } - if (message.orb != null && message.hasOwnProperty("orb")) { - object.orb = $root.NT.ServerPlayerPickup.OrbPickup.toObject(message.orb, options); - if (options.oneofs) - object.kind = "orb"; - } - return object; - }; - - ServerPlayerPickup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerPlayerPickup.HeartPickup = (function() { - - function HeartPickup(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - HeartPickup.prototype.hpPerk = false; - - HeartPickup.create = function create(properties) { - return new HeartPickup(properties); - }; - - HeartPickup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hpPerk != null && Object.hasOwnProperty.call(message, "hpPerk")) - writer.uint32(8).bool(message.hpPerk); - return writer; - }; - - HeartPickup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerPickup.HeartPickup(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hpPerk = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - HeartPickup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hpPerk != null && message.hasOwnProperty("hpPerk")) - if (typeof message.hpPerk !== "boolean") - return "hpPerk: boolean expected"; - return null; - }; - - HeartPickup.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerPickup.HeartPickup) - return object; - let message = new $root.NT.ServerPlayerPickup.HeartPickup(); - if (object.hpPerk != null) - message.hpPerk = Boolean(object.hpPerk); - return message; - }; - - HeartPickup.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.hpPerk = false; - if (message.hpPerk != null && message.hasOwnProperty("hpPerk")) - object.hpPerk = message.hpPerk; - return object; - }; - - HeartPickup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return HeartPickup; - })(); - - ServerPlayerPickup.OrbPickup = (function() { - - function OrbPickup(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - OrbPickup.prototype.id = 0; - - OrbPickup.create = function create(properties) { - return new OrbPickup(properties); - }; - - OrbPickup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(8).uint32(message.id); - return writer; - }; - - OrbPickup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerPickup.OrbPickup(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - OrbPickup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - return null; - }; - - OrbPickup.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerPickup.OrbPickup) - return object; - let message = new $root.NT.ServerPlayerPickup.OrbPickup(); - if (object.id != null) - message.id = object.id >>> 0; - return message; - }; - - OrbPickup.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.id = 0; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - return object; - }; - - OrbPickup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return OrbPickup; - })(); - - return ServerPlayerPickup; - })(); - - NT.ClientNemesisPickupItem = (function() { - - function ClientNemesisPickupItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientNemesisPickupItem.prototype.gameId = ""; - - ClientNemesisPickupItem.create = function create(properties) { - return new ClientNemesisPickupItem(properties); - }; - - ClientNemesisPickupItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gameId != null && Object.hasOwnProperty.call(message, "gameId")) - writer.uint32(10).string(message.gameId); - return writer; - }; - - ClientNemesisPickupItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientNemesisPickupItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gameId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientNemesisPickupItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gameId != null && message.hasOwnProperty("gameId")) - if (!$util.isString(message.gameId)) - return "gameId: string expected"; - return null; - }; - - ClientNemesisPickupItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientNemesisPickupItem) - return object; - let message = new $root.NT.ClientNemesisPickupItem(); - if (object.gameId != null) - message.gameId = String(object.gameId); - return message; - }; - - ClientNemesisPickupItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.gameId = ""; - if (message.gameId != null && message.hasOwnProperty("gameId")) - object.gameId = message.gameId; - return object; - }; - - ClientNemesisPickupItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientNemesisPickupItem; - })(); - - NT.ServerNemesisPickupItem = (function() { - - function ServerNemesisPickupItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerNemesisPickupItem.prototype.userId = ""; - ServerNemesisPickupItem.prototype.gameId = ""; - - ServerNemesisPickupItem.create = function create(properties) { - return new ServerNemesisPickupItem(properties); - }; - - ServerNemesisPickupItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.gameId != null && Object.hasOwnProperty.call(message, "gameId")) - writer.uint32(18).string(message.gameId); - return writer; - }; - - ServerNemesisPickupItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerNemesisPickupItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.gameId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerNemesisPickupItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.gameId != null && message.hasOwnProperty("gameId")) - if (!$util.isString(message.gameId)) - return "gameId: string expected"; - return null; - }; - - ServerNemesisPickupItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerNemesisPickupItem) - return object; - let message = new $root.NT.ServerNemesisPickupItem(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.gameId != null) - message.gameId = String(object.gameId); - return message; - }; - - ServerNemesisPickupItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.gameId = ""; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.gameId != null && message.hasOwnProperty("gameId")) - object.gameId = message.gameId; - return object; - }; - - ServerNemesisPickupItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerNemesisPickupItem; - })(); - - NT.ClientNemesisAbility = (function() { - - function ClientNemesisAbility(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientNemesisAbility.prototype.gameId = ""; - - ClientNemesisAbility.create = function create(properties) { - return new ClientNemesisAbility(properties); - }; - - ClientNemesisAbility.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gameId != null && Object.hasOwnProperty.call(message, "gameId")) - writer.uint32(10).string(message.gameId); - return writer; - }; - - ClientNemesisAbility.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientNemesisAbility(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gameId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientNemesisAbility.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gameId != null && message.hasOwnProperty("gameId")) - if (!$util.isString(message.gameId)) - return "gameId: string expected"; - return null; - }; - - ClientNemesisAbility.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientNemesisAbility) - return object; - let message = new $root.NT.ClientNemesisAbility(); - if (object.gameId != null) - message.gameId = String(object.gameId); - return message; - }; - - ClientNemesisAbility.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.gameId = ""; - if (message.gameId != null && message.hasOwnProperty("gameId")) - object.gameId = message.gameId; - return object; - }; - - ClientNemesisAbility.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientNemesisAbility; - })(); - - NT.ServerNemesisAbility = (function() { - - function ServerNemesisAbility(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerNemesisAbility.prototype.userId = ""; - ServerNemesisAbility.prototype.gameId = ""; - - ServerNemesisAbility.create = function create(properties) { - return new ServerNemesisAbility(properties); - }; - - ServerNemesisAbility.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.gameId != null && Object.hasOwnProperty.call(message, "gameId")) - writer.uint32(18).string(message.gameId); - return writer; - }; - - ServerNemesisAbility.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerNemesisAbility(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.gameId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerNemesisAbility.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.gameId != null && message.hasOwnProperty("gameId")) - if (!$util.isString(message.gameId)) - return "gameId: string expected"; - return null; - }; - - ServerNemesisAbility.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerNemesisAbility) - return object; - let message = new $root.NT.ServerNemesisAbility(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.gameId != null) - message.gameId = String(object.gameId); - return message; - }; - - ServerNemesisAbility.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.gameId = ""; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.gameId != null && message.hasOwnProperty("gameId")) - object.gameId = message.gameId; - return object; - }; - - ServerNemesisAbility.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerNemesisAbility; - })(); - - NT.ClientPlayerDeath = (function() { - - function ClientPlayerDeath(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerDeath.prototype.isWin = false; - ClientPlayerDeath.prototype.gameTime = null; - - let $oneOfFields; - - Object.defineProperty(ClientPlayerDeath.prototype, "_gameTime", { - get: $util.oneOfGetter($oneOfFields = ["gameTime"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientPlayerDeath.create = function create(properties) { - return new ClientPlayerDeath(properties); - }; - - ClientPlayerDeath.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.isWin != null && Object.hasOwnProperty.call(message, "isWin")) - writer.uint32(8).bool(message.isWin); - if (message.gameTime != null && Object.hasOwnProperty.call(message, "gameTime")) - writer.uint32(16).uint32(message.gameTime); - return writer; - }; - - ClientPlayerDeath.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerDeath(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.isWin = reader.bool(); - break; - case 2: - message.gameTime = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerDeath.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.isWin != null && message.hasOwnProperty("isWin")) - if (typeof message.isWin !== "boolean") - return "isWin: boolean expected"; - if (message.gameTime != null && message.hasOwnProperty("gameTime")) { - properties._gameTime = 1; - if (!$util.isInteger(message.gameTime)) - return "gameTime: integer expected"; - } - return null; - }; - - ClientPlayerDeath.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerDeath) - return object; - let message = new $root.NT.ClientPlayerDeath(); - if (object.isWin != null) - message.isWin = Boolean(object.isWin); - if (object.gameTime != null) - message.gameTime = object.gameTime >>> 0; - return message; - }; - - ClientPlayerDeath.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.isWin = false; - if (message.isWin != null && message.hasOwnProperty("isWin")) - object.isWin = message.isWin; - if (message.gameTime != null && message.hasOwnProperty("gameTime")) { - object.gameTime = message.gameTime; - if (options.oneofs) - object._gameTime = "gameTime"; - } - return object; - }; - - ClientPlayerDeath.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerDeath; - })(); - - NT.ServerPlayerDeath = (function() { - - function ServerPlayerDeath(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerDeath.prototype.userId = ""; - ServerPlayerDeath.prototype.isWin = false; - ServerPlayerDeath.prototype.gameTime = null; - - let $oneOfFields; - - Object.defineProperty(ServerPlayerDeath.prototype, "_gameTime", { - get: $util.oneOfGetter($oneOfFields = ["gameTime"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerPlayerDeath.create = function create(properties) { - return new ServerPlayerDeath(properties); - }; - - ServerPlayerDeath.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.isWin != null && Object.hasOwnProperty.call(message, "isWin")) - writer.uint32(16).bool(message.isWin); - if (message.gameTime != null && Object.hasOwnProperty.call(message, "gameTime")) - writer.uint32(24).uint32(message.gameTime); - return writer; - }; - - ServerPlayerDeath.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerDeath(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.isWin = reader.bool(); - break; - case 3: - message.gameTime = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerDeath.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.isWin != null && message.hasOwnProperty("isWin")) - if (typeof message.isWin !== "boolean") - return "isWin: boolean expected"; - if (message.gameTime != null && message.hasOwnProperty("gameTime")) { - properties._gameTime = 1; - if (!$util.isInteger(message.gameTime)) - return "gameTime: integer expected"; - } - return null; - }; - - ServerPlayerDeath.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerDeath) - return object; - let message = new $root.NT.ServerPlayerDeath(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.isWin != null) - message.isWin = Boolean(object.isWin); - if (object.gameTime != null) - message.gameTime = object.gameTime >>> 0; - return message; - }; - - ServerPlayerDeath.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.isWin = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.isWin != null && message.hasOwnProperty("isWin")) - object.isWin = message.isWin; - if (message.gameTime != null && message.hasOwnProperty("gameTime")) { - object.gameTime = message.gameTime; - if (options.oneofs) - object._gameTime = "gameTime"; - } - return object; - }; - - ServerPlayerDeath.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerDeath; - })(); - - NT.ClientPlayerNewGamePlus = (function() { - - function ClientPlayerNewGamePlus(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerNewGamePlus.prototype.amount = 0; - - ClientPlayerNewGamePlus.create = function create(properties) { - return new ClientPlayerNewGamePlus(properties); - }; - - ClientPlayerNewGamePlus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(8).uint32(message.amount); - return writer; - }; - - ClientPlayerNewGamePlus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerNewGamePlus(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerNewGamePlus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - ClientPlayerNewGamePlus.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerNewGamePlus) - return object; - let message = new $root.NT.ClientPlayerNewGamePlus(); - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - ClientPlayerNewGamePlus.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.amount = 0; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - ClientPlayerNewGamePlus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerNewGamePlus; - })(); - - NT.ServerPlayerNewGamePlus = (function() { - - function ServerPlayerNewGamePlus(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerNewGamePlus.prototype.userId = ""; - ServerPlayerNewGamePlus.prototype.amount = 0; - - ServerPlayerNewGamePlus.create = function create(properties) { - return new ServerPlayerNewGamePlus(properties); - }; - - ServerPlayerNewGamePlus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(16).uint32(message.amount); - return writer; - }; - - ServerPlayerNewGamePlus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerNewGamePlus(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerNewGamePlus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - ServerPlayerNewGamePlus.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerNewGamePlus) - return object; - let message = new $root.NT.ServerPlayerNewGamePlus(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - ServerPlayerNewGamePlus.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.amount = 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - ServerPlayerNewGamePlus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerNewGamePlus; - })(); - - NT.ClientPlayerSecretHourglass = (function() { - - function ClientPlayerSecretHourglass(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientPlayerSecretHourglass.prototype.material = ""; - - ClientPlayerSecretHourglass.create = function create(properties) { - return new ClientPlayerSecretHourglass(properties); - }; - - ClientPlayerSecretHourglass.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.material != null && Object.hasOwnProperty.call(message, "material")) - writer.uint32(10).string(message.material); - return writer; - }; - - ClientPlayerSecretHourglass.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientPlayerSecretHourglass(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.material = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientPlayerSecretHourglass.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.material != null && message.hasOwnProperty("material")) - if (!$util.isString(message.material)) - return "material: string expected"; - return null; - }; - - ClientPlayerSecretHourglass.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientPlayerSecretHourglass) - return object; - let message = new $root.NT.ClientPlayerSecretHourglass(); - if (object.material != null) - message.material = String(object.material); - return message; - }; - - ClientPlayerSecretHourglass.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.material = ""; - if (message.material != null && message.hasOwnProperty("material")) - object.material = message.material; - return object; - }; - - ClientPlayerSecretHourglass.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientPlayerSecretHourglass; - })(); - - NT.ServerPlayerSecretHourglass = (function() { - - function ServerPlayerSecretHourglass(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerPlayerSecretHourglass.prototype.userId = ""; - ServerPlayerSecretHourglass.prototype.material = ""; - - ServerPlayerSecretHourglass.create = function create(properties) { - return new ServerPlayerSecretHourglass(properties); - }; - - ServerPlayerSecretHourglass.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.material != null && Object.hasOwnProperty.call(message, "material")) - writer.uint32(18).string(message.material); - return writer; - }; - - ServerPlayerSecretHourglass.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerPlayerSecretHourglass(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.material = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerPlayerSecretHourglass.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.material != null && message.hasOwnProperty("material")) - if (!$util.isString(message.material)) - return "material: string expected"; - return null; - }; - - ServerPlayerSecretHourglass.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerPlayerSecretHourglass) - return object; - let message = new $root.NT.ServerPlayerSecretHourglass(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.material != null) - message.material = String(object.material); - return message; - }; - - ServerPlayerSecretHourglass.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.material = ""; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.material != null && message.hasOwnProperty("material")) - object.material = message.material; - return object; - }; - - ServerPlayerSecretHourglass.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerPlayerSecretHourglass; - })(); - - NT.ClientCustomModEvent = (function() { - - function ClientCustomModEvent(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientCustomModEvent.prototype.payload = ""; - - ClientCustomModEvent.create = function create(properties) { - return new ClientCustomModEvent(properties); - }; - - ClientCustomModEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(10).string(message.payload); - return writer; - }; - - ClientCustomModEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientCustomModEvent(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.payload = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientCustomModEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!$util.isString(message.payload)) - return "payload: string expected"; - return null; - }; - - ClientCustomModEvent.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientCustomModEvent) - return object; - let message = new $root.NT.ClientCustomModEvent(); - if (object.payload != null) - message.payload = String(object.payload); - return message; - }; - - ClientCustomModEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.payload = ""; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; - return object; - }; - - ClientCustomModEvent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientCustomModEvent; - })(); - - NT.ServerCustomModEvent = (function() { - - function ServerCustomModEvent(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerCustomModEvent.prototype.userId = ""; - ServerCustomModEvent.prototype.payload = ""; - - ServerCustomModEvent.create = function create(properties) { - return new ServerCustomModEvent(properties); - }; - - ServerCustomModEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(18).string(message.payload); - return writer; - }; - - ServerCustomModEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerCustomModEvent(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.payload = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerCustomModEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!$util.isString(message.payload)) - return "payload: string expected"; - return null; - }; - - ServerCustomModEvent.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerCustomModEvent) - return object; - let message = new $root.NT.ServerCustomModEvent(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.payload != null) - message.payload = String(object.payload); - return message; - }; - - ServerCustomModEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.payload = ""; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; - return object; - }; - - ServerCustomModEvent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerCustomModEvent; - })(); - - NT.ClientRespawnPenalty = (function() { - - function ClientRespawnPenalty(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRespawnPenalty.prototype.deaths = 0; - - ClientRespawnPenalty.create = function create(properties) { - return new ClientRespawnPenalty(properties); - }; - - ClientRespawnPenalty.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deaths != null && Object.hasOwnProperty.call(message, "deaths")) - writer.uint32(8).uint32(message.deaths); - return writer; - }; - - ClientRespawnPenalty.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRespawnPenalty(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deaths = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRespawnPenalty.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deaths != null && message.hasOwnProperty("deaths")) - if (!$util.isInteger(message.deaths)) - return "deaths: integer expected"; - return null; - }; - - ClientRespawnPenalty.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRespawnPenalty) - return object; - let message = new $root.NT.ClientRespawnPenalty(); - if (object.deaths != null) - message.deaths = object.deaths >>> 0; - return message; - }; - - ClientRespawnPenalty.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.deaths = 0; - if (message.deaths != null && message.hasOwnProperty("deaths")) - object.deaths = message.deaths; - return object; - }; - - ClientRespawnPenalty.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientRespawnPenalty; - })(); - - NT.ServerRespawnPenalty = (function() { - - function ServerRespawnPenalty(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRespawnPenalty.prototype.userId = ""; - ServerRespawnPenalty.prototype.deaths = 0; - - ServerRespawnPenalty.create = function create(properties) { - return new ServerRespawnPenalty(properties); - }; - - ServerRespawnPenalty.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.deaths != null && Object.hasOwnProperty.call(message, "deaths")) - writer.uint32(16).uint32(message.deaths); - return writer; - }; - - ServerRespawnPenalty.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRespawnPenalty(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.deaths = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRespawnPenalty.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.deaths != null && message.hasOwnProperty("deaths")) - if (!$util.isInteger(message.deaths)) - return "deaths: integer expected"; - return null; - }; - - ServerRespawnPenalty.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRespawnPenalty) - return object; - let message = new $root.NT.ServerRespawnPenalty(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.deaths != null) - message.deaths = object.deaths >>> 0; - return message; - }; - - ServerRespawnPenalty.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.deaths = 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.deaths != null && message.hasOwnProperty("deaths")) - object.deaths = message.deaths; - return object; - }; - - ServerRespawnPenalty.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerRespawnPenalty; - })(); - - NT.ClientAngerySteve = (function() { - - function ClientAngerySteve(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientAngerySteve.prototype.idk = false; - - ClientAngerySteve.create = function create(properties) { - return new ClientAngerySteve(properties); - }; - - ClientAngerySteve.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.idk != null && Object.hasOwnProperty.call(message, "idk")) - writer.uint32(8).bool(message.idk); - return writer; - }; - - ClientAngerySteve.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientAngerySteve(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.idk = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientAngerySteve.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.idk != null && message.hasOwnProperty("idk")) - if (typeof message.idk !== "boolean") - return "idk: boolean expected"; - return null; - }; - - ClientAngerySteve.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientAngerySteve) - return object; - let message = new $root.NT.ClientAngerySteve(); - if (object.idk != null) - message.idk = Boolean(object.idk); - return message; - }; - - ClientAngerySteve.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.idk = false; - if (message.idk != null && message.hasOwnProperty("idk")) - object.idk = message.idk; - return object; - }; - - ClientAngerySteve.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientAngerySteve; - })(); - - NT.ServerAngerySteve = (function() { - - function ServerAngerySteve(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerAngerySteve.prototype.userId = ""; - - ServerAngerySteve.create = function create(properties) { - return new ServerAngerySteve(properties); - }; - - ServerAngerySteve.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ServerAngerySteve.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerAngerySteve(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerAngerySteve.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ServerAngerySteve.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerAngerySteve) - return object; - let message = new $root.NT.ServerAngerySteve(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ServerAngerySteve.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ServerAngerySteve.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerAngerySteve; - })(); - - NT.Wand = (function() { - - function Wand(properties) { - this.alwaysCast = []; - this.deck = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Wand.prototype.id = ""; - Wand.prototype.stats = null; - Wand.prototype.alwaysCast = $util.emptyArray; - Wand.prototype.deck = $util.emptyArray; - Wand.prototype.sentBy = null; - Wand.prototype.contributedBy = null; - - let $oneOfFields; - - Object.defineProperty(Wand.prototype, "_sentBy", { - get: $util.oneOfGetter($oneOfFields = ["sentBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(Wand.prototype, "_contributedBy", { - get: $util.oneOfGetter($oneOfFields = ["contributedBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Wand.create = function create(properties) { - return new Wand(properties); - }; - - Wand.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.stats != null && Object.hasOwnProperty.call(message, "stats")) - $root.NT.Wand.WandStats.encode(message.stats, writer.uint32(18).fork()).ldelim(); - if (message.alwaysCast != null && message.alwaysCast.length) - for (let i = 0; i < message.alwaysCast.length; ++i) - $root.NT.Spell.encode(message.alwaysCast[i], writer.uint32(26).fork()).ldelim(); - if (message.deck != null && message.deck.length) - for (let i = 0; i < message.deck.length; ++i) - $root.NT.Spell.encode(message.deck[i], writer.uint32(34).fork()).ldelim(); - if (message.sentBy != null && Object.hasOwnProperty.call(message, "sentBy")) - writer.uint32(42).string(message.sentBy); - if (message.contributedBy != null && Object.hasOwnProperty.call(message, "contributedBy")) - writer.uint32(50).string(message.contributedBy); - return writer; - }; - - Wand.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Wand(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.stats = $root.NT.Wand.WandStats.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.alwaysCast && message.alwaysCast.length)) - message.alwaysCast = []; - message.alwaysCast.push($root.NT.Spell.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.deck && message.deck.length)) - message.deck = []; - message.deck.push($root.NT.Spell.decode(reader, reader.uint32())); - break; - case 5: - message.sentBy = reader.string(); - break; - case 6: - message.contributedBy = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Wand.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.stats != null && message.hasOwnProperty("stats")) { - let error = $root.NT.Wand.WandStats.verify(message.stats); - if (error) - return "stats." + error; - } - if (message.alwaysCast != null && message.hasOwnProperty("alwaysCast")) { - if (!Array.isArray(message.alwaysCast)) - return "alwaysCast: array expected"; - for (let i = 0; i < message.alwaysCast.length; ++i) { - let error = $root.NT.Spell.verify(message.alwaysCast[i]); - if (error) - return "alwaysCast." + error; - } - } - if (message.deck != null && message.hasOwnProperty("deck")) { - if (!Array.isArray(message.deck)) - return "deck: array expected"; - for (let i = 0; i < message.deck.length; ++i) { - let error = $root.NT.Spell.verify(message.deck[i]); - if (error) - return "deck." + error; - } - } - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - properties._sentBy = 1; - if (!$util.isString(message.sentBy)) - return "sentBy: string expected"; - } - if (message.contributedBy != null && message.hasOwnProperty("contributedBy")) { - properties._contributedBy = 1; - if (!$util.isString(message.contributedBy)) - return "contributedBy: string expected"; - } - return null; - }; - - Wand.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Wand) - return object; - let message = new $root.NT.Wand(); - if (object.id != null) - message.id = String(object.id); - if (object.stats != null) { - if (typeof object.stats !== "object") - throw TypeError(".NT.Wand.stats: object expected"); - message.stats = $root.NT.Wand.WandStats.fromObject(object.stats); - } - if (object.alwaysCast) { - if (!Array.isArray(object.alwaysCast)) - throw TypeError(".NT.Wand.alwaysCast: array expected"); - message.alwaysCast = []; - for (let i = 0; i < object.alwaysCast.length; ++i) { - if (typeof object.alwaysCast[i] !== "object") - throw TypeError(".NT.Wand.alwaysCast: object expected"); - message.alwaysCast[i] = $root.NT.Spell.fromObject(object.alwaysCast[i]); - } - } - if (object.deck) { - if (!Array.isArray(object.deck)) - throw TypeError(".NT.Wand.deck: array expected"); - message.deck = []; - for (let i = 0; i < object.deck.length; ++i) { - if (typeof object.deck[i] !== "object") - throw TypeError(".NT.Wand.deck: object expected"); - message.deck[i] = $root.NT.Spell.fromObject(object.deck[i]); - } - } - if (object.sentBy != null) - message.sentBy = String(object.sentBy); - if (object.contributedBy != null) - message.contributedBy = String(object.contributedBy); - return message; - }; - - Wand.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.alwaysCast = []; - object.deck = []; - } - if (options.defaults) { - object.id = ""; - object.stats = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.stats != null && message.hasOwnProperty("stats")) - object.stats = $root.NT.Wand.WandStats.toObject(message.stats, options); - if (message.alwaysCast && message.alwaysCast.length) { - object.alwaysCast = []; - for (let j = 0; j < message.alwaysCast.length; ++j) - object.alwaysCast[j] = $root.NT.Spell.toObject(message.alwaysCast[j], options); - } - if (message.deck && message.deck.length) { - object.deck = []; - for (let j = 0; j < message.deck.length; ++j) - object.deck[j] = $root.NT.Spell.toObject(message.deck[j], options); - } - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - object.sentBy = message.sentBy; - if (options.oneofs) - object._sentBy = "sentBy"; - } - if (message.contributedBy != null && message.hasOwnProperty("contributedBy")) { - object.contributedBy = message.contributedBy; - if (options.oneofs) - object._contributedBy = "contributedBy"; - } - return object; - }; - - Wand.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - Wand.WandStats = (function() { - - function WandStats(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - WandStats.prototype.sprite = ""; - WandStats.prototype.named = false; - WandStats.prototype.uiName = ""; - WandStats.prototype.manaMax = 0; - WandStats.prototype.manaChargeSpeed = 0; - WandStats.prototype.reloadTime = 0; - WandStats.prototype.actionsPerRound = 0; - WandStats.prototype.deckCapacity = 0; - WandStats.prototype.shuffleDeckWhenEmpty = false; - WandStats.prototype.spreadDegrees = 0; - WandStats.prototype.speedMultiplier = 0; - WandStats.prototype.fireRateWait = 0; - WandStats.prototype.tipX = 0; - WandStats.prototype.tipY = 0; - WandStats.prototype.gripX = 0; - WandStats.prototype.gripY = 0; - - WandStats.create = function create(properties) { - return new WandStats(properties); - }; - - WandStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sprite != null && Object.hasOwnProperty.call(message, "sprite")) - writer.uint32(10).string(message.sprite); - if (message.named != null && Object.hasOwnProperty.call(message, "named")) - writer.uint32(16).bool(message.named); - if (message.uiName != null && Object.hasOwnProperty.call(message, "uiName")) - writer.uint32(26).string(message.uiName); - if (message.manaMax != null && Object.hasOwnProperty.call(message, "manaMax")) - writer.uint32(37).float(message.manaMax); - if (message.manaChargeSpeed != null && Object.hasOwnProperty.call(message, "manaChargeSpeed")) - writer.uint32(45).float(message.manaChargeSpeed); - if (message.reloadTime != null && Object.hasOwnProperty.call(message, "reloadTime")) - writer.uint32(48).int32(message.reloadTime); - if (message.actionsPerRound != null && Object.hasOwnProperty.call(message, "actionsPerRound")) - writer.uint32(56).uint32(message.actionsPerRound); - if (message.deckCapacity != null && Object.hasOwnProperty.call(message, "deckCapacity")) - writer.uint32(64).uint32(message.deckCapacity); - if (message.shuffleDeckWhenEmpty != null && Object.hasOwnProperty.call(message, "shuffleDeckWhenEmpty")) - writer.uint32(72).bool(message.shuffleDeckWhenEmpty); - if (message.spreadDegrees != null && Object.hasOwnProperty.call(message, "spreadDegrees")) - writer.uint32(85).float(message.spreadDegrees); - if (message.speedMultiplier != null && Object.hasOwnProperty.call(message, "speedMultiplier")) - writer.uint32(93).float(message.speedMultiplier); - if (message.fireRateWait != null && Object.hasOwnProperty.call(message, "fireRateWait")) - writer.uint32(96).int32(message.fireRateWait); - if (message.tipX != null && Object.hasOwnProperty.call(message, "tipX")) - writer.uint32(109).float(message.tipX); - if (message.tipY != null && Object.hasOwnProperty.call(message, "tipY")) - writer.uint32(117).float(message.tipY); - if (message.gripX != null && Object.hasOwnProperty.call(message, "gripX")) - writer.uint32(125).float(message.gripX); - if (message.gripY != null && Object.hasOwnProperty.call(message, "gripY")) - writer.uint32(133).float(message.gripY); - return writer; - }; - - WandStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Wand.WandStats(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sprite = reader.string(); - break; - case 2: - message.named = reader.bool(); - break; - case 3: - message.uiName = reader.string(); - break; - case 4: - message.manaMax = reader.float(); - break; - case 5: - message.manaChargeSpeed = reader.float(); - break; - case 6: - message.reloadTime = reader.int32(); - break; - case 7: - message.actionsPerRound = reader.uint32(); - break; - case 8: - message.deckCapacity = reader.uint32(); - break; - case 9: - message.shuffleDeckWhenEmpty = reader.bool(); - break; - case 10: - message.spreadDegrees = reader.float(); - break; - case 11: - message.speedMultiplier = reader.float(); - break; - case 12: - message.fireRateWait = reader.int32(); - break; - case 13: - message.tipX = reader.float(); - break; - case 14: - message.tipY = reader.float(); - break; - case 15: - message.gripX = reader.float(); - break; - case 16: - message.gripY = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - WandStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sprite != null && message.hasOwnProperty("sprite")) - if (!$util.isString(message.sprite)) - return "sprite: string expected"; - if (message.named != null && message.hasOwnProperty("named")) - if (typeof message.named !== "boolean") - return "named: boolean expected"; - if (message.uiName != null && message.hasOwnProperty("uiName")) - if (!$util.isString(message.uiName)) - return "uiName: string expected"; - if (message.manaMax != null && message.hasOwnProperty("manaMax")) - if (typeof message.manaMax !== "number") - return "manaMax: number expected"; - if (message.manaChargeSpeed != null && message.hasOwnProperty("manaChargeSpeed")) - if (typeof message.manaChargeSpeed !== "number") - return "manaChargeSpeed: number expected"; - if (message.reloadTime != null && message.hasOwnProperty("reloadTime")) - if (!$util.isInteger(message.reloadTime)) - return "reloadTime: integer expected"; - if (message.actionsPerRound != null && message.hasOwnProperty("actionsPerRound")) - if (!$util.isInteger(message.actionsPerRound)) - return "actionsPerRound: integer expected"; - if (message.deckCapacity != null && message.hasOwnProperty("deckCapacity")) - if (!$util.isInteger(message.deckCapacity)) - return "deckCapacity: integer expected"; - if (message.shuffleDeckWhenEmpty != null && message.hasOwnProperty("shuffleDeckWhenEmpty")) - if (typeof message.shuffleDeckWhenEmpty !== "boolean") - return "shuffleDeckWhenEmpty: boolean expected"; - if (message.spreadDegrees != null && message.hasOwnProperty("spreadDegrees")) - if (typeof message.spreadDegrees !== "number") - return "spreadDegrees: number expected"; - if (message.speedMultiplier != null && message.hasOwnProperty("speedMultiplier")) - if (typeof message.speedMultiplier !== "number") - return "speedMultiplier: number expected"; - if (message.fireRateWait != null && message.hasOwnProperty("fireRateWait")) - if (!$util.isInteger(message.fireRateWait)) - return "fireRateWait: integer expected"; - if (message.tipX != null && message.hasOwnProperty("tipX")) - if (typeof message.tipX !== "number") - return "tipX: number expected"; - if (message.tipY != null && message.hasOwnProperty("tipY")) - if (typeof message.tipY !== "number") - return "tipY: number expected"; - if (message.gripX != null && message.hasOwnProperty("gripX")) - if (typeof message.gripX !== "number") - return "gripX: number expected"; - if (message.gripY != null && message.hasOwnProperty("gripY")) - if (typeof message.gripY !== "number") - return "gripY: number expected"; - return null; - }; - - WandStats.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Wand.WandStats) - return object; - let message = new $root.NT.Wand.WandStats(); - if (object.sprite != null) - message.sprite = String(object.sprite); - if (object.named != null) - message.named = Boolean(object.named); - if (object.uiName != null) - message.uiName = String(object.uiName); - if (object.manaMax != null) - message.manaMax = Number(object.manaMax); - if (object.manaChargeSpeed != null) - message.manaChargeSpeed = Number(object.manaChargeSpeed); - if (object.reloadTime != null) - message.reloadTime = object.reloadTime | 0; - if (object.actionsPerRound != null) - message.actionsPerRound = object.actionsPerRound >>> 0; - if (object.deckCapacity != null) - message.deckCapacity = object.deckCapacity >>> 0; - if (object.shuffleDeckWhenEmpty != null) - message.shuffleDeckWhenEmpty = Boolean(object.shuffleDeckWhenEmpty); - if (object.spreadDegrees != null) - message.spreadDegrees = Number(object.spreadDegrees); - if (object.speedMultiplier != null) - message.speedMultiplier = Number(object.speedMultiplier); - if (object.fireRateWait != null) - message.fireRateWait = object.fireRateWait | 0; - if (object.tipX != null) - message.tipX = Number(object.tipX); - if (object.tipY != null) - message.tipY = Number(object.tipY); - if (object.gripX != null) - message.gripX = Number(object.gripX); - if (object.gripY != null) - message.gripY = Number(object.gripY); - return message; - }; - - WandStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.sprite = ""; - object.named = false; - object.uiName = ""; - object.manaMax = 0; - object.manaChargeSpeed = 0; - object.reloadTime = 0; - object.actionsPerRound = 0; - object.deckCapacity = 0; - object.shuffleDeckWhenEmpty = false; - object.spreadDegrees = 0; - object.speedMultiplier = 0; - object.fireRateWait = 0; - object.tipX = 0; - object.tipY = 0; - object.gripX = 0; - object.gripY = 0; - } - if (message.sprite != null && message.hasOwnProperty("sprite")) - object.sprite = message.sprite; - if (message.named != null && message.hasOwnProperty("named")) - object.named = message.named; - if (message.uiName != null && message.hasOwnProperty("uiName")) - object.uiName = message.uiName; - if (message.manaMax != null && message.hasOwnProperty("manaMax")) - object.manaMax = options.json && !isFinite(message.manaMax) ? String(message.manaMax) : message.manaMax; - if (message.manaChargeSpeed != null && message.hasOwnProperty("manaChargeSpeed")) - object.manaChargeSpeed = options.json && !isFinite(message.manaChargeSpeed) ? String(message.manaChargeSpeed) : message.manaChargeSpeed; - if (message.reloadTime != null && message.hasOwnProperty("reloadTime")) - object.reloadTime = message.reloadTime; - if (message.actionsPerRound != null && message.hasOwnProperty("actionsPerRound")) - object.actionsPerRound = message.actionsPerRound; - if (message.deckCapacity != null && message.hasOwnProperty("deckCapacity")) - object.deckCapacity = message.deckCapacity; - if (message.shuffleDeckWhenEmpty != null && message.hasOwnProperty("shuffleDeckWhenEmpty")) - object.shuffleDeckWhenEmpty = message.shuffleDeckWhenEmpty; - if (message.spreadDegrees != null && message.hasOwnProperty("spreadDegrees")) - object.spreadDegrees = options.json && !isFinite(message.spreadDegrees) ? String(message.spreadDegrees) : message.spreadDegrees; - if (message.speedMultiplier != null && message.hasOwnProperty("speedMultiplier")) - object.speedMultiplier = options.json && !isFinite(message.speedMultiplier) ? String(message.speedMultiplier) : message.speedMultiplier; - if (message.fireRateWait != null && message.hasOwnProperty("fireRateWait")) - object.fireRateWait = message.fireRateWait; - if (message.tipX != null && message.hasOwnProperty("tipX")) - object.tipX = options.json && !isFinite(message.tipX) ? String(message.tipX) : message.tipX; - if (message.tipY != null && message.hasOwnProperty("tipY")) - object.tipY = options.json && !isFinite(message.tipY) ? String(message.tipY) : message.tipY; - if (message.gripX != null && message.hasOwnProperty("gripX")) - object.gripX = options.json && !isFinite(message.gripX) ? String(message.gripX) : message.gripX; - if (message.gripY != null && message.hasOwnProperty("gripY")) - object.gripY = options.json && !isFinite(message.gripY) ? String(message.gripY) : message.gripY; - return object; - }; - - WandStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WandStats; - })(); - - return Wand; - })(); - - NT.Spell = (function() { - - function Spell(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Spell.prototype.id = ""; - Spell.prototype.gameId = ""; - Spell.prototype.sentBy = null; - Spell.prototype.contributedBy = null; - Spell.prototype.usesRemaining = 0; - - let $oneOfFields; - - Object.defineProperty(Spell.prototype, "_sentBy", { - get: $util.oneOfGetter($oneOfFields = ["sentBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(Spell.prototype, "_contributedBy", { - get: $util.oneOfGetter($oneOfFields = ["contributedBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Spell.create = function create(properties) { - return new Spell(properties); - }; - - Spell.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.gameId != null && Object.hasOwnProperty.call(message, "gameId")) - writer.uint32(18).string(message.gameId); - if (message.sentBy != null && Object.hasOwnProperty.call(message, "sentBy")) - writer.uint32(26).string(message.sentBy); - if (message.contributedBy != null && Object.hasOwnProperty.call(message, "contributedBy")) - writer.uint32(34).string(message.contributedBy); - if (message.usesRemaining != null && Object.hasOwnProperty.call(message, "usesRemaining")) - writer.uint32(40).int32(message.usesRemaining); - return writer; - }; - - Spell.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Spell(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.gameId = reader.string(); - break; - case 3: - message.sentBy = reader.string(); - break; - case 4: - message.contributedBy = reader.string(); - break; - case 5: - message.usesRemaining = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Spell.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.gameId != null && message.hasOwnProperty("gameId")) - if (!$util.isString(message.gameId)) - return "gameId: string expected"; - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - properties._sentBy = 1; - if (!$util.isString(message.sentBy)) - return "sentBy: string expected"; - } - if (message.contributedBy != null && message.hasOwnProperty("contributedBy")) { - properties._contributedBy = 1; - if (!$util.isString(message.contributedBy)) - return "contributedBy: string expected"; - } - if (message.usesRemaining != null && message.hasOwnProperty("usesRemaining")) - if (!$util.isInteger(message.usesRemaining)) - return "usesRemaining: integer expected"; - return null; - }; - - Spell.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Spell) - return object; - let message = new $root.NT.Spell(); - if (object.id != null) - message.id = String(object.id); - if (object.gameId != null) - message.gameId = String(object.gameId); - if (object.sentBy != null) - message.sentBy = String(object.sentBy); - if (object.contributedBy != null) - message.contributedBy = String(object.contributedBy); - if (object.usesRemaining != null) - message.usesRemaining = object.usesRemaining | 0; - return message; - }; - - Spell.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = ""; - object.gameId = ""; - object.usesRemaining = 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.gameId != null && message.hasOwnProperty("gameId")) - object.gameId = message.gameId; - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - object.sentBy = message.sentBy; - if (options.oneofs) - object._sentBy = "sentBy"; - } - if (message.contributedBy != null && message.hasOwnProperty("contributedBy")) { - object.contributedBy = message.contributedBy; - if (options.oneofs) - object._contributedBy = "contributedBy"; - } - if (message.usesRemaining != null && message.hasOwnProperty("usesRemaining")) - object.usesRemaining = message.usesRemaining; - return object; - }; - - Spell.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Spell; - })(); - - NT.Item = (function() { - - function Item(properties) { - this.content = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Item.prototype.id = ""; - Item.prototype.color = null; - Item.prototype.content = $util.emptyArray; - Item.prototype.sentBy = null; - Item.prototype.contributedBy = null; - Item.prototype.isChest = false; - Item.prototype.itemType = ""; - - let $oneOfFields; - - Object.defineProperty(Item.prototype, "_sentBy", { - get: $util.oneOfGetter($oneOfFields = ["sentBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(Item.prototype, "_contributedBy", { - get: $util.oneOfGetter($oneOfFields = ["contributedBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Item.create = function create(properties) { - return new Item(properties); - }; - - Item.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.color != null && Object.hasOwnProperty.call(message, "color")) - $root.NT.Item.Color.encode(message.color, writer.uint32(18).fork()).ldelim(); - if (message.content != null && message.content.length) - for (let i = 0; i < message.content.length; ++i) - $root.NT.Item.Material.encode(message.content[i], writer.uint32(26).fork()).ldelim(); - if (message.sentBy != null && Object.hasOwnProperty.call(message, "sentBy")) - writer.uint32(34).string(message.sentBy); - if (message.contributedBy != null && Object.hasOwnProperty.call(message, "contributedBy")) - writer.uint32(42).string(message.contributedBy); - if (message.isChest != null && Object.hasOwnProperty.call(message, "isChest")) - writer.uint32(48).bool(message.isChest); - if (message.itemType != null && Object.hasOwnProperty.call(message, "itemType")) - writer.uint32(58).string(message.itemType); - return writer; - }; - - Item.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Item(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.color = $root.NT.Item.Color.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.content && message.content.length)) - message.content = []; - message.content.push($root.NT.Item.Material.decode(reader, reader.uint32())); - break; - case 4: - message.sentBy = reader.string(); - break; - case 5: - message.contributedBy = reader.string(); - break; - case 6: - message.isChest = reader.bool(); - break; - case 7: - message.itemType = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Item.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.color != null && message.hasOwnProperty("color")) { - let error = $root.NT.Item.Color.verify(message.color); - if (error) - return "color." + error; - } - if (message.content != null && message.hasOwnProperty("content")) { - if (!Array.isArray(message.content)) - return "content: array expected"; - for (let i = 0; i < message.content.length; ++i) { - let error = $root.NT.Item.Material.verify(message.content[i]); - if (error) - return "content." + error; - } - } - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - properties._sentBy = 1; - if (!$util.isString(message.sentBy)) - return "sentBy: string expected"; - } - if (message.contributedBy != null && message.hasOwnProperty("contributedBy")) { - properties._contributedBy = 1; - if (!$util.isString(message.contributedBy)) - return "contributedBy: string expected"; - } - if (message.isChest != null && message.hasOwnProperty("isChest")) - if (typeof message.isChest !== "boolean") - return "isChest: boolean expected"; - if (message.itemType != null && message.hasOwnProperty("itemType")) - if (!$util.isString(message.itemType)) - return "itemType: string expected"; - return null; - }; - - Item.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Item) - return object; - let message = new $root.NT.Item(); - if (object.id != null) - message.id = String(object.id); - if (object.color != null) { - if (typeof object.color !== "object") - throw TypeError(".NT.Item.color: object expected"); - message.color = $root.NT.Item.Color.fromObject(object.color); - } - if (object.content) { - if (!Array.isArray(object.content)) - throw TypeError(".NT.Item.content: array expected"); - message.content = []; - for (let i = 0; i < object.content.length; ++i) { - if (typeof object.content[i] !== "object") - throw TypeError(".NT.Item.content: object expected"); - message.content[i] = $root.NT.Item.Material.fromObject(object.content[i]); - } - } - if (object.sentBy != null) - message.sentBy = String(object.sentBy); - if (object.contributedBy != null) - message.contributedBy = String(object.contributedBy); - if (object.isChest != null) - message.isChest = Boolean(object.isChest); - if (object.itemType != null) - message.itemType = String(object.itemType); - return message; - }; - - Item.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.content = []; - if (options.defaults) { - object.id = ""; - object.color = null; - object.isChest = false; - object.itemType = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.color != null && message.hasOwnProperty("color")) - object.color = $root.NT.Item.Color.toObject(message.color, options); - if (message.content && message.content.length) { - object.content = []; - for (let j = 0; j < message.content.length; ++j) - object.content[j] = $root.NT.Item.Material.toObject(message.content[j], options); - } - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - object.sentBy = message.sentBy; - if (options.oneofs) - object._sentBy = "sentBy"; - } - if (message.contributedBy != null && message.hasOwnProperty("contributedBy")) { - object.contributedBy = message.contributedBy; - if (options.oneofs) - object._contributedBy = "contributedBy"; - } - if (message.isChest != null && message.hasOwnProperty("isChest")) - object.isChest = message.isChest; - if (message.itemType != null && message.hasOwnProperty("itemType")) - object.itemType = message.itemType; - return object; - }; - - Item.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - Item.Color = (function() { - - function Color(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Color.prototype.r = 0; - Color.prototype.g = 0; - Color.prototype.b = 0; - - Color.create = function create(properties) { - return new Color(properties); - }; - - Color.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.r != null && Object.hasOwnProperty.call(message, "r")) - writer.uint32(13).float(message.r); - if (message.g != null && Object.hasOwnProperty.call(message, "g")) - writer.uint32(21).float(message.g); - if (message.b != null && Object.hasOwnProperty.call(message, "b")) - writer.uint32(29).float(message.b); - return writer; - }; - - Color.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Item.Color(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.r = reader.float(); - break; - case 2: - message.g = reader.float(); - break; - case 3: - message.b = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Color.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.r != null && message.hasOwnProperty("r")) - if (typeof message.r !== "number") - return "r: number expected"; - if (message.g != null && message.hasOwnProperty("g")) - if (typeof message.g !== "number") - return "g: number expected"; - if (message.b != null && message.hasOwnProperty("b")) - if (typeof message.b !== "number") - return "b: number expected"; - return null; - }; - - Color.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Item.Color) - return object; - let message = new $root.NT.Item.Color(); - if (object.r != null) - message.r = Number(object.r); - if (object.g != null) - message.g = Number(object.g); - if (object.b != null) - message.b = Number(object.b); - return message; - }; - - Color.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.r = 0; - object.g = 0; - object.b = 0; - } - if (message.r != null && message.hasOwnProperty("r")) - object.r = options.json && !isFinite(message.r) ? String(message.r) : message.r; - if (message.g != null && message.hasOwnProperty("g")) - object.g = options.json && !isFinite(message.g) ? String(message.g) : message.g; - if (message.b != null && message.hasOwnProperty("b")) - object.b = options.json && !isFinite(message.b) ? String(message.b) : message.b; - return object; - }; - - Color.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Color; - })(); - - Item.Material = (function() { - - function Material(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Material.prototype.id = 0; - Material.prototype.amount = 0; - - Material.create = function create(properties) { - return new Material(properties); - }; - - Material.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(8).uint32(message.id); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(16).uint32(message.amount); - return writer; - }; - - Material.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.Item.Material(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.uint32(); - break; - case 2: - message.amount = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Material.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isInteger(message.amount)) - return "amount: integer expected"; - return null; - }; - - Material.fromObject = function fromObject(object) { - if (object instanceof $root.NT.Item.Material) - return object; - let message = new $root.NT.Item.Material(); - if (object.id != null) - message.id = object.id >>> 0; - if (object.amount != null) - message.amount = object.amount >>> 0; - return message; - }; - - Material.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = 0; - object.amount = 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - return object; - }; - - Material.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Material; - })(); - - return Item; - })(); - - NT.EntityItem = (function() { - - function EntityItem(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - EntityItem.prototype.id = ""; - EntityItem.prototype.path = ""; - EntityItem.prototype.sprite = ""; - EntityItem.prototype.sentBy = null; - - let $oneOfFields; - - Object.defineProperty(EntityItem.prototype, "_sentBy", { - get: $util.oneOfGetter($oneOfFields = ["sentBy"]), - set: $util.oneOfSetter($oneOfFields) - }); - - EntityItem.create = function create(properties) { - return new EntityItem(properties); - }; - - EntityItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(18).string(message.path); - if (message.sprite != null && Object.hasOwnProperty.call(message, "sprite")) - writer.uint32(26).string(message.sprite); - if (message.sentBy != null && Object.hasOwnProperty.call(message, "sentBy")) - writer.uint32(34).string(message.sentBy); - return writer; - }; - - EntityItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.EntityItem(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - case 3: - message.sprite = reader.string(); - break; - case 4: - message.sentBy = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - EntityItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.sprite != null && message.hasOwnProperty("sprite")) - if (!$util.isString(message.sprite)) - return "sprite: string expected"; - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - properties._sentBy = 1; - if (!$util.isString(message.sentBy)) - return "sentBy: string expected"; - } - return null; - }; - - EntityItem.fromObject = function fromObject(object) { - if (object instanceof $root.NT.EntityItem) - return object; - let message = new $root.NT.EntityItem(); - if (object.id != null) - message.id = String(object.id); - if (object.path != null) - message.path = String(object.path); - if (object.sprite != null) - message.sprite = String(object.sprite); - if (object.sentBy != null) - message.sentBy = String(object.sentBy); - return message; - }; - - EntityItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = ""; - object.path = ""; - object.sprite = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.sprite != null && message.hasOwnProperty("sprite")) - object.sprite = message.sprite; - if (message.sentBy != null && message.hasOwnProperty("sentBy")) { - object.sentBy = message.sentBy; - if (options.oneofs) - object._sentBy = "sentBy"; - } - return object; - }; - - EntityItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EntityItem; - })(); - - NT.LobbyAction = (function() { - - function LobbyAction(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - LobbyAction.prototype.cRoomCreate = null; - LobbyAction.prototype.sRoomCreated = null; - LobbyAction.prototype.sRoomCreateFailed = null; - LobbyAction.prototype.cRoomUpdate = null; - LobbyAction.prototype.sRoomUpdated = null; - LobbyAction.prototype.sRoomUpdateFailed = null; - LobbyAction.prototype.cRoomFlagsUpdate = null; - LobbyAction.prototype.sRoomFlagsUpdated = null; - LobbyAction.prototype.sRoomFlagsUpdateFailed = null; - LobbyAction.prototype.cRoomDelete = null; - LobbyAction.prototype.sRoomDeleted = null; - LobbyAction.prototype.cJoinRoom = null; - LobbyAction.prototype.sJoinRoomSuccess = null; - LobbyAction.prototype.sJoinRoomFailed = null; - LobbyAction.prototype.sUserJoinedRoom = null; - LobbyAction.prototype.cLeaveRoom = null; - LobbyAction.prototype.sUserLeftRoom = null; - LobbyAction.prototype.cKickUser = null; - LobbyAction.prototype.sUserKicked = null; - LobbyAction.prototype.cBanUser = null; - LobbyAction.prototype.sUserBanned = null; - LobbyAction.prototype.cReadyState = null; - LobbyAction.prototype.sUserReadyState = null; - LobbyAction.prototype.cStartRun = null; - LobbyAction.prototype.sHostStart = null; - LobbyAction.prototype.cRequestRoomList = null; - LobbyAction.prototype.sRoomList = null; - LobbyAction.prototype.sDisconnected = null; - LobbyAction.prototype.sRoomAddToList = null; - LobbyAction.prototype.cRunOver = null; - - let $oneOfFields; - - Object.defineProperty(LobbyAction.prototype, "action", { - get: $util.oneOfGetter($oneOfFields = ["cRoomCreate", "sRoomCreated", "sRoomCreateFailed", "cRoomUpdate", "sRoomUpdated", "sRoomUpdateFailed", "cRoomFlagsUpdate", "sRoomFlagsUpdated", "sRoomFlagsUpdateFailed", "cRoomDelete", "sRoomDeleted", "cJoinRoom", "sJoinRoomSuccess", "sJoinRoomFailed", "sUserJoinedRoom", "cLeaveRoom", "sUserLeftRoom", "cKickUser", "sUserKicked", "cBanUser", "sUserBanned", "cReadyState", "sUserReadyState", "cStartRun", "sHostStart", "cRequestRoomList", "sRoomList", "sDisconnected", "sRoomAddToList", "cRunOver"]), - set: $util.oneOfSetter($oneOfFields) - }); - - LobbyAction.create = function create(properties) { - return new LobbyAction(properties); - }; - - LobbyAction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cRoomCreate != null && Object.hasOwnProperty.call(message, "cRoomCreate")) - $root.NT.ClientRoomCreate.encode(message.cRoomCreate, writer.uint32(10).fork()).ldelim(); - if (message.sRoomCreated != null && Object.hasOwnProperty.call(message, "sRoomCreated")) - $root.NT.ServerRoomCreated.encode(message.sRoomCreated, writer.uint32(18).fork()).ldelim(); - if (message.sRoomCreateFailed != null && Object.hasOwnProperty.call(message, "sRoomCreateFailed")) - $root.NT.ServerRoomCreateFailed.encode(message.sRoomCreateFailed, writer.uint32(26).fork()).ldelim(); - if (message.cRoomUpdate != null && Object.hasOwnProperty.call(message, "cRoomUpdate")) - $root.NT.ClientRoomUpdate.encode(message.cRoomUpdate, writer.uint32(34).fork()).ldelim(); - if (message.sRoomUpdated != null && Object.hasOwnProperty.call(message, "sRoomUpdated")) - $root.NT.ServerRoomUpdated.encode(message.sRoomUpdated, writer.uint32(42).fork()).ldelim(); - if (message.sRoomUpdateFailed != null && Object.hasOwnProperty.call(message, "sRoomUpdateFailed")) - $root.NT.ServerRoomUpdateFailed.encode(message.sRoomUpdateFailed, writer.uint32(50).fork()).ldelim(); - if (message.cRoomFlagsUpdate != null && Object.hasOwnProperty.call(message, "cRoomFlagsUpdate")) - $root.NT.ClientRoomFlagsUpdate.encode(message.cRoomFlagsUpdate, writer.uint32(58).fork()).ldelim(); - if (message.sRoomFlagsUpdated != null && Object.hasOwnProperty.call(message, "sRoomFlagsUpdated")) - $root.NT.ServerRoomFlagsUpdated.encode(message.sRoomFlagsUpdated, writer.uint32(66).fork()).ldelim(); - if (message.sRoomFlagsUpdateFailed != null && Object.hasOwnProperty.call(message, "sRoomFlagsUpdateFailed")) - $root.NT.ServerRoomFlagsUpdateFailed.encode(message.sRoomFlagsUpdateFailed, writer.uint32(74).fork()).ldelim(); - if (message.cRoomDelete != null && Object.hasOwnProperty.call(message, "cRoomDelete")) - $root.NT.ClientRoomDelete.encode(message.cRoomDelete, writer.uint32(82).fork()).ldelim(); - if (message.sRoomDeleted != null && Object.hasOwnProperty.call(message, "sRoomDeleted")) - $root.NT.ServerRoomDeleted.encode(message.sRoomDeleted, writer.uint32(90).fork()).ldelim(); - if (message.cJoinRoom != null && Object.hasOwnProperty.call(message, "cJoinRoom")) - $root.NT.ClientJoinRoom.encode(message.cJoinRoom, writer.uint32(98).fork()).ldelim(); - if (message.sJoinRoomSuccess != null && Object.hasOwnProperty.call(message, "sJoinRoomSuccess")) - $root.NT.ServerJoinRoomSuccess.encode(message.sJoinRoomSuccess, writer.uint32(106).fork()).ldelim(); - if (message.sJoinRoomFailed != null && Object.hasOwnProperty.call(message, "sJoinRoomFailed")) - $root.NT.ServerJoinRoomFailed.encode(message.sJoinRoomFailed, writer.uint32(114).fork()).ldelim(); - if (message.sUserJoinedRoom != null && Object.hasOwnProperty.call(message, "sUserJoinedRoom")) - $root.NT.ServerUserJoinedRoom.encode(message.sUserJoinedRoom, writer.uint32(122).fork()).ldelim(); - if (message.cLeaveRoom != null && Object.hasOwnProperty.call(message, "cLeaveRoom")) - $root.NT.ClientLeaveRoom.encode(message.cLeaveRoom, writer.uint32(130).fork()).ldelim(); - if (message.sUserLeftRoom != null && Object.hasOwnProperty.call(message, "sUserLeftRoom")) - $root.NT.ServerUserLeftRoom.encode(message.sUserLeftRoom, writer.uint32(138).fork()).ldelim(); - if (message.cKickUser != null && Object.hasOwnProperty.call(message, "cKickUser")) - $root.NT.ClientKickUser.encode(message.cKickUser, writer.uint32(146).fork()).ldelim(); - if (message.sUserKicked != null && Object.hasOwnProperty.call(message, "sUserKicked")) - $root.NT.ServerUserKicked.encode(message.sUserKicked, writer.uint32(154).fork()).ldelim(); - if (message.cBanUser != null && Object.hasOwnProperty.call(message, "cBanUser")) - $root.NT.ClientBanUser.encode(message.cBanUser, writer.uint32(162).fork()).ldelim(); - if (message.sUserBanned != null && Object.hasOwnProperty.call(message, "sUserBanned")) - $root.NT.ServerUserBanned.encode(message.sUserBanned, writer.uint32(170).fork()).ldelim(); - if (message.cReadyState != null && Object.hasOwnProperty.call(message, "cReadyState")) - $root.NT.ClientReadyState.encode(message.cReadyState, writer.uint32(178).fork()).ldelim(); - if (message.sUserReadyState != null && Object.hasOwnProperty.call(message, "sUserReadyState")) - $root.NT.ServerUserReadyState.encode(message.sUserReadyState, writer.uint32(186).fork()).ldelim(); - if (message.cStartRun != null && Object.hasOwnProperty.call(message, "cStartRun")) - $root.NT.ClientStartRun.encode(message.cStartRun, writer.uint32(194).fork()).ldelim(); - if (message.sHostStart != null && Object.hasOwnProperty.call(message, "sHostStart")) - $root.NT.ServerHostStart.encode(message.sHostStart, writer.uint32(202).fork()).ldelim(); - if (message.cRequestRoomList != null && Object.hasOwnProperty.call(message, "cRequestRoomList")) - $root.NT.ClientRequestRoomList.encode(message.cRequestRoomList, writer.uint32(218).fork()).ldelim(); - if (message.sRoomList != null && Object.hasOwnProperty.call(message, "sRoomList")) - $root.NT.ServerRoomList.encode(message.sRoomList, writer.uint32(226).fork()).ldelim(); - if (message.sDisconnected != null && Object.hasOwnProperty.call(message, "sDisconnected")) - $root.NT.ServerDisconnected.encode(message.sDisconnected, writer.uint32(250).fork()).ldelim(); - if (message.sRoomAddToList != null && Object.hasOwnProperty.call(message, "sRoomAddToList")) - $root.NT.ServerRoomAddToList.encode(message.sRoomAddToList, writer.uint32(258).fork()).ldelim(); - if (message.cRunOver != null && Object.hasOwnProperty.call(message, "cRunOver")) - $root.NT.ClientRunOver.encode(message.cRunOver, writer.uint32(266).fork()).ldelim(); - return writer; - }; - - LobbyAction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.LobbyAction(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cRoomCreate = $root.NT.ClientRoomCreate.decode(reader, reader.uint32()); - break; - case 2: - message.sRoomCreated = $root.NT.ServerRoomCreated.decode(reader, reader.uint32()); - break; - case 3: - message.sRoomCreateFailed = $root.NT.ServerRoomCreateFailed.decode(reader, reader.uint32()); - break; - case 4: - message.cRoomUpdate = $root.NT.ClientRoomUpdate.decode(reader, reader.uint32()); - break; - case 5: - message.sRoomUpdated = $root.NT.ServerRoomUpdated.decode(reader, reader.uint32()); - break; - case 6: - message.sRoomUpdateFailed = $root.NT.ServerRoomUpdateFailed.decode(reader, reader.uint32()); - break; - case 7: - message.cRoomFlagsUpdate = $root.NT.ClientRoomFlagsUpdate.decode(reader, reader.uint32()); - break; - case 8: - message.sRoomFlagsUpdated = $root.NT.ServerRoomFlagsUpdated.decode(reader, reader.uint32()); - break; - case 9: - message.sRoomFlagsUpdateFailed = $root.NT.ServerRoomFlagsUpdateFailed.decode(reader, reader.uint32()); - break; - case 10: - message.cRoomDelete = $root.NT.ClientRoomDelete.decode(reader, reader.uint32()); - break; - case 11: - message.sRoomDeleted = $root.NT.ServerRoomDeleted.decode(reader, reader.uint32()); - break; - case 12: - message.cJoinRoom = $root.NT.ClientJoinRoom.decode(reader, reader.uint32()); - break; - case 13: - message.sJoinRoomSuccess = $root.NT.ServerJoinRoomSuccess.decode(reader, reader.uint32()); - break; - case 14: - message.sJoinRoomFailed = $root.NT.ServerJoinRoomFailed.decode(reader, reader.uint32()); - break; - case 15: - message.sUserJoinedRoom = $root.NT.ServerUserJoinedRoom.decode(reader, reader.uint32()); - break; - case 16: - message.cLeaveRoom = $root.NT.ClientLeaveRoom.decode(reader, reader.uint32()); - break; - case 17: - message.sUserLeftRoom = $root.NT.ServerUserLeftRoom.decode(reader, reader.uint32()); - break; - case 18: - message.cKickUser = $root.NT.ClientKickUser.decode(reader, reader.uint32()); - break; - case 19: - message.sUserKicked = $root.NT.ServerUserKicked.decode(reader, reader.uint32()); - break; - case 20: - message.cBanUser = $root.NT.ClientBanUser.decode(reader, reader.uint32()); - break; - case 21: - message.sUserBanned = $root.NT.ServerUserBanned.decode(reader, reader.uint32()); - break; - case 22: - message.cReadyState = $root.NT.ClientReadyState.decode(reader, reader.uint32()); - break; - case 23: - message.sUserReadyState = $root.NT.ServerUserReadyState.decode(reader, reader.uint32()); - break; - case 24: - message.cStartRun = $root.NT.ClientStartRun.decode(reader, reader.uint32()); - break; - case 25: - message.sHostStart = $root.NT.ServerHostStart.decode(reader, reader.uint32()); - break; - case 27: - message.cRequestRoomList = $root.NT.ClientRequestRoomList.decode(reader, reader.uint32()); - break; - case 28: - message.sRoomList = $root.NT.ServerRoomList.decode(reader, reader.uint32()); - break; - case 31: - message.sDisconnected = $root.NT.ServerDisconnected.decode(reader, reader.uint32()); - break; - case 32: - message.sRoomAddToList = $root.NT.ServerRoomAddToList.decode(reader, reader.uint32()); - break; - case 33: - message.cRunOver = $root.NT.ClientRunOver.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - LobbyAction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.cRoomCreate != null && message.hasOwnProperty("cRoomCreate")) { - properties.action = 1; - { - let error = $root.NT.ClientRoomCreate.verify(message.cRoomCreate); - if (error) - return "cRoomCreate." + error; - } - } - if (message.sRoomCreated != null && message.hasOwnProperty("sRoomCreated")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomCreated.verify(message.sRoomCreated); - if (error) - return "sRoomCreated." + error; - } - } - if (message.sRoomCreateFailed != null && message.hasOwnProperty("sRoomCreateFailed")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomCreateFailed.verify(message.sRoomCreateFailed); - if (error) - return "sRoomCreateFailed." + error; - } - } - if (message.cRoomUpdate != null && message.hasOwnProperty("cRoomUpdate")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientRoomUpdate.verify(message.cRoomUpdate); - if (error) - return "cRoomUpdate." + error; - } - } - if (message.sRoomUpdated != null && message.hasOwnProperty("sRoomUpdated")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomUpdated.verify(message.sRoomUpdated); - if (error) - return "sRoomUpdated." + error; - } - } - if (message.sRoomUpdateFailed != null && message.hasOwnProperty("sRoomUpdateFailed")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomUpdateFailed.verify(message.sRoomUpdateFailed); - if (error) - return "sRoomUpdateFailed." + error; - } - } - if (message.cRoomFlagsUpdate != null && message.hasOwnProperty("cRoomFlagsUpdate")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientRoomFlagsUpdate.verify(message.cRoomFlagsUpdate); - if (error) - return "cRoomFlagsUpdate." + error; - } - } - if (message.sRoomFlagsUpdated != null && message.hasOwnProperty("sRoomFlagsUpdated")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomFlagsUpdated.verify(message.sRoomFlagsUpdated); - if (error) - return "sRoomFlagsUpdated." + error; - } - } - if (message.sRoomFlagsUpdateFailed != null && message.hasOwnProperty("sRoomFlagsUpdateFailed")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomFlagsUpdateFailed.verify(message.sRoomFlagsUpdateFailed); - if (error) - return "sRoomFlagsUpdateFailed." + error; - } - } - if (message.cRoomDelete != null && message.hasOwnProperty("cRoomDelete")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientRoomDelete.verify(message.cRoomDelete); - if (error) - return "cRoomDelete." + error; - } - } - if (message.sRoomDeleted != null && message.hasOwnProperty("sRoomDeleted")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomDeleted.verify(message.sRoomDeleted); - if (error) - return "sRoomDeleted." + error; - } - } - if (message.cJoinRoom != null && message.hasOwnProperty("cJoinRoom")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientJoinRoom.verify(message.cJoinRoom); - if (error) - return "cJoinRoom." + error; - } - } - if (message.sJoinRoomSuccess != null && message.hasOwnProperty("sJoinRoomSuccess")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerJoinRoomSuccess.verify(message.sJoinRoomSuccess); - if (error) - return "sJoinRoomSuccess." + error; - } - } - if (message.sJoinRoomFailed != null && message.hasOwnProperty("sJoinRoomFailed")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerJoinRoomFailed.verify(message.sJoinRoomFailed); - if (error) - return "sJoinRoomFailed." + error; - } - } - if (message.sUserJoinedRoom != null && message.hasOwnProperty("sUserJoinedRoom")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerUserJoinedRoom.verify(message.sUserJoinedRoom); - if (error) - return "sUserJoinedRoom." + error; - } - } - if (message.cLeaveRoom != null && message.hasOwnProperty("cLeaveRoom")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientLeaveRoom.verify(message.cLeaveRoom); - if (error) - return "cLeaveRoom." + error; - } - } - if (message.sUserLeftRoom != null && message.hasOwnProperty("sUserLeftRoom")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerUserLeftRoom.verify(message.sUserLeftRoom); - if (error) - return "sUserLeftRoom." + error; - } - } - if (message.cKickUser != null && message.hasOwnProperty("cKickUser")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientKickUser.verify(message.cKickUser); - if (error) - return "cKickUser." + error; - } - } - if (message.sUserKicked != null && message.hasOwnProperty("sUserKicked")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerUserKicked.verify(message.sUserKicked); - if (error) - return "sUserKicked." + error; - } - } - if (message.cBanUser != null && message.hasOwnProperty("cBanUser")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientBanUser.verify(message.cBanUser); - if (error) - return "cBanUser." + error; - } - } - if (message.sUserBanned != null && message.hasOwnProperty("sUserBanned")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerUserBanned.verify(message.sUserBanned); - if (error) - return "sUserBanned." + error; - } - } - if (message.cReadyState != null && message.hasOwnProperty("cReadyState")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientReadyState.verify(message.cReadyState); - if (error) - return "cReadyState." + error; - } - } - if (message.sUserReadyState != null && message.hasOwnProperty("sUserReadyState")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerUserReadyState.verify(message.sUserReadyState); - if (error) - return "sUserReadyState." + error; - } - } - if (message.cStartRun != null && message.hasOwnProperty("cStartRun")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientStartRun.verify(message.cStartRun); - if (error) - return "cStartRun." + error; - } - } - if (message.sHostStart != null && message.hasOwnProperty("sHostStart")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerHostStart.verify(message.sHostStart); - if (error) - return "sHostStart." + error; - } - } - if (message.cRequestRoomList != null && message.hasOwnProperty("cRequestRoomList")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientRequestRoomList.verify(message.cRequestRoomList); - if (error) - return "cRequestRoomList." + error; - } - } - if (message.sRoomList != null && message.hasOwnProperty("sRoomList")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomList.verify(message.sRoomList); - if (error) - return "sRoomList." + error; - } - } - if (message.sDisconnected != null && message.hasOwnProperty("sDisconnected")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerDisconnected.verify(message.sDisconnected); - if (error) - return "sDisconnected." + error; - } - } - if (message.sRoomAddToList != null && message.hasOwnProperty("sRoomAddToList")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ServerRoomAddToList.verify(message.sRoomAddToList); - if (error) - return "sRoomAddToList." + error; - } - } - if (message.cRunOver != null && message.hasOwnProperty("cRunOver")) { - if (properties.action === 1) - return "action: multiple values"; - properties.action = 1; - { - let error = $root.NT.ClientRunOver.verify(message.cRunOver); - if (error) - return "cRunOver." + error; - } - } - return null; - }; - - LobbyAction.fromObject = function fromObject(object) { - if (object instanceof $root.NT.LobbyAction) - return object; - let message = new $root.NT.LobbyAction(); - if (object.cRoomCreate != null) { - if (typeof object.cRoomCreate !== "object") - throw TypeError(".NT.LobbyAction.cRoomCreate: object expected"); - message.cRoomCreate = $root.NT.ClientRoomCreate.fromObject(object.cRoomCreate); - } - if (object.sRoomCreated != null) { - if (typeof object.sRoomCreated !== "object") - throw TypeError(".NT.LobbyAction.sRoomCreated: object expected"); - message.sRoomCreated = $root.NT.ServerRoomCreated.fromObject(object.sRoomCreated); - } - if (object.sRoomCreateFailed != null) { - if (typeof object.sRoomCreateFailed !== "object") - throw TypeError(".NT.LobbyAction.sRoomCreateFailed: object expected"); - message.sRoomCreateFailed = $root.NT.ServerRoomCreateFailed.fromObject(object.sRoomCreateFailed); - } - if (object.cRoomUpdate != null) { - if (typeof object.cRoomUpdate !== "object") - throw TypeError(".NT.LobbyAction.cRoomUpdate: object expected"); - message.cRoomUpdate = $root.NT.ClientRoomUpdate.fromObject(object.cRoomUpdate); - } - if (object.sRoomUpdated != null) { - if (typeof object.sRoomUpdated !== "object") - throw TypeError(".NT.LobbyAction.sRoomUpdated: object expected"); - message.sRoomUpdated = $root.NT.ServerRoomUpdated.fromObject(object.sRoomUpdated); - } - if (object.sRoomUpdateFailed != null) { - if (typeof object.sRoomUpdateFailed !== "object") - throw TypeError(".NT.LobbyAction.sRoomUpdateFailed: object expected"); - message.sRoomUpdateFailed = $root.NT.ServerRoomUpdateFailed.fromObject(object.sRoomUpdateFailed); - } - if (object.cRoomFlagsUpdate != null) { - if (typeof object.cRoomFlagsUpdate !== "object") - throw TypeError(".NT.LobbyAction.cRoomFlagsUpdate: object expected"); - message.cRoomFlagsUpdate = $root.NT.ClientRoomFlagsUpdate.fromObject(object.cRoomFlagsUpdate); - } - if (object.sRoomFlagsUpdated != null) { - if (typeof object.sRoomFlagsUpdated !== "object") - throw TypeError(".NT.LobbyAction.sRoomFlagsUpdated: object expected"); - message.sRoomFlagsUpdated = $root.NT.ServerRoomFlagsUpdated.fromObject(object.sRoomFlagsUpdated); - } - if (object.sRoomFlagsUpdateFailed != null) { - if (typeof object.sRoomFlagsUpdateFailed !== "object") - throw TypeError(".NT.LobbyAction.sRoomFlagsUpdateFailed: object expected"); - message.sRoomFlagsUpdateFailed = $root.NT.ServerRoomFlagsUpdateFailed.fromObject(object.sRoomFlagsUpdateFailed); - } - if (object.cRoomDelete != null) { - if (typeof object.cRoomDelete !== "object") - throw TypeError(".NT.LobbyAction.cRoomDelete: object expected"); - message.cRoomDelete = $root.NT.ClientRoomDelete.fromObject(object.cRoomDelete); - } - if (object.sRoomDeleted != null) { - if (typeof object.sRoomDeleted !== "object") - throw TypeError(".NT.LobbyAction.sRoomDeleted: object expected"); - message.sRoomDeleted = $root.NT.ServerRoomDeleted.fromObject(object.sRoomDeleted); - } - if (object.cJoinRoom != null) { - if (typeof object.cJoinRoom !== "object") - throw TypeError(".NT.LobbyAction.cJoinRoom: object expected"); - message.cJoinRoom = $root.NT.ClientJoinRoom.fromObject(object.cJoinRoom); - } - if (object.sJoinRoomSuccess != null) { - if (typeof object.sJoinRoomSuccess !== "object") - throw TypeError(".NT.LobbyAction.sJoinRoomSuccess: object expected"); - message.sJoinRoomSuccess = $root.NT.ServerJoinRoomSuccess.fromObject(object.sJoinRoomSuccess); - } - if (object.sJoinRoomFailed != null) { - if (typeof object.sJoinRoomFailed !== "object") - throw TypeError(".NT.LobbyAction.sJoinRoomFailed: object expected"); - message.sJoinRoomFailed = $root.NT.ServerJoinRoomFailed.fromObject(object.sJoinRoomFailed); - } - if (object.sUserJoinedRoom != null) { - if (typeof object.sUserJoinedRoom !== "object") - throw TypeError(".NT.LobbyAction.sUserJoinedRoom: object expected"); - message.sUserJoinedRoom = $root.NT.ServerUserJoinedRoom.fromObject(object.sUserJoinedRoom); - } - if (object.cLeaveRoom != null) { - if (typeof object.cLeaveRoom !== "object") - throw TypeError(".NT.LobbyAction.cLeaveRoom: object expected"); - message.cLeaveRoom = $root.NT.ClientLeaveRoom.fromObject(object.cLeaveRoom); - } - if (object.sUserLeftRoom != null) { - if (typeof object.sUserLeftRoom !== "object") - throw TypeError(".NT.LobbyAction.sUserLeftRoom: object expected"); - message.sUserLeftRoom = $root.NT.ServerUserLeftRoom.fromObject(object.sUserLeftRoom); - } - if (object.cKickUser != null) { - if (typeof object.cKickUser !== "object") - throw TypeError(".NT.LobbyAction.cKickUser: object expected"); - message.cKickUser = $root.NT.ClientKickUser.fromObject(object.cKickUser); - } - if (object.sUserKicked != null) { - if (typeof object.sUserKicked !== "object") - throw TypeError(".NT.LobbyAction.sUserKicked: object expected"); - message.sUserKicked = $root.NT.ServerUserKicked.fromObject(object.sUserKicked); - } - if (object.cBanUser != null) { - if (typeof object.cBanUser !== "object") - throw TypeError(".NT.LobbyAction.cBanUser: object expected"); - message.cBanUser = $root.NT.ClientBanUser.fromObject(object.cBanUser); - } - if (object.sUserBanned != null) { - if (typeof object.sUserBanned !== "object") - throw TypeError(".NT.LobbyAction.sUserBanned: object expected"); - message.sUserBanned = $root.NT.ServerUserBanned.fromObject(object.sUserBanned); - } - if (object.cReadyState != null) { - if (typeof object.cReadyState !== "object") - throw TypeError(".NT.LobbyAction.cReadyState: object expected"); - message.cReadyState = $root.NT.ClientReadyState.fromObject(object.cReadyState); - } - if (object.sUserReadyState != null) { - if (typeof object.sUserReadyState !== "object") - throw TypeError(".NT.LobbyAction.sUserReadyState: object expected"); - message.sUserReadyState = $root.NT.ServerUserReadyState.fromObject(object.sUserReadyState); - } - if (object.cStartRun != null) { - if (typeof object.cStartRun !== "object") - throw TypeError(".NT.LobbyAction.cStartRun: object expected"); - message.cStartRun = $root.NT.ClientStartRun.fromObject(object.cStartRun); - } - if (object.sHostStart != null) { - if (typeof object.sHostStart !== "object") - throw TypeError(".NT.LobbyAction.sHostStart: object expected"); - message.sHostStart = $root.NT.ServerHostStart.fromObject(object.sHostStart); - } - if (object.cRequestRoomList != null) { - if (typeof object.cRequestRoomList !== "object") - throw TypeError(".NT.LobbyAction.cRequestRoomList: object expected"); - message.cRequestRoomList = $root.NT.ClientRequestRoomList.fromObject(object.cRequestRoomList); - } - if (object.sRoomList != null) { - if (typeof object.sRoomList !== "object") - throw TypeError(".NT.LobbyAction.sRoomList: object expected"); - message.sRoomList = $root.NT.ServerRoomList.fromObject(object.sRoomList); - } - if (object.sDisconnected != null) { - if (typeof object.sDisconnected !== "object") - throw TypeError(".NT.LobbyAction.sDisconnected: object expected"); - message.sDisconnected = $root.NT.ServerDisconnected.fromObject(object.sDisconnected); - } - if (object.sRoomAddToList != null) { - if (typeof object.sRoomAddToList !== "object") - throw TypeError(".NT.LobbyAction.sRoomAddToList: object expected"); - message.sRoomAddToList = $root.NT.ServerRoomAddToList.fromObject(object.sRoomAddToList); - } - if (object.cRunOver != null) { - if (typeof object.cRunOver !== "object") - throw TypeError(".NT.LobbyAction.cRunOver: object expected"); - message.cRunOver = $root.NT.ClientRunOver.fromObject(object.cRunOver); - } - return message; - }; - - LobbyAction.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.cRoomCreate != null && message.hasOwnProperty("cRoomCreate")) { - object.cRoomCreate = $root.NT.ClientRoomCreate.toObject(message.cRoomCreate, options); - if (options.oneofs) - object.action = "cRoomCreate"; - } - if (message.sRoomCreated != null && message.hasOwnProperty("sRoomCreated")) { - object.sRoomCreated = $root.NT.ServerRoomCreated.toObject(message.sRoomCreated, options); - if (options.oneofs) - object.action = "sRoomCreated"; - } - if (message.sRoomCreateFailed != null && message.hasOwnProperty("sRoomCreateFailed")) { - object.sRoomCreateFailed = $root.NT.ServerRoomCreateFailed.toObject(message.sRoomCreateFailed, options); - if (options.oneofs) - object.action = "sRoomCreateFailed"; - } - if (message.cRoomUpdate != null && message.hasOwnProperty("cRoomUpdate")) { - object.cRoomUpdate = $root.NT.ClientRoomUpdate.toObject(message.cRoomUpdate, options); - if (options.oneofs) - object.action = "cRoomUpdate"; - } - if (message.sRoomUpdated != null && message.hasOwnProperty("sRoomUpdated")) { - object.sRoomUpdated = $root.NT.ServerRoomUpdated.toObject(message.sRoomUpdated, options); - if (options.oneofs) - object.action = "sRoomUpdated"; - } - if (message.sRoomUpdateFailed != null && message.hasOwnProperty("sRoomUpdateFailed")) { - object.sRoomUpdateFailed = $root.NT.ServerRoomUpdateFailed.toObject(message.sRoomUpdateFailed, options); - if (options.oneofs) - object.action = "sRoomUpdateFailed"; - } - if (message.cRoomFlagsUpdate != null && message.hasOwnProperty("cRoomFlagsUpdate")) { - object.cRoomFlagsUpdate = $root.NT.ClientRoomFlagsUpdate.toObject(message.cRoomFlagsUpdate, options); - if (options.oneofs) - object.action = "cRoomFlagsUpdate"; - } - if (message.sRoomFlagsUpdated != null && message.hasOwnProperty("sRoomFlagsUpdated")) { - object.sRoomFlagsUpdated = $root.NT.ServerRoomFlagsUpdated.toObject(message.sRoomFlagsUpdated, options); - if (options.oneofs) - object.action = "sRoomFlagsUpdated"; - } - if (message.sRoomFlagsUpdateFailed != null && message.hasOwnProperty("sRoomFlagsUpdateFailed")) { - object.sRoomFlagsUpdateFailed = $root.NT.ServerRoomFlagsUpdateFailed.toObject(message.sRoomFlagsUpdateFailed, options); - if (options.oneofs) - object.action = "sRoomFlagsUpdateFailed"; - } - if (message.cRoomDelete != null && message.hasOwnProperty("cRoomDelete")) { - object.cRoomDelete = $root.NT.ClientRoomDelete.toObject(message.cRoomDelete, options); - if (options.oneofs) - object.action = "cRoomDelete"; - } - if (message.sRoomDeleted != null && message.hasOwnProperty("sRoomDeleted")) { - object.sRoomDeleted = $root.NT.ServerRoomDeleted.toObject(message.sRoomDeleted, options); - if (options.oneofs) - object.action = "sRoomDeleted"; - } - if (message.cJoinRoom != null && message.hasOwnProperty("cJoinRoom")) { - object.cJoinRoom = $root.NT.ClientJoinRoom.toObject(message.cJoinRoom, options); - if (options.oneofs) - object.action = "cJoinRoom"; - } - if (message.sJoinRoomSuccess != null && message.hasOwnProperty("sJoinRoomSuccess")) { - object.sJoinRoomSuccess = $root.NT.ServerJoinRoomSuccess.toObject(message.sJoinRoomSuccess, options); - if (options.oneofs) - object.action = "sJoinRoomSuccess"; - } - if (message.sJoinRoomFailed != null && message.hasOwnProperty("sJoinRoomFailed")) { - object.sJoinRoomFailed = $root.NT.ServerJoinRoomFailed.toObject(message.sJoinRoomFailed, options); - if (options.oneofs) - object.action = "sJoinRoomFailed"; - } - if (message.sUserJoinedRoom != null && message.hasOwnProperty("sUserJoinedRoom")) { - object.sUserJoinedRoom = $root.NT.ServerUserJoinedRoom.toObject(message.sUserJoinedRoom, options); - if (options.oneofs) - object.action = "sUserJoinedRoom"; - } - if (message.cLeaveRoom != null && message.hasOwnProperty("cLeaveRoom")) { - object.cLeaveRoom = $root.NT.ClientLeaveRoom.toObject(message.cLeaveRoom, options); - if (options.oneofs) - object.action = "cLeaveRoom"; - } - if (message.sUserLeftRoom != null && message.hasOwnProperty("sUserLeftRoom")) { - object.sUserLeftRoom = $root.NT.ServerUserLeftRoom.toObject(message.sUserLeftRoom, options); - if (options.oneofs) - object.action = "sUserLeftRoom"; - } - if (message.cKickUser != null && message.hasOwnProperty("cKickUser")) { - object.cKickUser = $root.NT.ClientKickUser.toObject(message.cKickUser, options); - if (options.oneofs) - object.action = "cKickUser"; - } - if (message.sUserKicked != null && message.hasOwnProperty("sUserKicked")) { - object.sUserKicked = $root.NT.ServerUserKicked.toObject(message.sUserKicked, options); - if (options.oneofs) - object.action = "sUserKicked"; - } - if (message.cBanUser != null && message.hasOwnProperty("cBanUser")) { - object.cBanUser = $root.NT.ClientBanUser.toObject(message.cBanUser, options); - if (options.oneofs) - object.action = "cBanUser"; - } - if (message.sUserBanned != null && message.hasOwnProperty("sUserBanned")) { - object.sUserBanned = $root.NT.ServerUserBanned.toObject(message.sUserBanned, options); - if (options.oneofs) - object.action = "sUserBanned"; - } - if (message.cReadyState != null && message.hasOwnProperty("cReadyState")) { - object.cReadyState = $root.NT.ClientReadyState.toObject(message.cReadyState, options); - if (options.oneofs) - object.action = "cReadyState"; - } - if (message.sUserReadyState != null && message.hasOwnProperty("sUserReadyState")) { - object.sUserReadyState = $root.NT.ServerUserReadyState.toObject(message.sUserReadyState, options); - if (options.oneofs) - object.action = "sUserReadyState"; - } - if (message.cStartRun != null && message.hasOwnProperty("cStartRun")) { - object.cStartRun = $root.NT.ClientStartRun.toObject(message.cStartRun, options); - if (options.oneofs) - object.action = "cStartRun"; - } - if (message.sHostStart != null && message.hasOwnProperty("sHostStart")) { - object.sHostStart = $root.NT.ServerHostStart.toObject(message.sHostStart, options); - if (options.oneofs) - object.action = "sHostStart"; - } - if (message.cRequestRoomList != null && message.hasOwnProperty("cRequestRoomList")) { - object.cRequestRoomList = $root.NT.ClientRequestRoomList.toObject(message.cRequestRoomList, options); - if (options.oneofs) - object.action = "cRequestRoomList"; - } - if (message.sRoomList != null && message.hasOwnProperty("sRoomList")) { - object.sRoomList = $root.NT.ServerRoomList.toObject(message.sRoomList, options); - if (options.oneofs) - object.action = "sRoomList"; - } - if (message.sDisconnected != null && message.hasOwnProperty("sDisconnected")) { - object.sDisconnected = $root.NT.ServerDisconnected.toObject(message.sDisconnected, options); - if (options.oneofs) - object.action = "sDisconnected"; - } - if (message.sRoomAddToList != null && message.hasOwnProperty("sRoomAddToList")) { - object.sRoomAddToList = $root.NT.ServerRoomAddToList.toObject(message.sRoomAddToList, options); - if (options.oneofs) - object.action = "sRoomAddToList"; - } - if (message.cRunOver != null && message.hasOwnProperty("cRunOver")) { - object.cRunOver = $root.NT.ClientRunOver.toObject(message.cRunOver, options); - if (options.oneofs) - object.action = "cRunOver"; - } - return object; - }; - - LobbyAction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return LobbyAction; - })(); - - NT.ClientRunOver = (function() { - - function ClientRunOver(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRunOver.prototype.idk = null; - - let $oneOfFields; - - Object.defineProperty(ClientRunOver.prototype, "_idk", { - get: $util.oneOfGetter($oneOfFields = ["idk"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientRunOver.create = function create(properties) { - return new ClientRunOver(properties); - }; - - ClientRunOver.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.idk != null && Object.hasOwnProperty.call(message, "idk")) - writer.uint32(8).bool(message.idk); - return writer; - }; - - ClientRunOver.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRunOver(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.idk = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRunOver.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.idk != null && message.hasOwnProperty("idk")) { - properties._idk = 1; - if (typeof message.idk !== "boolean") - return "idk: boolean expected"; - } - return null; - }; - - ClientRunOver.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRunOver) - return object; - let message = new $root.NT.ClientRunOver(); - if (object.idk != null) - message.idk = Boolean(object.idk); - return message; - }; - - ClientRunOver.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.idk != null && message.hasOwnProperty("idk")) { - object.idk = message.idk; - if (options.oneofs) - object._idk = "idk"; - } - return object; - }; - - ClientRunOver.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientRunOver; - })(); - - NT.ServerDisconnected = (function() { - - function ServerDisconnected(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerDisconnected.prototype.reason = ""; - - ServerDisconnected.create = function create(properties) { - return new ServerDisconnected(properties); - }; - - ServerDisconnected.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(10).string(message.reason); - return writer; - }; - - ServerDisconnected.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerDisconnected(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerDisconnected.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - - ServerDisconnected.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerDisconnected) - return object; - let message = new $root.NT.ServerDisconnected(); - if (object.reason != null) - message.reason = String(object.reason); - return message; - }; - - ServerDisconnected.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - return object; - }; - - ServerDisconnected.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerDisconnected; - })(); - - NT.ClientRoomDelete = (function() { - - function ClientRoomDelete(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRoomDelete.prototype.id = ""; - - ClientRoomDelete.create = function create(properties) { - return new ClientRoomDelete(properties); - }; - - ClientRoomDelete.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - return writer; - }; - - ClientRoomDelete.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRoomDelete(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRoomDelete.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - return null; - }; - - ClientRoomDelete.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRoomDelete) - return object; - let message = new $root.NT.ClientRoomDelete(); - if (object.id != null) - message.id = String(object.id); - return message; - }; - - ClientRoomDelete.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - return object; - }; - - ClientRoomDelete.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientRoomDelete; - })(); - - NT.ServerRoomDeleted = (function() { - - function ServerRoomDeleted(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomDeleted.prototype.id = ""; - - ServerRoomDeleted.create = function create(properties) { - return new ServerRoomDeleted(properties); - }; - - ServerRoomDeleted.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - return writer; - }; - - ServerRoomDeleted.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomDeleted(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomDeleted.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - return null; - }; - - ServerRoomDeleted.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomDeleted) - return object; - let message = new $root.NT.ServerRoomDeleted(); - if (object.id != null) - message.id = String(object.id); - return message; - }; - - ServerRoomDeleted.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - return object; - }; - - ServerRoomDeleted.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerRoomDeleted; - })(); - - NT.ClientRoomCreate = (function() { - - function ClientRoomCreate(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRoomCreate.prototype.name = ""; - ClientRoomCreate.prototype.gamemode = 0; - ClientRoomCreate.prototype.maxUsers = 0; - ClientRoomCreate.prototype.password = null; - - let $oneOfFields; - - Object.defineProperty(ClientRoomCreate.prototype, "_password", { - get: $util.oneOfGetter($oneOfFields = ["password"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientRoomCreate.create = function create(properties) { - return new ClientRoomCreate(properties); - }; - - ClientRoomCreate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(10).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(16).uint32(message.gamemode); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(24).uint32(message.maxUsers); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(34).string(message.password); - return writer; - }; - - ClientRoomCreate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRoomCreate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.gamemode = reader.uint32(); - break; - case 3: - message.maxUsers = reader.uint32(); - break; - case 4: - message.password = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRoomCreate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - if (message.password != null && message.hasOwnProperty("password")) { - properties._password = 1; - if (!$util.isString(message.password)) - return "password: string expected"; - } - return null; - }; - - ClientRoomCreate.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRoomCreate) - return object; - let message = new $root.NT.ClientRoomCreate(); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object.password != null) - message.password = String(object.password); - return message; - }; - - ClientRoomCreate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.gamemode = 0; - object.maxUsers = 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - object.gamemode = message.gamemode; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - object.maxUsers = message.maxUsers; - if (message.password != null && message.hasOwnProperty("password")) { - object.password = message.password; - if (options.oneofs) - object._password = "password"; - } - return object; - }; - - ClientRoomCreate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientRoomCreate; - })(); - - NT.ServerRoomCreated = (function() { - - function ServerRoomCreated(properties) { - this.users = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomCreated.prototype.id = ""; - ServerRoomCreated.prototype.name = ""; - ServerRoomCreated.prototype.gamemode = 0; - ServerRoomCreated.prototype.maxUsers = 0; - ServerRoomCreated.prototype.password = null; - ServerRoomCreated.prototype.locked = false; - ServerRoomCreated.prototype.users = $util.emptyArray; - - let $oneOfFields; - - Object.defineProperty(ServerRoomCreated.prototype, "_password", { - get: $util.oneOfGetter($oneOfFields = ["password"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerRoomCreated.create = function create(properties) { - return new ServerRoomCreated(properties); - }; - - ServerRoomCreated.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(24).uint32(message.gamemode); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(32).uint32(message.maxUsers); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(42).string(message.password); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(48).bool(message.locked); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.NT.ServerRoomCreated.User.encode(message.users[i], writer.uint32(58).fork()).ldelim(); - return writer; - }; - - ServerRoomCreated.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomCreated(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.gamemode = reader.uint32(); - break; - case 4: - message.maxUsers = reader.uint32(); - break; - case 5: - message.password = reader.string(); - break; - case 6: - message.locked = reader.bool(); - break; - case 7: - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.NT.ServerRoomCreated.User.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomCreated.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - if (message.password != null && message.hasOwnProperty("password")) { - properties._password = 1; - if (!$util.isString(message.password)) - return "password: string expected"; - } - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; - for (let i = 0; i < message.users.length; ++i) { - let error = $root.NT.ServerRoomCreated.User.verify(message.users[i]); - if (error) - return "users." + error; - } - } - return null; - }; - - ServerRoomCreated.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomCreated) - return object; - let message = new $root.NT.ServerRoomCreated(); - if (object.id != null) - message.id = String(object.id); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object.password != null) - message.password = String(object.password); - if (object.locked != null) - message.locked = Boolean(object.locked); - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".NT.ServerRoomCreated.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".NT.ServerRoomCreated.users: object expected"); - message.users[i] = $root.NT.ServerRoomCreated.User.fromObject(object.users[i]); - } - } - return message; - }; - - ServerRoomCreated.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.users = []; - if (options.defaults) { - object.id = ""; - object.name = ""; - object.gamemode = 0; - object.maxUsers = 0; - object.locked = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - object.gamemode = message.gamemode; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - object.maxUsers = message.maxUsers; - if (message.password != null && message.hasOwnProperty("password")) { - object.password = message.password; - if (options.oneofs) - object._password = "password"; - } - if (message.locked != null && message.hasOwnProperty("locked")) - object.locked = message.locked; - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.NT.ServerRoomCreated.User.toObject(message.users[j], options); - } - return object; - }; - - ServerRoomCreated.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerRoomCreated.User = (function() { - - function User(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - User.prototype.userId = ""; - User.prototype.name = ""; - User.prototype.ready = false; - User.prototype.owner = false; - - User.create = function create(properties) { - return new User(properties); - }; - - User.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - if (message.ready != null && Object.hasOwnProperty.call(message, "ready")) - writer.uint32(24).bool(message.ready); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(32).bool(message.owner); - return writer; - }; - - User.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomCreated.User(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.ready = reader.bool(); - break; - case 4: - message.owner = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - User.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ready != null && message.hasOwnProperty("ready")) - if (typeof message.ready !== "boolean") - return "ready: boolean expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - return null; - }; - - User.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomCreated.User) - return object; - let message = new $root.NT.ServerRoomCreated.User(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.name != null) - message.name = String(object.name); - if (object.ready != null) - message.ready = Boolean(object.ready); - if (object.owner != null) - message.owner = Boolean(object.owner); - return message; - }; - - User.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.name = ""; - object.ready = false; - object.owner = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ready != null && message.hasOwnProperty("ready")) - object.ready = message.ready; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - return object; - }; - - User.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return User; - })(); - - return ServerRoomCreated; - })(); - - NT.ServerRoomCreateFailed = (function() { - - function ServerRoomCreateFailed(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomCreateFailed.prototype.reason = ""; - - ServerRoomCreateFailed.create = function create(properties) { - return new ServerRoomCreateFailed(properties); - }; - - ServerRoomCreateFailed.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(10).string(message.reason); - return writer; - }; - - ServerRoomCreateFailed.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomCreateFailed(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomCreateFailed.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - - ServerRoomCreateFailed.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomCreateFailed) - return object; - let message = new $root.NT.ServerRoomCreateFailed(); - if (object.reason != null) - message.reason = String(object.reason); - return message; - }; - - ServerRoomCreateFailed.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - return object; - }; - - ServerRoomCreateFailed.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerRoomCreateFailed; - })(); - - NT.ClientRoomUpdate = (function() { - - function ClientRoomUpdate(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRoomUpdate.prototype.name = null; - ClientRoomUpdate.prototype.gamemode = null; - ClientRoomUpdate.prototype.maxUsers = null; - ClientRoomUpdate.prototype.password = null; - ClientRoomUpdate.prototype.locked = null; - - let $oneOfFields; - - Object.defineProperty(ClientRoomUpdate.prototype, "_name", { - get: $util.oneOfGetter($oneOfFields = ["name"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientRoomUpdate.prototype, "_gamemode", { - get: $util.oneOfGetter($oneOfFields = ["gamemode"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientRoomUpdate.prototype, "_maxUsers", { - get: $util.oneOfGetter($oneOfFields = ["maxUsers"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientRoomUpdate.prototype, "_password", { - get: $util.oneOfGetter($oneOfFields = ["password"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientRoomUpdate.prototype, "_locked", { - get: $util.oneOfGetter($oneOfFields = ["locked"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientRoomUpdate.create = function create(properties) { - return new ClientRoomUpdate(properties); - }; - - ClientRoomUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(10).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(16).uint32(message.gamemode); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(24).uint32(message.maxUsers); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(34).string(message.password); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(40).bool(message.locked); - return writer; - }; - - ClientRoomUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRoomUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.gamemode = reader.uint32(); - break; - case 3: - message.maxUsers = reader.uint32(); - break; - case 4: - message.password = reader.string(); - break; - case 5: - message.locked = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRoomUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.name != null && message.hasOwnProperty("name")) { - properties._name = 1; - if (!$util.isString(message.name)) - return "name: string expected"; - } - if (message.gamemode != null && message.hasOwnProperty("gamemode")) { - properties._gamemode = 1; - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - } - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) { - properties._maxUsers = 1; - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - } - if (message.password != null && message.hasOwnProperty("password")) { - properties._password = 1; - if (!$util.isString(message.password)) - return "password: string expected"; - } - if (message.locked != null && message.hasOwnProperty("locked")) { - properties._locked = 1; - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - } - return null; - }; - - ClientRoomUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRoomUpdate) - return object; - let message = new $root.NT.ClientRoomUpdate(); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object.password != null) - message.password = String(object.password); - if (object.locked != null) - message.locked = Boolean(object.locked); - return message; - }; - - ClientRoomUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.name != null && message.hasOwnProperty("name")) { - object.name = message.name; - if (options.oneofs) - object._name = "name"; - } - if (message.gamemode != null && message.hasOwnProperty("gamemode")) { - object.gamemode = message.gamemode; - if (options.oneofs) - object._gamemode = "gamemode"; - } - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) { - object.maxUsers = message.maxUsers; - if (options.oneofs) - object._maxUsers = "maxUsers"; - } - if (message.password != null && message.hasOwnProperty("password")) { - object.password = message.password; - if (options.oneofs) - object._password = "password"; - } - if (message.locked != null && message.hasOwnProperty("locked")) { - object.locked = message.locked; - if (options.oneofs) - object._locked = "locked"; - } - return object; - }; - - ClientRoomUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientRoomUpdate; - })(); - - NT.ServerRoomUpdated = (function() { - - function ServerRoomUpdated(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomUpdated.prototype.name = null; - ServerRoomUpdated.prototype.gamemode = null; - ServerRoomUpdated.prototype.maxUsers = null; - ServerRoomUpdated.prototype.password = null; - ServerRoomUpdated.prototype.locked = null; - - let $oneOfFields; - - Object.defineProperty(ServerRoomUpdated.prototype, "_name", { - get: $util.oneOfGetter($oneOfFields = ["name"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerRoomUpdated.prototype, "_gamemode", { - get: $util.oneOfGetter($oneOfFields = ["gamemode"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerRoomUpdated.prototype, "_maxUsers", { - get: $util.oneOfGetter($oneOfFields = ["maxUsers"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerRoomUpdated.prototype, "_password", { - get: $util.oneOfGetter($oneOfFields = ["password"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerRoomUpdated.prototype, "_locked", { - get: $util.oneOfGetter($oneOfFields = ["locked"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerRoomUpdated.create = function create(properties) { - return new ServerRoomUpdated(properties); - }; - - ServerRoomUpdated.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(10).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(16).uint32(message.gamemode); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(24).uint32(message.maxUsers); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(34).string(message.password); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(40).bool(message.locked); - return writer; - }; - - ServerRoomUpdated.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomUpdated(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.gamemode = reader.uint32(); - break; - case 3: - message.maxUsers = reader.uint32(); - break; - case 4: - message.password = reader.string(); - break; - case 5: - message.locked = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomUpdated.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.name != null && message.hasOwnProperty("name")) { - properties._name = 1; - if (!$util.isString(message.name)) - return "name: string expected"; - } - if (message.gamemode != null && message.hasOwnProperty("gamemode")) { - properties._gamemode = 1; - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - } - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) { - properties._maxUsers = 1; - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - } - if (message.password != null && message.hasOwnProperty("password")) { - properties._password = 1; - if (!$util.isString(message.password)) - return "password: string expected"; - } - if (message.locked != null && message.hasOwnProperty("locked")) { - properties._locked = 1; - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - } - return null; - }; - - ServerRoomUpdated.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomUpdated) - return object; - let message = new $root.NT.ServerRoomUpdated(); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object.password != null) - message.password = String(object.password); - if (object.locked != null) - message.locked = Boolean(object.locked); - return message; - }; - - ServerRoomUpdated.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.name != null && message.hasOwnProperty("name")) { - object.name = message.name; - if (options.oneofs) - object._name = "name"; - } - if (message.gamemode != null && message.hasOwnProperty("gamemode")) { - object.gamemode = message.gamemode; - if (options.oneofs) - object._gamemode = "gamemode"; - } - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) { - object.maxUsers = message.maxUsers; - if (options.oneofs) - object._maxUsers = "maxUsers"; - } - if (message.password != null && message.hasOwnProperty("password")) { - object.password = message.password; - if (options.oneofs) - object._password = "password"; - } - if (message.locked != null && message.hasOwnProperty("locked")) { - object.locked = message.locked; - if (options.oneofs) - object._locked = "locked"; - } - return object; - }; - - ServerRoomUpdated.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerRoomUpdated; - })(); - - NT.ServerRoomUpdateFailed = (function() { - - function ServerRoomUpdateFailed(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomUpdateFailed.prototype.reason = ""; - - ServerRoomUpdateFailed.create = function create(properties) { - return new ServerRoomUpdateFailed(properties); - }; - - ServerRoomUpdateFailed.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(10).string(message.reason); - return writer; - }; - - ServerRoomUpdateFailed.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomUpdateFailed(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomUpdateFailed.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - - ServerRoomUpdateFailed.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomUpdateFailed) - return object; - let message = new $root.NT.ServerRoomUpdateFailed(); - if (object.reason != null) - message.reason = String(object.reason); - return message; - }; - - ServerRoomUpdateFailed.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - return object; - }; - - ServerRoomUpdateFailed.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerRoomUpdateFailed; - })(); - - NT.ClientRoomFlagsUpdate = (function() { - - function ClientRoomFlagsUpdate(properties) { - this.flags = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRoomFlagsUpdate.prototype.flags = $util.emptyArray; - - ClientRoomFlagsUpdate.create = function create(properties) { - return new ClientRoomFlagsUpdate(properties); - }; - - ClientRoomFlagsUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flags != null && message.flags.length) - for (let i = 0; i < message.flags.length; ++i) - $root.NT.ClientRoomFlagsUpdate.GameFlag.encode(message.flags[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - ClientRoomFlagsUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRoomFlagsUpdate(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.flags && message.flags.length)) - message.flags = []; - message.flags.push($root.NT.ClientRoomFlagsUpdate.GameFlag.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRoomFlagsUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.flags != null && message.hasOwnProperty("flags")) { - if (!Array.isArray(message.flags)) - return "flags: array expected"; - for (let i = 0; i < message.flags.length; ++i) { - let error = $root.NT.ClientRoomFlagsUpdate.GameFlag.verify(message.flags[i]); - if (error) - return "flags." + error; - } - } - return null; - }; - - ClientRoomFlagsUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRoomFlagsUpdate) - return object; - let message = new $root.NT.ClientRoomFlagsUpdate(); - if (object.flags) { - if (!Array.isArray(object.flags)) - throw TypeError(".NT.ClientRoomFlagsUpdate.flags: array expected"); - message.flags = []; - for (let i = 0; i < object.flags.length; ++i) { - if (typeof object.flags[i] !== "object") - throw TypeError(".NT.ClientRoomFlagsUpdate.flags: object expected"); - message.flags[i] = $root.NT.ClientRoomFlagsUpdate.GameFlag.fromObject(object.flags[i]); - } - } - return message; - }; - - ClientRoomFlagsUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.flags = []; - if (message.flags && message.flags.length) { - object.flags = []; - for (let j = 0; j < message.flags.length; ++j) - object.flags[j] = $root.NT.ClientRoomFlagsUpdate.GameFlag.toObject(message.flags[j], options); - } - return object; - }; - - ClientRoomFlagsUpdate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ClientRoomFlagsUpdate.GameFlag = (function() { - - function GameFlag(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - GameFlag.prototype.flag = ""; - GameFlag.prototype.intVal = null; - GameFlag.prototype.strVal = null; - GameFlag.prototype.floatVal = null; - GameFlag.prototype.boolVal = null; - GameFlag.prototype.uIntVal = null; - - let $oneOfFields; - - Object.defineProperty(GameFlag.prototype, "_intVal", { - get: $util.oneOfGetter($oneOfFields = ["intVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_strVal", { - get: $util.oneOfGetter($oneOfFields = ["strVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_floatVal", { - get: $util.oneOfGetter($oneOfFields = ["floatVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_boolVal", { - get: $util.oneOfGetter($oneOfFields = ["boolVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_uIntVal", { - get: $util.oneOfGetter($oneOfFields = ["uIntVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - GameFlag.create = function create(properties) { - return new GameFlag(properties); - }; - - GameFlag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flag != null && Object.hasOwnProperty.call(message, "flag")) - writer.uint32(10).string(message.flag); - if (message.intVal != null && Object.hasOwnProperty.call(message, "intVal")) - writer.uint32(16).int32(message.intVal); - if (message.strVal != null && Object.hasOwnProperty.call(message, "strVal")) - writer.uint32(26).string(message.strVal); - if (message.floatVal != null && Object.hasOwnProperty.call(message, "floatVal")) - writer.uint32(37).float(message.floatVal); - if (message.boolVal != null && Object.hasOwnProperty.call(message, "boolVal")) - writer.uint32(40).bool(message.boolVal); - if (message.uIntVal != null && Object.hasOwnProperty.call(message, "uIntVal")) - writer.uint32(48).uint32(message.uIntVal); - return writer; - }; - - GameFlag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRoomFlagsUpdate.GameFlag(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.flag = reader.string(); - break; - case 2: - message.intVal = reader.int32(); - break; - case 3: - message.strVal = reader.string(); - break; - case 4: - message.floatVal = reader.float(); - break; - case 5: - message.boolVal = reader.bool(); - break; - case 6: - message.uIntVal = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - GameFlag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.flag != null && message.hasOwnProperty("flag")) - if (!$util.isString(message.flag)) - return "flag: string expected"; - if (message.intVal != null && message.hasOwnProperty("intVal")) { - properties._intVal = 1; - if (!$util.isInteger(message.intVal)) - return "intVal: integer expected"; - } - if (message.strVal != null && message.hasOwnProperty("strVal")) { - properties._strVal = 1; - if (!$util.isString(message.strVal)) - return "strVal: string expected"; - } - if (message.floatVal != null && message.hasOwnProperty("floatVal")) { - properties._floatVal = 1; - if (typeof message.floatVal !== "number") - return "floatVal: number expected"; - } - if (message.boolVal != null && message.hasOwnProperty("boolVal")) { - properties._boolVal = 1; - if (typeof message.boolVal !== "boolean") - return "boolVal: boolean expected"; - } - if (message.uIntVal != null && message.hasOwnProperty("uIntVal")) { - properties._uIntVal = 1; - if (!$util.isInteger(message.uIntVal)) - return "uIntVal: integer expected"; - } - return null; - }; - - GameFlag.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRoomFlagsUpdate.GameFlag) - return object; - let message = new $root.NT.ClientRoomFlagsUpdate.GameFlag(); - if (object.flag != null) - message.flag = String(object.flag); - if (object.intVal != null) - message.intVal = object.intVal | 0; - if (object.strVal != null) - message.strVal = String(object.strVal); - if (object.floatVal != null) - message.floatVal = Number(object.floatVal); - if (object.boolVal != null) - message.boolVal = Boolean(object.boolVal); - if (object.uIntVal != null) - message.uIntVal = object.uIntVal >>> 0; - return message; - }; - - GameFlag.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.flag = ""; - if (message.flag != null && message.hasOwnProperty("flag")) - object.flag = message.flag; - if (message.intVal != null && message.hasOwnProperty("intVal")) { - object.intVal = message.intVal; - if (options.oneofs) - object._intVal = "intVal"; - } - if (message.strVal != null && message.hasOwnProperty("strVal")) { - object.strVal = message.strVal; - if (options.oneofs) - object._strVal = "strVal"; - } - if (message.floatVal != null && message.hasOwnProperty("floatVal")) { - object.floatVal = options.json && !isFinite(message.floatVal) ? String(message.floatVal) : message.floatVal; - if (options.oneofs) - object._floatVal = "floatVal"; - } - if (message.boolVal != null && message.hasOwnProperty("boolVal")) { - object.boolVal = message.boolVal; - if (options.oneofs) - object._boolVal = "boolVal"; - } - if (message.uIntVal != null && message.hasOwnProperty("uIntVal")) { - object.uIntVal = message.uIntVal; - if (options.oneofs) - object._uIntVal = "uIntVal"; - } - return object; - }; - - GameFlag.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GameFlag; - })(); - - return ClientRoomFlagsUpdate; - })(); - - NT.ServerRoomFlagsUpdated = (function() { - - function ServerRoomFlagsUpdated(properties) { - this.flags = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomFlagsUpdated.prototype.flags = $util.emptyArray; - - ServerRoomFlagsUpdated.create = function create(properties) { - return new ServerRoomFlagsUpdated(properties); - }; - - ServerRoomFlagsUpdated.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flags != null && message.flags.length) - for (let i = 0; i < message.flags.length; ++i) - $root.NT.ServerRoomFlagsUpdated.GameFlag.encode(message.flags[i], writer.uint32(10).fork()).ldelim(); - return writer; - }; - - ServerRoomFlagsUpdated.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomFlagsUpdated(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.flags && message.flags.length)) - message.flags = []; - message.flags.push($root.NT.ServerRoomFlagsUpdated.GameFlag.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomFlagsUpdated.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.flags != null && message.hasOwnProperty("flags")) { - if (!Array.isArray(message.flags)) - return "flags: array expected"; - for (let i = 0; i < message.flags.length; ++i) { - let error = $root.NT.ServerRoomFlagsUpdated.GameFlag.verify(message.flags[i]); - if (error) - return "flags." + error; - } - } - return null; - }; - - ServerRoomFlagsUpdated.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomFlagsUpdated) - return object; - let message = new $root.NT.ServerRoomFlagsUpdated(); - if (object.flags) { - if (!Array.isArray(object.flags)) - throw TypeError(".NT.ServerRoomFlagsUpdated.flags: array expected"); - message.flags = []; - for (let i = 0; i < object.flags.length; ++i) { - if (typeof object.flags[i] !== "object") - throw TypeError(".NT.ServerRoomFlagsUpdated.flags: object expected"); - message.flags[i] = $root.NT.ServerRoomFlagsUpdated.GameFlag.fromObject(object.flags[i]); - } - } - return message; - }; - - ServerRoomFlagsUpdated.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.flags = []; - if (message.flags && message.flags.length) { - object.flags = []; - for (let j = 0; j < message.flags.length; ++j) - object.flags[j] = $root.NT.ServerRoomFlagsUpdated.GameFlag.toObject(message.flags[j], options); - } - return object; - }; - - ServerRoomFlagsUpdated.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerRoomFlagsUpdated.GameFlag = (function() { - - function GameFlag(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - GameFlag.prototype.flag = ""; - GameFlag.prototype.intVal = null; - GameFlag.prototype.strVal = null; - GameFlag.prototype.floatVal = null; - GameFlag.prototype.boolVal = null; - GameFlag.prototype.uIntVal = null; - - let $oneOfFields; - - Object.defineProperty(GameFlag.prototype, "_intVal", { - get: $util.oneOfGetter($oneOfFields = ["intVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_strVal", { - get: $util.oneOfGetter($oneOfFields = ["strVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_floatVal", { - get: $util.oneOfGetter($oneOfFields = ["floatVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_boolVal", { - get: $util.oneOfGetter($oneOfFields = ["boolVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(GameFlag.prototype, "_uIntVal", { - get: $util.oneOfGetter($oneOfFields = ["uIntVal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - GameFlag.create = function create(properties) { - return new GameFlag(properties); - }; - - GameFlag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flag != null && Object.hasOwnProperty.call(message, "flag")) - writer.uint32(10).string(message.flag); - if (message.intVal != null && Object.hasOwnProperty.call(message, "intVal")) - writer.uint32(16).int32(message.intVal); - if (message.strVal != null && Object.hasOwnProperty.call(message, "strVal")) - writer.uint32(26).string(message.strVal); - if (message.floatVal != null && Object.hasOwnProperty.call(message, "floatVal")) - writer.uint32(37).float(message.floatVal); - if (message.boolVal != null && Object.hasOwnProperty.call(message, "boolVal")) - writer.uint32(40).bool(message.boolVal); - if (message.uIntVal != null && Object.hasOwnProperty.call(message, "uIntVal")) - writer.uint32(48).uint32(message.uIntVal); - return writer; - }; - - GameFlag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomFlagsUpdated.GameFlag(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.flag = reader.string(); - break; - case 2: - message.intVal = reader.int32(); - break; - case 3: - message.strVal = reader.string(); - break; - case 4: - message.floatVal = reader.float(); - break; - case 5: - message.boolVal = reader.bool(); - break; - case 6: - message.uIntVal = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - GameFlag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.flag != null && message.hasOwnProperty("flag")) - if (!$util.isString(message.flag)) - return "flag: string expected"; - if (message.intVal != null && message.hasOwnProperty("intVal")) { - properties._intVal = 1; - if (!$util.isInteger(message.intVal)) - return "intVal: integer expected"; - } - if (message.strVal != null && message.hasOwnProperty("strVal")) { - properties._strVal = 1; - if (!$util.isString(message.strVal)) - return "strVal: string expected"; - } - if (message.floatVal != null && message.hasOwnProperty("floatVal")) { - properties._floatVal = 1; - if (typeof message.floatVal !== "number") - return "floatVal: number expected"; - } - if (message.boolVal != null && message.hasOwnProperty("boolVal")) { - properties._boolVal = 1; - if (typeof message.boolVal !== "boolean") - return "boolVal: boolean expected"; - } - if (message.uIntVal != null && message.hasOwnProperty("uIntVal")) { - properties._uIntVal = 1; - if (!$util.isInteger(message.uIntVal)) - return "uIntVal: integer expected"; - } - return null; - }; - - GameFlag.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomFlagsUpdated.GameFlag) - return object; - let message = new $root.NT.ServerRoomFlagsUpdated.GameFlag(); - if (object.flag != null) - message.flag = String(object.flag); - if (object.intVal != null) - message.intVal = object.intVal | 0; - if (object.strVal != null) - message.strVal = String(object.strVal); - if (object.floatVal != null) - message.floatVal = Number(object.floatVal); - if (object.boolVal != null) - message.boolVal = Boolean(object.boolVal); - if (object.uIntVal != null) - message.uIntVal = object.uIntVal >>> 0; - return message; - }; - - GameFlag.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.flag = ""; - if (message.flag != null && message.hasOwnProperty("flag")) - object.flag = message.flag; - if (message.intVal != null && message.hasOwnProperty("intVal")) { - object.intVal = message.intVal; - if (options.oneofs) - object._intVal = "intVal"; - } - if (message.strVal != null && message.hasOwnProperty("strVal")) { - object.strVal = message.strVal; - if (options.oneofs) - object._strVal = "strVal"; - } - if (message.floatVal != null && message.hasOwnProperty("floatVal")) { - object.floatVal = options.json && !isFinite(message.floatVal) ? String(message.floatVal) : message.floatVal; - if (options.oneofs) - object._floatVal = "floatVal"; - } - if (message.boolVal != null && message.hasOwnProperty("boolVal")) { - object.boolVal = message.boolVal; - if (options.oneofs) - object._boolVal = "boolVal"; - } - if (message.uIntVal != null && message.hasOwnProperty("uIntVal")) { - object.uIntVal = message.uIntVal; - if (options.oneofs) - object._uIntVal = "uIntVal"; - } - return object; - }; - - GameFlag.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GameFlag; - })(); - - return ServerRoomFlagsUpdated; - })(); - - NT.ServerRoomFlagsUpdateFailed = (function() { - - function ServerRoomFlagsUpdateFailed(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomFlagsUpdateFailed.prototype.reason = ""; - - ServerRoomFlagsUpdateFailed.create = function create(properties) { - return new ServerRoomFlagsUpdateFailed(properties); - }; - - ServerRoomFlagsUpdateFailed.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(10).string(message.reason); - return writer; - }; - - ServerRoomFlagsUpdateFailed.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomFlagsUpdateFailed(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomFlagsUpdateFailed.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - - ServerRoomFlagsUpdateFailed.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomFlagsUpdateFailed) - return object; - let message = new $root.NT.ServerRoomFlagsUpdateFailed(); - if (object.reason != null) - message.reason = String(object.reason); - return message; - }; - - ServerRoomFlagsUpdateFailed.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - return object; - }; - - ServerRoomFlagsUpdateFailed.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerRoomFlagsUpdateFailed; - })(); - - NT.ClientJoinRoom = (function() { - - function ClientJoinRoom(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientJoinRoom.prototype.id = ""; - ClientJoinRoom.prototype.password = null; - - let $oneOfFields; - - Object.defineProperty(ClientJoinRoom.prototype, "_password", { - get: $util.oneOfGetter($oneOfFields = ["password"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientJoinRoom.create = function create(properties) { - return new ClientJoinRoom(properties); - }; - - ClientJoinRoom.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(18).string(message.password); - return writer; - }; - - ClientJoinRoom.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientJoinRoom(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.password = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientJoinRoom.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.password != null && message.hasOwnProperty("password")) { - properties._password = 1; - if (!$util.isString(message.password)) - return "password: string expected"; - } - return null; - }; - - ClientJoinRoom.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientJoinRoom) - return object; - let message = new $root.NT.ClientJoinRoom(); - if (object.id != null) - message.id = String(object.id); - if (object.password != null) - message.password = String(object.password); - return message; - }; - - ClientJoinRoom.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.password != null && message.hasOwnProperty("password")) { - object.password = message.password; - if (options.oneofs) - object._password = "password"; - } - return object; - }; - - ClientJoinRoom.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientJoinRoom; - })(); - - NT.ServerJoinRoomSuccess = (function() { - - function ServerJoinRoomSuccess(properties) { - this.users = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerJoinRoomSuccess.prototype.id = ""; - ServerJoinRoomSuccess.prototype.name = ""; - ServerJoinRoomSuccess.prototype.gamemode = 0; - ServerJoinRoomSuccess.prototype.maxUsers = 0; - ServerJoinRoomSuccess.prototype.password = null; - ServerJoinRoomSuccess.prototype.locked = false; - ServerJoinRoomSuccess.prototype.users = $util.emptyArray; - - let $oneOfFields; - - Object.defineProperty(ServerJoinRoomSuccess.prototype, "_password", { - get: $util.oneOfGetter($oneOfFields = ["password"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerJoinRoomSuccess.create = function create(properties) { - return new ServerJoinRoomSuccess(properties); - }; - - ServerJoinRoomSuccess.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(24).uint32(message.gamemode); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(32).uint32(message.maxUsers); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(42).string(message.password); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(48).bool(message.locked); - if (message.users != null && message.users.length) - for (let i = 0; i < message.users.length; ++i) - $root.NT.ServerJoinRoomSuccess.User.encode(message.users[i], writer.uint32(58).fork()).ldelim(); - return writer; - }; - - ServerJoinRoomSuccess.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerJoinRoomSuccess(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.gamemode = reader.uint32(); - break; - case 4: - message.maxUsers = reader.uint32(); - break; - case 5: - message.password = reader.string(); - break; - case 6: - message.locked = reader.bool(); - break; - case 7: - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.NT.ServerJoinRoomSuccess.User.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerJoinRoomSuccess.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - if (message.password != null && message.hasOwnProperty("password")) { - properties._password = 1; - if (!$util.isString(message.password)) - return "password: string expected"; - } - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; - for (let i = 0; i < message.users.length; ++i) { - let error = $root.NT.ServerJoinRoomSuccess.User.verify(message.users[i]); - if (error) - return "users." + error; - } - } - return null; - }; - - ServerJoinRoomSuccess.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerJoinRoomSuccess) - return object; - let message = new $root.NT.ServerJoinRoomSuccess(); - if (object.id != null) - message.id = String(object.id); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object.password != null) - message.password = String(object.password); - if (object.locked != null) - message.locked = Boolean(object.locked); - if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".NT.ServerJoinRoomSuccess.users: array expected"); - message.users = []; - for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".NT.ServerJoinRoomSuccess.users: object expected"); - message.users[i] = $root.NT.ServerJoinRoomSuccess.User.fromObject(object.users[i]); - } - } - return message; - }; - - ServerJoinRoomSuccess.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.users = []; - if (options.defaults) { - object.id = ""; - object.name = ""; - object.gamemode = 0; - object.maxUsers = 0; - object.locked = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - object.gamemode = message.gamemode; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - object.maxUsers = message.maxUsers; - if (message.password != null && message.hasOwnProperty("password")) { - object.password = message.password; - if (options.oneofs) - object._password = "password"; - } - if (message.locked != null && message.hasOwnProperty("locked")) - object.locked = message.locked; - if (message.users && message.users.length) { - object.users = []; - for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.NT.ServerJoinRoomSuccess.User.toObject(message.users[j], options); - } - return object; - }; - - ServerJoinRoomSuccess.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerJoinRoomSuccess.User = (function() { - - function User(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - User.prototype.userId = ""; - User.prototype.name = ""; - User.prototype.ready = false; - User.prototype.owner = false; - - User.create = function create(properties) { - return new User(properties); - }; - - User.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - if (message.ready != null && Object.hasOwnProperty.call(message, "ready")) - writer.uint32(24).bool(message.ready); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(32).bool(message.owner); - return writer; - }; - - User.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerJoinRoomSuccess.User(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.ready = reader.bool(); - break; - case 4: - message.owner = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - User.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ready != null && message.hasOwnProperty("ready")) - if (typeof message.ready !== "boolean") - return "ready: boolean expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - return null; - }; - - User.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerJoinRoomSuccess.User) - return object; - let message = new $root.NT.ServerJoinRoomSuccess.User(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.name != null) - message.name = String(object.name); - if (object.ready != null) - message.ready = Boolean(object.ready); - if (object.owner != null) - message.owner = Boolean(object.owner); - return message; - }; - - User.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.name = ""; - object.ready = false; - object.owner = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ready != null && message.hasOwnProperty("ready")) - object.ready = message.ready; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - return object; - }; - - User.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return User; - })(); - - return ServerJoinRoomSuccess; - })(); - - NT.ServerJoinRoomFailed = (function() { - - function ServerJoinRoomFailed(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerJoinRoomFailed.prototype.reason = ""; - - ServerJoinRoomFailed.create = function create(properties) { - return new ServerJoinRoomFailed(properties); - }; - - ServerJoinRoomFailed.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(10).string(message.reason); - return writer; - }; - - ServerJoinRoomFailed.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerJoinRoomFailed(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerJoinRoomFailed.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - return null; - }; - - ServerJoinRoomFailed.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerJoinRoomFailed) - return object; - let message = new $root.NT.ServerJoinRoomFailed(); - if (object.reason != null) - message.reason = String(object.reason); - return message; - }; - - ServerJoinRoomFailed.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - return object; - }; - - ServerJoinRoomFailed.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerJoinRoomFailed; - })(); - - NT.ServerUserJoinedRoom = (function() { - - function ServerUserJoinedRoom(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerUserJoinedRoom.prototype.userId = ""; - ServerUserJoinedRoom.prototype.name = ""; - - ServerUserJoinedRoom.create = function create(properties) { - return new ServerUserJoinedRoom(properties); - }; - - ServerUserJoinedRoom.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - return writer; - }; - - ServerUserJoinedRoom.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerUserJoinedRoom(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerUserJoinedRoom.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - ServerUserJoinedRoom.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerUserJoinedRoom) - return object; - let message = new $root.NT.ServerUserJoinedRoom(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - ServerUserJoinedRoom.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.userId = ""; - object.name = ""; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - ServerUserJoinedRoom.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerUserJoinedRoom; - })(); - - NT.ClientLeaveRoom = (function() { - - function ClientLeaveRoom(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientLeaveRoom.prototype.userId = ""; - - ClientLeaveRoom.create = function create(properties) { - return new ClientLeaveRoom(properties); - }; - - ClientLeaveRoom.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ClientLeaveRoom.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientLeaveRoom(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientLeaveRoom.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ClientLeaveRoom.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientLeaveRoom) - return object; - let message = new $root.NT.ClientLeaveRoom(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ClientLeaveRoom.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ClientLeaveRoom.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientLeaveRoom; - })(); - - NT.ServerUserLeftRoom = (function() { - - function ServerUserLeftRoom(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerUserLeftRoom.prototype.userId = ""; - - ServerUserLeftRoom.create = function create(properties) { - return new ServerUserLeftRoom(properties); - }; - - ServerUserLeftRoom.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ServerUserLeftRoom.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerUserLeftRoom(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerUserLeftRoom.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ServerUserLeftRoom.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerUserLeftRoom) - return object; - let message = new $root.NT.ServerUserLeftRoom(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ServerUserLeftRoom.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ServerUserLeftRoom.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerUserLeftRoom; - })(); - - NT.ClientKickUser = (function() { - - function ClientKickUser(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientKickUser.prototype.userId = ""; - - ClientKickUser.create = function create(properties) { - return new ClientKickUser(properties); - }; - - ClientKickUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ClientKickUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientKickUser(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientKickUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ClientKickUser.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientKickUser) - return object; - let message = new $root.NT.ClientKickUser(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ClientKickUser.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ClientKickUser.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientKickUser; - })(); - - NT.ServerUserKicked = (function() { - - function ServerUserKicked(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerUserKicked.prototype.userId = ""; - - ServerUserKicked.create = function create(properties) { - return new ServerUserKicked(properties); - }; - - ServerUserKicked.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ServerUserKicked.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerUserKicked(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerUserKicked.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ServerUserKicked.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerUserKicked) - return object; - let message = new $root.NT.ServerUserKicked(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ServerUserKicked.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ServerUserKicked.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerUserKicked; - })(); - - NT.ClientBanUser = (function() { - - function ClientBanUser(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientBanUser.prototype.userId = ""; - - ClientBanUser.create = function create(properties) { - return new ClientBanUser(properties); - }; - - ClientBanUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ClientBanUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientBanUser(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientBanUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ClientBanUser.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientBanUser) - return object; - let message = new $root.NT.ClientBanUser(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ClientBanUser.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ClientBanUser.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientBanUser; - })(); - - NT.ServerUserBanned = (function() { - - function ServerUserBanned(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerUserBanned.prototype.userId = ""; - - ServerUserBanned.create = function create(properties) { - return new ServerUserBanned(properties); - }; - - ServerUserBanned.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - return writer; - }; - - ServerUserBanned.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerUserBanned(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerUserBanned.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - return null; - }; - - ServerUserBanned.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerUserBanned) - return object; - let message = new $root.NT.ServerUserBanned(); - if (object.userId != null) - message.userId = String(object.userId); - return message; - }; - - ServerUserBanned.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.userId = ""; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - return object; - }; - - ServerUserBanned.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerUserBanned; - })(); - - NT.ClientReadyState = (function() { - - function ClientReadyState(properties) { - this.mods = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientReadyState.prototype.ready = false; - ClientReadyState.prototype.seed = null; - ClientReadyState.prototype.mods = $util.emptyArray; - ClientReadyState.prototype.version = null; - ClientReadyState.prototype.beta = null; - - let $oneOfFields; - - Object.defineProperty(ClientReadyState.prototype, "_seed", { - get: $util.oneOfGetter($oneOfFields = ["seed"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientReadyState.prototype, "_version", { - get: $util.oneOfGetter($oneOfFields = ["version"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ClientReadyState.prototype, "_beta", { - get: $util.oneOfGetter($oneOfFields = ["beta"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ClientReadyState.create = function create(properties) { - return new ClientReadyState(properties); - }; - - ClientReadyState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ready != null && Object.hasOwnProperty.call(message, "ready")) - writer.uint32(8).bool(message.ready); - if (message.seed != null && Object.hasOwnProperty.call(message, "seed")) - writer.uint32(18).string(message.seed); - if (message.mods != null && message.mods.length) - for (let i = 0; i < message.mods.length; ++i) - writer.uint32(26).string(message.mods[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(34).string(message.version); - if (message.beta != null && Object.hasOwnProperty.call(message, "beta")) - writer.uint32(40).bool(message.beta); - return writer; - }; - - ClientReadyState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientReadyState(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ready = reader.bool(); - break; - case 2: - message.seed = reader.string(); - break; - case 3: - if (!(message.mods && message.mods.length)) - message.mods = []; - message.mods.push(reader.string()); - break; - case 4: - message.version = reader.string(); - break; - case 5: - message.beta = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientReadyState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.ready != null && message.hasOwnProperty("ready")) - if (typeof message.ready !== "boolean") - return "ready: boolean expected"; - if (message.seed != null && message.hasOwnProperty("seed")) { - properties._seed = 1; - if (!$util.isString(message.seed)) - return "seed: string expected"; - } - if (message.mods != null && message.hasOwnProperty("mods")) { - if (!Array.isArray(message.mods)) - return "mods: array expected"; - for (let i = 0; i < message.mods.length; ++i) - if (!$util.isString(message.mods[i])) - return "mods: string[] expected"; - } - if (message.version != null && message.hasOwnProperty("version")) { - properties._version = 1; - if (!$util.isString(message.version)) - return "version: string expected"; - } - if (message.beta != null && message.hasOwnProperty("beta")) { - properties._beta = 1; - if (typeof message.beta !== "boolean") - return "beta: boolean expected"; - } - return null; - }; - - ClientReadyState.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientReadyState) - return object; - let message = new $root.NT.ClientReadyState(); - if (object.ready != null) - message.ready = Boolean(object.ready); - if (object.seed != null) - message.seed = String(object.seed); - if (object.mods) { - if (!Array.isArray(object.mods)) - throw TypeError(".NT.ClientReadyState.mods: array expected"); - message.mods = []; - for (let i = 0; i < object.mods.length; ++i) - message.mods[i] = String(object.mods[i]); - } - if (object.version != null) - message.version = String(object.version); - if (object.beta != null) - message.beta = Boolean(object.beta); - return message; - }; - - ClientReadyState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.mods = []; - if (options.defaults) - object.ready = false; - if (message.ready != null && message.hasOwnProperty("ready")) - object.ready = message.ready; - if (message.seed != null && message.hasOwnProperty("seed")) { - object.seed = message.seed; - if (options.oneofs) - object._seed = "seed"; - } - if (message.mods && message.mods.length) { - object.mods = []; - for (let j = 0; j < message.mods.length; ++j) - object.mods[j] = message.mods[j]; - } - if (message.version != null && message.hasOwnProperty("version")) { - object.version = message.version; - if (options.oneofs) - object._version = "version"; - } - if (message.beta != null && message.hasOwnProperty("beta")) { - object.beta = message.beta; - if (options.oneofs) - object._beta = "beta"; - } - return object; - }; - - ClientReadyState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientReadyState; - })(); - - NT.ServerUserReadyState = (function() { - - function ServerUserReadyState(properties) { - this.mods = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerUserReadyState.prototype.userId = ""; - ServerUserReadyState.prototype.ready = false; - ServerUserReadyState.prototype.seed = null; - ServerUserReadyState.prototype.mods = $util.emptyArray; - ServerUserReadyState.prototype.version = null; - ServerUserReadyState.prototype.beta = null; - - let $oneOfFields; - - Object.defineProperty(ServerUserReadyState.prototype, "_seed", { - get: $util.oneOfGetter($oneOfFields = ["seed"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerUserReadyState.prototype, "_version", { - get: $util.oneOfGetter($oneOfFields = ["version"]), - set: $util.oneOfSetter($oneOfFields) - }); - - Object.defineProperty(ServerUserReadyState.prototype, "_beta", { - get: $util.oneOfGetter($oneOfFields = ["beta"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerUserReadyState.create = function create(properties) { - return new ServerUserReadyState(properties); - }; - - ServerUserReadyState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(10).string(message.userId); - if (message.ready != null && Object.hasOwnProperty.call(message, "ready")) - writer.uint32(16).bool(message.ready); - if (message.seed != null && Object.hasOwnProperty.call(message, "seed")) - writer.uint32(26).string(message.seed); - if (message.mods != null && message.mods.length) - for (let i = 0; i < message.mods.length; ++i) - writer.uint32(34).string(message.mods[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(42).string(message.version); - if (message.beta != null && Object.hasOwnProperty.call(message, "beta")) - writer.uint32(48).bool(message.beta); - return writer; - }; - - ServerUserReadyState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerUserReadyState(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.userId = reader.string(); - break; - case 2: - message.ready = reader.bool(); - break; - case 3: - message.seed = reader.string(); - break; - case 4: - if (!(message.mods && message.mods.length)) - message.mods = []; - message.mods.push(reader.string()); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.beta = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerUserReadyState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isString(message.userId)) - return "userId: string expected"; - if (message.ready != null && message.hasOwnProperty("ready")) - if (typeof message.ready !== "boolean") - return "ready: boolean expected"; - if (message.seed != null && message.hasOwnProperty("seed")) { - properties._seed = 1; - if (!$util.isString(message.seed)) - return "seed: string expected"; - } - if (message.mods != null && message.hasOwnProperty("mods")) { - if (!Array.isArray(message.mods)) - return "mods: array expected"; - for (let i = 0; i < message.mods.length; ++i) - if (!$util.isString(message.mods[i])) - return "mods: string[] expected"; - } - if (message.version != null && message.hasOwnProperty("version")) { - properties._version = 1; - if (!$util.isString(message.version)) - return "version: string expected"; - } - if (message.beta != null && message.hasOwnProperty("beta")) { - properties._beta = 1; - if (typeof message.beta !== "boolean") - return "beta: boolean expected"; - } - return null; - }; - - ServerUserReadyState.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerUserReadyState) - return object; - let message = new $root.NT.ServerUserReadyState(); - if (object.userId != null) - message.userId = String(object.userId); - if (object.ready != null) - message.ready = Boolean(object.ready); - if (object.seed != null) - message.seed = String(object.seed); - if (object.mods) { - if (!Array.isArray(object.mods)) - throw TypeError(".NT.ServerUserReadyState.mods: array expected"); - message.mods = []; - for (let i = 0; i < object.mods.length; ++i) - message.mods[i] = String(object.mods[i]); - } - if (object.version != null) - message.version = String(object.version); - if (object.beta != null) - message.beta = Boolean(object.beta); - return message; - }; - - ServerUserReadyState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.mods = []; - if (options.defaults) { - object.userId = ""; - object.ready = false; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.ready != null && message.hasOwnProperty("ready")) - object.ready = message.ready; - if (message.seed != null && message.hasOwnProperty("seed")) { - object.seed = message.seed; - if (options.oneofs) - object._seed = "seed"; - } - if (message.mods && message.mods.length) { - object.mods = []; - for (let j = 0; j < message.mods.length; ++j) - object.mods[j] = message.mods[j]; - } - if (message.version != null && message.hasOwnProperty("version")) { - object.version = message.version; - if (options.oneofs) - object._version = "version"; - } - if (message.beta != null && message.hasOwnProperty("beta")) { - object.beta = message.beta; - if (options.oneofs) - object._beta = "beta"; - } - return object; - }; - - ServerUserReadyState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerUserReadyState; - })(); - - NT.ClientStartRun = (function() { - - function ClientStartRun(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientStartRun.prototype.forced = false; - - ClientStartRun.create = function create(properties) { - return new ClientStartRun(properties); - }; - - ClientStartRun.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.forced != null && Object.hasOwnProperty.call(message, "forced")) - writer.uint32(8).bool(message.forced); - return writer; - }; - - ClientStartRun.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientStartRun(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.forced = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientStartRun.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.forced != null && message.hasOwnProperty("forced")) - if (typeof message.forced !== "boolean") - return "forced: boolean expected"; - return null; - }; - - ClientStartRun.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientStartRun) - return object; - let message = new $root.NT.ClientStartRun(); - if (object.forced != null) - message.forced = Boolean(object.forced); - return message; - }; - - ClientStartRun.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.forced = false; - if (message.forced != null && message.hasOwnProperty("forced")) - object.forced = message.forced; - return object; - }; - - ClientStartRun.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientStartRun; - })(); - - NT.ServerHostStart = (function() { - - function ServerHostStart(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerHostStart.prototype.forced = false; - - ServerHostStart.create = function create(properties) { - return new ServerHostStart(properties); - }; - - ServerHostStart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.forced != null && Object.hasOwnProperty.call(message, "forced")) - writer.uint32(8).bool(message.forced); - return writer; - }; - - ServerHostStart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerHostStart(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.forced = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerHostStart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.forced != null && message.hasOwnProperty("forced")) - if (typeof message.forced !== "boolean") - return "forced: boolean expected"; - return null; - }; - - ServerHostStart.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerHostStart) - return object; - let message = new $root.NT.ServerHostStart(); - if (object.forced != null) - message.forced = Boolean(object.forced); - return message; - }; - - ServerHostStart.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.forced = false; - if (message.forced != null && message.hasOwnProperty("forced")) - object.forced = message.forced; - return object; - }; - - ServerHostStart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerHostStart; - })(); - - NT.ClientRequestRoomList = (function() { - - function ClientRequestRoomList(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ClientRequestRoomList.prototype.page = 0; - - ClientRequestRoomList.create = function create(properties) { - return new ClientRequestRoomList(properties); - }; - - ClientRequestRoomList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.page != null && Object.hasOwnProperty.call(message, "page")) - writer.uint32(8).uint32(message.page); - return writer; - }; - - ClientRequestRoomList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ClientRequestRoomList(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.page = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ClientRequestRoomList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.page != null && message.hasOwnProperty("page")) - if (!$util.isInteger(message.page)) - return "page: integer expected"; - return null; - }; - - ClientRequestRoomList.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ClientRequestRoomList) - return object; - let message = new $root.NT.ClientRequestRoomList(); - if (object.page != null) - message.page = object.page >>> 0; - return message; - }; - - ClientRequestRoomList.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.page = 0; - if (message.page != null && message.hasOwnProperty("page")) - object.page = message.page; - return object; - }; - - ClientRequestRoomList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ClientRequestRoomList; - })(); - - NT.ServerRoomList = (function() { - - function ServerRoomList(properties) { - this.rooms = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomList.prototype.rooms = $util.emptyArray; - ServerRoomList.prototype.pages = null; - - let $oneOfFields; - - Object.defineProperty(ServerRoomList.prototype, "_pages", { - get: $util.oneOfGetter($oneOfFields = ["pages"]), - set: $util.oneOfSetter($oneOfFields) - }); - - ServerRoomList.create = function create(properties) { - return new ServerRoomList(properties); - }; - - ServerRoomList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rooms != null && message.rooms.length) - for (let i = 0; i < message.rooms.length; ++i) - $root.NT.ServerRoomList.Room.encode(message.rooms[i], writer.uint32(10).fork()).ldelim(); - if (message.pages != null && Object.hasOwnProperty.call(message, "pages")) - writer.uint32(16).uint32(message.pages); - return writer; - }; - - ServerRoomList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomList(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rooms && message.rooms.length)) - message.rooms = []; - message.rooms.push($root.NT.ServerRoomList.Room.decode(reader, reader.uint32())); - break; - case 2: - message.pages = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.rooms != null && message.hasOwnProperty("rooms")) { - if (!Array.isArray(message.rooms)) - return "rooms: array expected"; - for (let i = 0; i < message.rooms.length; ++i) { - let error = $root.NT.ServerRoomList.Room.verify(message.rooms[i]); - if (error) - return "rooms." + error; - } - } - if (message.pages != null && message.hasOwnProperty("pages")) { - properties._pages = 1; - if (!$util.isInteger(message.pages)) - return "pages: integer expected"; - } - return null; - }; - - ServerRoomList.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomList) - return object; - let message = new $root.NT.ServerRoomList(); - if (object.rooms) { - if (!Array.isArray(object.rooms)) - throw TypeError(".NT.ServerRoomList.rooms: array expected"); - message.rooms = []; - for (let i = 0; i < object.rooms.length; ++i) { - if (typeof object.rooms[i] !== "object") - throw TypeError(".NT.ServerRoomList.rooms: object expected"); - message.rooms[i] = $root.NT.ServerRoomList.Room.fromObject(object.rooms[i]); - } - } - if (object.pages != null) - message.pages = object.pages >>> 0; - return message; - }; - - ServerRoomList.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.rooms = []; - if (message.rooms && message.rooms.length) { - object.rooms = []; - for (let j = 0; j < message.rooms.length; ++j) - object.rooms[j] = $root.NT.ServerRoomList.Room.toObject(message.rooms[j], options); - } - if (message.pages != null && message.hasOwnProperty("pages")) { - object.pages = message.pages; - if (options.oneofs) - object._pages = "pages"; - } - return object; - }; - - ServerRoomList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerRoomList.Room = (function() { - - function Room(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Room.prototype.id = ""; - Room.prototype.name = ""; - Room.prototype.gamemode = 0; - Room.prototype.curUsers = 0; - Room.prototype.maxUsers = 0; - Room.prototype["protected"] = false; - Room.prototype.owner = ""; - Room.prototype.locked = false; - - Room.create = function create(properties) { - return new Room(properties); - }; - - Room.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(24).uint32(message.gamemode); - if (message.curUsers != null && Object.hasOwnProperty.call(message, "curUsers")) - writer.uint32(32).uint32(message.curUsers); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(40).uint32(message.maxUsers); - if (message["protected"] != null && Object.hasOwnProperty.call(message, "protected")) - writer.uint32(48).bool(message["protected"]); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(58).string(message.owner); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(64).bool(message.locked); - return writer; - }; - - Room.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomList.Room(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.gamemode = reader.uint32(); - break; - case 4: - message.curUsers = reader.uint32(); - break; - case 5: - message.maxUsers = reader.uint32(); - break; - case 6: - message["protected"] = reader.bool(); - break; - case 7: - message.owner = reader.string(); - break; - case 8: - message.locked = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Room.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - if (message.curUsers != null && message.hasOwnProperty("curUsers")) - if (!$util.isInteger(message.curUsers)) - return "curUsers: integer expected"; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - if (message["protected"] != null && message.hasOwnProperty("protected")) - if (typeof message["protected"] !== "boolean") - return "protected: boolean expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - return null; - }; - - Room.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomList.Room) - return object; - let message = new $root.NT.ServerRoomList.Room(); - if (object.id != null) - message.id = String(object.id); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.curUsers != null) - message.curUsers = object.curUsers >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object["protected"] != null) - message["protected"] = Boolean(object["protected"]); - if (object.owner != null) - message.owner = String(object.owner); - if (object.locked != null) - message.locked = Boolean(object.locked); - return message; - }; - - Room.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = ""; - object.name = ""; - object.gamemode = 0; - object.curUsers = 0; - object.maxUsers = 0; - object["protected"] = false; - object.owner = ""; - object.locked = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - object.gamemode = message.gamemode; - if (message.curUsers != null && message.hasOwnProperty("curUsers")) - object.curUsers = message.curUsers; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - object.maxUsers = message.maxUsers; - if (message["protected"] != null && message.hasOwnProperty("protected")) - object["protected"] = message["protected"]; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.locked != null && message.hasOwnProperty("locked")) - object.locked = message.locked; - return object; - }; - - Room.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Room; - })(); - - return ServerRoomList; - })(); - - NT.ServerRoomAddToList = (function() { - - function ServerRoomAddToList(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - ServerRoomAddToList.prototype.room = null; - - ServerRoomAddToList.create = function create(properties) { - return new ServerRoomAddToList(properties); - }; - - ServerRoomAddToList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.room != null && Object.hasOwnProperty.call(message, "room")) - $root.NT.ServerRoomAddToList.Room.encode(message.room, writer.uint32(10).fork()).ldelim(); - return writer; - }; - - ServerRoomAddToList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomAddToList(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.room = $root.NT.ServerRoomAddToList.Room.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - ServerRoomAddToList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.room != null && message.hasOwnProperty("room")) { - let error = $root.NT.ServerRoomAddToList.Room.verify(message.room); - if (error) - return "room." + error; - } - return null; - }; - - ServerRoomAddToList.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomAddToList) - return object; - let message = new $root.NT.ServerRoomAddToList(); - if (object.room != null) { - if (typeof object.room !== "object") - throw TypeError(".NT.ServerRoomAddToList.room: object expected"); - message.room = $root.NT.ServerRoomAddToList.Room.fromObject(object.room); - } - return message; - }; - - ServerRoomAddToList.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.room = null; - if (message.room != null && message.hasOwnProperty("room")) - object.room = $root.NT.ServerRoomAddToList.Room.toObject(message.room, options); - return object; - }; - - ServerRoomAddToList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ServerRoomAddToList.Room = (function() { - - function Room(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - Room.prototype.id = ""; - Room.prototype.name = ""; - Room.prototype.gamemode = 0; - Room.prototype.curUsers = 0; - Room.prototype.maxUsers = 0; - Room.prototype["protected"] = false; - Room.prototype.owner = ""; - Room.prototype.locked = false; - - Room.create = function create(properties) { - return new Room(properties); - }; - - Room.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(10).string(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(18).string(message.name); - if (message.gamemode != null && Object.hasOwnProperty.call(message, "gamemode")) - writer.uint32(24).uint32(message.gamemode); - if (message.curUsers != null && Object.hasOwnProperty.call(message, "curUsers")) - writer.uint32(32).uint32(message.curUsers); - if (message.maxUsers != null && Object.hasOwnProperty.call(message, "maxUsers")) - writer.uint32(40).uint32(message.maxUsers); - if (message["protected"] != null && Object.hasOwnProperty.call(message, "protected")) - writer.uint32(48).bool(message["protected"]); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(58).string(message.owner); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(64).bool(message.locked); - return writer; - }; - - Room.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NT.ServerRoomAddToList.Room(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.gamemode = reader.uint32(); - break; - case 4: - message.curUsers = reader.uint32(); - break; - case 5: - message.maxUsers = reader.uint32(); - break; - case 6: - message["protected"] = reader.bool(); - break; - case 7: - message.owner = reader.string(); - break; - case 8: - message.locked = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - Room.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - if (!$util.isInteger(message.gamemode)) - return "gamemode: integer expected"; - if (message.curUsers != null && message.hasOwnProperty("curUsers")) - if (!$util.isInteger(message.curUsers)) - return "curUsers: integer expected"; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - if (!$util.isInteger(message.maxUsers)) - return "maxUsers: integer expected"; - if (message["protected"] != null && message.hasOwnProperty("protected")) - if (typeof message["protected"] !== "boolean") - return "protected: boolean expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - return null; - }; - - Room.fromObject = function fromObject(object) { - if (object instanceof $root.NT.ServerRoomAddToList.Room) - return object; - let message = new $root.NT.ServerRoomAddToList.Room(); - if (object.id != null) - message.id = String(object.id); - if (object.name != null) - message.name = String(object.name); - if (object.gamemode != null) - message.gamemode = object.gamemode >>> 0; - if (object.curUsers != null) - message.curUsers = object.curUsers >>> 0; - if (object.maxUsers != null) - message.maxUsers = object.maxUsers >>> 0; - if (object["protected"] != null) - message["protected"] = Boolean(object["protected"]); - if (object.owner != null) - message.owner = String(object.owner); - if (object.locked != null) - message.locked = Boolean(object.locked); - return message; - }; - - Room.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.id = ""; - object.name = ""; - object.gamemode = 0; - object.curUsers = 0; - object.maxUsers = 0; - object["protected"] = false; - object.owner = ""; - object.locked = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gamemode != null && message.hasOwnProperty("gamemode")) - object.gamemode = message.gamemode; - if (message.curUsers != null && message.hasOwnProperty("curUsers")) - object.curUsers = message.curUsers; - if (message.maxUsers != null && message.hasOwnProperty("maxUsers")) - object.maxUsers = message.maxUsers; - if (message["protected"] != null && message.hasOwnProperty("protected")) - object["protected"] = message["protected"]; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.locked != null && message.hasOwnProperty("locked")) - object.locked = message.locked; - return object; - }; - - Room.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Room; - })(); - - return ServerRoomAddToList; - })(); - - return NT; -})(); - -export { $root as default }; diff --git a/nt-web-app/websocket/stats/StaticStatsPage.test.ts b/nt-web-app/websocket/stats/TestStaticStatsPage.ts similarity index 100% rename from nt-web-app/websocket/stats/StaticStatsPage.test.ts rename to nt-web-app/websocket/stats/TestStaticStatsPage.ts diff --git a/nt-web-app/websocket/databaseAccess.test.ts b/nt-web-app/websocket/testDatabaseAccess.ts similarity index 100% rename from nt-web-app/websocket/databaseAccess.test.ts rename to nt-web-app/websocket/testDatabaseAccess.ts diff --git a/package.json b/package.json index e44e56bb..ce09b5d8 100644 --- a/package.json +++ b/package.json @@ -17,23 +17,14 @@ "server-init-db": "yarn workspace nt-web-app init-db", "serverDev": "yarn workspace nt-web-app serveDev", "buildServer": "yarn workspace nt-web-app build", - "buildClient": "yarn workspace nt-app electron:build", - "regenerate-proto-experimental": "pbjs -t static-module --ts --no-comments --no-delimited --out websocket/messages.ts websocket/messages.proto", - "regenerate-proto-server": "pbjs -t static-module --wrap es6 --no-comments --no-delimited --out nt-web-app/websocket/messages.js protobuf/messages.proto && pbjs -t static-module --no-delimited protobuf/messages.proto | pbts -o nt-web-app/websocket/messages.d.ts -", - "regenerate-proto-client": "node copy.js ./protobuf/messages.proto ./nt-app/public/messages.proto", - "build-proto": "yarn regenerate-proto-server && yarn regenerate-proto-client", - "buf-proto": "yarn buf generate protobuf" + "buildClient": "yarn workspace nt-app electron:build" }, "dependencies": { - "@bufbuild/protobuf": "^1.4.1", - "axios": "^1.4.0", - "protobufjs": "^6.10.2" + "@noita-together/nt-message": "^0.0.1", + "axios": "^1.4.0" }, "devDependencies": { - "@bufbuild/buf": "^1.27.2", - "@bufbuild/protoc-gen-es": "^1.4.1", - "pbjs": "^0.0.14", - "prettier": "^2.8.8", + "prettier": "latest", "ts-node": "^10.9.1", "ts-node-dev": "^2.0.0" } diff --git a/protobuf/alt.proto b/protobuf/alt.proto deleted file mode 100644 index 4a5158a4..00000000 --- a/protobuf/alt.proto +++ /dev/null @@ -1,706 +0,0 @@ -syntax = "proto3"; -package NTALT; - -message Envelope { - oneof kind { - GameAction game_action = 1; - LobbyAction lobby_action = 50; - } -} - -message GameAction { - oneof action { - // The c prefix stands for "client", which refers to this application - // The s prefix stands for "server", which refers to the online Noita game server - - PlayerMove player_move = 1; - PlayerPosition player_position = 2; - - ClientPlayerUpdate c_player_update = 3; - ServerPlayerUpdate s_player_update = 4; - - ClientPlayerUpdateInventory c_player_update_inventory = 5; - ServerPlayerUpdateInventory s_player_update_inventory = 6; - - ClientHostItemBank c_host_item_bank = 7; - ServerHostItemBank s_host_item_bank = 8; - - ClientHostUserTake c_host_user_take = 9; - ServerHostUserTake s_host_user_take = 10; - - ClientHostUserTakeGold c_host_user_take_gold = 11; - ServerHostUserTakeGold s_host_user_take_gold = 12; - - ClientPlayerAddGold c_player_add_gold = 13; - ServerPlayerAddGold s_player_add_gold = 14; - - ClientPlayerTakeGold c_player_take_gold = 15; - ServerPlayerTakeGold s_player_take_gold = 16; - - ClientPlayerAddItem c_player_add_item = 17; - ServerPlayerAddItem s_player_add_item = 18; - - ClientPlayerTakeItem c_player_take_item = 19; - ServerPlayerTakeItem s_player_take_item = 20; - - ClientPlayerPickup c_player_pickup = 21; - ServerPlayerPickup s_player_pickup = 22; - - ClientNemesisAbility c_nemesis_ability = 23; - ServerNemesisAbility s_nemesis_ability = 24; - - ClientNemesisPickupItem c_nemesis_pickup_item = 25; - ServerNemesisPickupItem s_nemesis_pickup_item = 26; - - ClientChat c_chat = 27; - ServerChat s_chat = 28; - - ClientPlayerDeath c_player_death = 29; - ServerPlayerDeath s_player_death = 30; - - ClientPlayerNewGamePlus c_player_new_game_plus = 31; - ServerPlayerNewGamePlus s_player_new_game_plus = 32; - - ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - - ClientCustomModEvent c_custom_mod_event = 35; - ServerCustomModEvent s_custom_mod_event = 36; - - ClientRespawnPenalty c_respawn_penalty = 37; - ServerRespawnPenalty s_respawn_penalty = 38; - - ClientAngerySteve c_angery_steve = 39; - ServerAngerySteve s_angery_steve = 40; - - ServerStatsUpdate s_stat_update = 42; - } -} - -message PlayerFrame { - optional float x = 1; - optional float y = 2; - optional float arm_r = 3; - optional float arm_scale_y = 4; - optional float scale_x = 5; - optional int32 anim = 6; - optional int32 held = 7; -} - -message PlayerMove { - repeated PlayerFrame frames = 1; - - string user_id = 15; -} - -message PlayerPosition { - PlayerFrame frame = 1; - - string user_id = 15; -} - -message ClientPlayerUpdate { - optional float cur_hp = 1; - optional float max_hp = 2; - optional string location = 3; - optional bool sampo = 4; -} - -message ServerPlayerUpdate { - string user_id = 1; - optional float cur_hp = 2; - optional float max_hp = 3; - optional string location = 4; - optional bool sampo = 5; -} - -message ClientPlayerUpdateInventory { - repeated InventoryWand wands = 1; - repeated InventoryItem items = 2; - repeated InventorySpell spells = 3; - - message InventoryWand { - uint32 index = 1; - Wand wand = 2; - } - - message InventoryItem { - uint32 index = 3; - Item item = 4; - } - - message InventorySpell { - uint32 index = 1; - Spell spell = 2; - } -} - -message ServerPlayerUpdateInventory { - string user_id = 1; - repeated InventoryWand wands = 2; - repeated InventoryItem items = 3; - repeated InventorySpell spells = 4; - - message InventoryWand { - uint32 index = 1; - Wand wand = 2; - } - - message InventoryItem { - uint32 index = 1; - Item item = 2; - } - - message InventorySpell { - uint32 index = 1; - Spell spell = 2; - } -} - -message ClientHostItemBank { - repeated Wand wands = 1; - repeated Spell spells = 2; - repeated Item items = 3; - uint32 gold = 4; - repeated EntityItem objects = 5; -} - -message ServerHostItemBank { - repeated Wand wands = 1; - repeated Spell spells = 2; - repeated Item items = 3; - uint32 gold = 4; - repeated EntityItem objects = 5; -} - -message ClientHostUserTake { - string user_id = 1; - string id = 2; - bool success = 3; -} - -message ServerHostUserTake { - string user_id = 1; - string id = 2; - bool success = 3; -} - -message ClientHostUserTakeGold { - string user_id = 1; - uint32 amount = 2; - bool success = 3; -} - -message ServerHostUserTakeGold { - string user_id = 1; - uint32 amount = 2; - bool success = 3; -} - -message ClientPlayerAddGold { - uint32 amount = 1; -} - -message ServerPlayerAddGold { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerTakeGold { - uint32 amount = 1; -} - -message ServerPlayerTakeGold { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerAddItem { - oneof item { - Spells spells = 1; - Wands wands = 2; - Items flasks = 3; - Entities objects = 4; - } - - message Spells { - repeated Spell list = 1; - } - message Wands { - repeated Wand list = 1; - } - message Items { - repeated Item list = 1; - } - message Entities { - repeated EntityItem list = 1; - } -} - -message ServerPlayerAddItem { - string user_id = 1; - oneof item { - Spells spells = 2; - Wands wands = 3; - Items flasks = 4; - Entities objects = 5; - } - - message Spells { - repeated Spell list = 1; - } - message Wands { - repeated Wand list = 2; - } - message Items { - repeated Item list = 3; - } - message Entities { - repeated EntityItem list = 4; - } -} - -message ClientPlayerTakeItem { - string id = 1; -} - -message ServerPlayerTakeItem { - string user_id = 1; - string id = 2; -} - -message ClientChat { - string message = 1; -} - -message ServerChat { - string id = 1; - string user_id = 2; - string name = 3; - string message = 4; -} - -message ServerStatsUpdate{ - string data = 1; -} - - -message ClientPlayerPickup { - oneof kind { - HeartPickup heart = 1; - OrbPickup orb = 2; - } - - message HeartPickup { - bool hp_perk = 1; - } - - message OrbPickup { - uint32 id = 1; - } -} - -message ServerPlayerPickup { - string user_id = 1; - oneof kind { - HeartPickup heart = 2; - OrbPickup orb = 3; - } - - message HeartPickup { - bool hp_perk = 1; - } - - message OrbPickup { - uint32 id = 1; - } -} - -message ClientNemesisPickupItem { - string game_id = 1; -} - -message ServerNemesisPickupItem { - string user_id = 1; - string game_id = 2; -} - -message ClientNemesisAbility { - string game_id = 1; -} - -message ServerNemesisAbility { - string user_id = 1; - string game_id = 2; -} - -message ClientPlayerDeath { - bool is_win = 1; - optional uint32 game_time = 2; -} - -message ServerPlayerDeath { - string user_id = 1; - bool is_win = 2; - optional uint32 game_time = 3; -} - -message ClientPlayerNewGamePlus { - uint32 amount = 1; -} - -message ServerPlayerNewGamePlus { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerSecretHourglass { - string material = 1; -} - -message ServerPlayerSecretHourglass { - string user_id = 1; - string material = 2; -} - -message ClientCustomModEvent { - string payload = 1; -} - -message ServerCustomModEvent { - string user_id = 1; - string payload = 2; -} - -message ClientRespawnPenalty { - uint32 deaths = 1; -} - -message ServerRespawnPenalty { - string user_id = 1; - uint32 deaths = 2; -} - -message ClientAngerySteve { - bool idk = 1; -} - -message ServerAngerySteve { - string user_id = 1; -} - -message Wand { - string id = 1; - WandStats stats = 2; - repeated Spell always_cast = 3; - repeated Spell deck = 4; - optional string sent_by = 5; - optional string contributed_by = 6; - - message WandStats { - string sprite = 1; - bool named = 2; - string ui_name = 3; - float mana_max = 4; - float mana_charge_speed = 5; - int32 reload_time = 6; - uint32 actions_per_round = 7; - uint32 deck_capacity = 8; - bool shuffle_deck_when_empty = 9; - float spread_degrees = 10; - float speed_multiplier = 11; - int32 fire_rate_wait = 12; - float tip_x = 13; - float tip_y = 14; - float grip_x = 15; - float grip_y = 16; - } -} - -message Spell { - string id = 1; - string game_id = 2; - optional string sent_by = 3; - optional string contributed_by = 4; - int32 uses_remaining = 5; -} - -message Item { - string id = 1; - Color color = 2; - repeated Material content = 3; - optional string sent_by = 4; - optional string contributed_by = 5; - bool is_chest = 6 [deprecated=true]; - string item_type = 7; - - message Color { - float r = 1; - float g = 2; - float b = 3; - } - message Material { - uint32 id = 1; - uint32 amount = 2; - } -} - -message EntityItem { - string id = 1; - string path = 2; - string sprite = 3; - optional string sent_by = 4; -} - -message LobbyAction { - oneof action { - ClientRoomCreate c_room_create = 1; - ServerRoomCreated s_room_created = 2; - ServerRoomCreateFailed s_room_create_failed = 3; - - ClientRoomUpdate c_room_update = 4; - ServerRoomUpdated s_room_updated = 5; - ServerRoomUpdateFailed s_room_update_failed = 6; - - ClientRoomFlagsUpdate c_room_flags_update = 7; - ServerRoomFlagsUpdated s_room_flags_updated = 8; - ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - - ClientRoomDelete c_room_delete = 10; - ServerRoomDeleted s_room_deleted = 11; - - ClientJoinRoom c_join_room = 12; - ServerJoinRoomSuccess s_join_room_success = 13; - ServerJoinRoomFailed s_join_room_failed = 14; - ServerUserJoinedRoom s_user_joined_room = 15; - - ClientLeaveRoom c_leave_room = 16; - ServerUserLeftRoom s_user_left_room = 17; - - ClientKickUser c_kick_user = 18; - ServerUserKicked s_user_kicked = 19; - - ClientBanUser c_ban_user = 20; - ServerUserBanned s_user_banned = 21; - - ClientReadyState c_ready_state = 22; - ServerUserReadyState s_user_ready_state = 23; - - ClientStartRun c_start_run = 24; - ServerHostStart s_host_start = 25; - - ClientRequestRoomList c_request_room_list = 27; - ServerRoomList s_room_list = 28; - - ServerDisconnected s_disconnected = 31; - ServerRoomAddToList s_room_add_to_list = 32; - - ClientRunOver c_run_over = 33; - } -} - -message ClientRunOver { - optional bool idk = 1; -} - -message ServerDisconnected { - string reason = 1; -} - -message ClientRoomDelete { - string id = 1; -} - -message ServerRoomDeleted { - string id = 1; -} - -message ClientRoomCreate { - string name = 1; - uint32 gamemode = 2; - uint32 max_users = 3; - optional string password = 4; -} - -message ServerRoomCreated { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 max_users = 4; - optional string password = 5; - bool locked = 6; - repeated User users = 7; - - message User { - string user_id = 1; - string name = 2; - bool ready = 3; - bool owner = 4; - } -} - -message ServerRoomCreateFailed { - string reason = 1; -} - -message ClientRoomUpdate { - optional string name = 1; - optional uint32 gamemode = 2; - optional uint32 max_users = 3; - optional string password = 4; - optional bool locked = 5; -} - -message ServerRoomUpdated { - optional string name = 1; - optional uint32 gamemode = 2; - optional uint32 max_users = 3; - optional string password = 4; - optional bool locked = 5; -} - -message ServerRoomUpdateFailed{ - string reason = 1; -} - -message ClientRoomFlagsUpdate { - repeated GameFlag flags = 1; - message GameFlag { - // TODO: This seems like a hack, please improve it - string flag = 1; - optional int32 int_val = 2; - optional string str_val = 3; - optional float float_val = 4; - optional bool bool_val = 5; - optional uint32 u_int_val = 6; - } -} - -message ServerRoomFlagsUpdated { - repeated GameFlag flags = 1; - message GameFlag { - string flag = 1; - optional int32 int_val = 2; - optional string str_val = 3; - optional float float_val = 4; - optional bool bool_val = 5; - optional uint32 u_int_val = 6; - } -} - -message ServerRoomFlagsUpdateFailed { - string reason = 1; -} - -message ClientJoinRoom { - string id = 1; - optional string password = 2; -} - -message ServerJoinRoomSuccess { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 max_users = 4; - optional string password = 5; - bool locked = 6; - repeated User users = 7; - - message User { - string user_id = 1; - string name = 2; - bool ready = 3; - bool owner = 4; - } -} - -message ServerJoinRoomFailed { - string reason = 1; -} - -message ServerUserJoinedRoom { - string user_id = 1; - string name = 2; -} - -message ClientLeaveRoom { - string user_id = 1; //should be empty msg -} - -message ServerUserLeftRoom { - string user_id = 1; -} - -message ClientKickUser { - string user_id = 1; -} - -message ServerUserKicked { - string user_id = 1; -} - -message ClientBanUser { - string user_id = 1; -} - -message ServerUserBanned { - string user_id = 1; -} - -message ClientReadyState { - bool ready = 1; - optional string seed = 2; - repeated string mods = 3; - optional string version = 4; - optional bool beta = 5; -} - -message ServerUserReadyState { - string user_id = 1; - bool ready = 2; - optional string seed = 3; - repeated string mods = 4; - optional string version = 5; - optional bool beta = 6; -} - -message ClientStartRun { - bool forced = 1; -} - -message ServerHostStart { - bool forced = 1; -} - -message ClientRequestRoomList { - uint32 page = 1; -} - -message ServerRoomList { - repeated Room rooms = 1; - optional uint32 pages = 2; - message Room { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 cur_users = 4; - uint32 max_users = 5; - bool protected = 6; - string owner = 7; - bool locked = 8; - } -} - -message ServerRoomAddToList { - Room room = 1; - message Room { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 cur_users = 4; - uint32 max_users = 5; - bool protected = 6; - string owner = 7; - bool locked = 8; - } -} \ No newline at end of file diff --git a/protobuf/messages.proto b/protobuf/messages.proto deleted file mode 100644 index bc31ea52..00000000 --- a/protobuf/messages.proto +++ /dev/null @@ -1,710 +0,0 @@ -syntax = "proto3"; -package NT; - -message Envelope { - oneof kind { - GameAction game_action = 1; - LobbyAction lobby_action = 50; - } -} - -message GameAction { - oneof action { - // The c prefix stands for "client", which refers to this application - // The s prefix stands for "server", which refers to the online Noita game server - - ClientPlayerMove c_player_move = 1; - ServerPlayerMove s_player_move = 2; - - ClientPlayerUpdate c_player_update = 3; - ServerPlayerUpdate s_player_update = 4; - - ClientPlayerUpdateInventory c_player_update_inventory = 5; - ServerPlayerUpdateInventory s_player_update_inventory = 6; - - ClientHostItemBank c_host_item_bank = 7; - ServerHostItemBank s_host_item_bank = 8; - - ClientHostUserTake c_host_user_take = 9; - ServerHostUserTake s_host_user_take = 10; - - ClientHostUserTakeGold c_host_user_take_gold = 11; - ServerHostUserTakeGold s_host_user_take_gold = 12; - - ClientPlayerAddGold c_player_add_gold = 13; - ServerPlayerAddGold s_player_add_gold = 14; - - ClientPlayerTakeGold c_player_take_gold = 15; - ServerPlayerTakeGold s_player_take_gold = 16; - - ClientPlayerAddItem c_player_add_item = 17; - ServerPlayerAddItem s_player_add_item = 18; - - ClientPlayerTakeItem c_player_take_item = 19; - ServerPlayerTakeItem s_player_take_item = 20; - - ClientPlayerPickup c_player_pickup = 21; - ServerPlayerPickup s_player_pickup = 22; - - ClientNemesisAbility c_nemesis_ability = 23; - ServerNemesisAbility s_nemesis_ability = 24; - - ClientNemesisPickupItem c_nemesis_pickup_item = 25; - ServerNemesisPickupItem s_nemesis_pickup_item = 26; - - ClientChat c_chat = 27; - ServerChat s_chat = 28; - - ClientPlayerDeath c_player_death = 29; - ServerPlayerDeath s_player_death = 30; - - ClientPlayerNewGamePlus c_player_new_game_plus = 31; - ServerPlayerNewGamePlus s_player_new_game_plus = 32; - - ClientPlayerSecretHourglass c_player_secret_hourglass = 33; - ServerPlayerSecretHourglass s_player_secret_hourglass = 34; - - ClientCustomModEvent c_custom_mod_event = 35; - ServerCustomModEvent s_custom_mod_event = 36; - - ClientRespawnPenalty c_respawn_penalty = 37; - ServerRespawnPenalty s_respawn_penalty = 38; - - ClientAngerySteve c_angery_steve = 39; - ServerAngerySteve s_angery_steve = 40; - - ServerPlayerPos s_player_pos = 41; - ServerStatsUpdate s_stat_update = 42; - } -} - -message PlayerFrame { - optional float x = 1; - optional float y = 2; - optional float arm_r = 3; - optional float arm_scale_y = 4; - optional float scale_x = 5; - optional int32 anim = 6; - optional int32 held = 7; -} - -message ServerPlayerPos { - string user_id = 1; - float x = 2; - float y = 3; -} - -message ClientPlayerMove { - repeated PlayerFrame frames = 1; -} - -message ServerPlayerMove { - string user_id = 1; - repeated PlayerFrame frames = 2; -} - -message ClientPlayerUpdate { - optional float cur_hp = 1; - optional float max_hp = 2; - optional string location = 3; - optional bool sampo = 4; -} - -message ServerPlayerUpdate { - string user_id = 1; - optional float cur_hp = 2; - optional float max_hp = 3; - optional string location = 4; - optional bool sampo = 5; -} - -message ClientPlayerUpdateInventory { - repeated InventoryWand wands = 1; - repeated InventoryItem items = 2; - repeated InventorySpell spells = 3; - - message InventoryWand { - uint32 index = 1; - Wand wand = 2; - } - - message InventoryItem { - uint32 index = 3; - Item item = 4; - } - - message InventorySpell { - uint32 index = 1; - Spell spell = 2; - } -} - -message ServerPlayerUpdateInventory { - string user_id = 1; - repeated InventoryWand wands = 2; - repeated InventoryItem items = 3; - repeated InventorySpell spells = 4; - - message InventoryWand { - uint32 index = 1; - Wand wand = 2; - } - - message InventoryItem { - uint32 index = 1; - Item item = 2; - } - - message InventorySpell { - uint32 index = 1; - Spell spell = 2; - } -} - -message ClientHostItemBank { - repeated Wand wands = 1; - repeated Spell spells = 2; - repeated Item items = 3; - uint32 gold = 4; - repeated EntityItem objects = 5; -} - -message ServerHostItemBank { - repeated Wand wands = 1; - repeated Spell spells = 2; - repeated Item items = 3; - uint32 gold = 4; - repeated EntityItem objects = 5; -} - -message ClientHostUserTake { - string user_id = 1; - string id = 2; - bool success = 3; -} - -message ServerHostUserTake { - string user_id = 1; - string id = 2; - bool success = 3; -} - -message ClientHostUserTakeGold { - string user_id = 1; - uint32 amount = 2; - bool success = 3; -} - -message ServerHostUserTakeGold { - string user_id = 1; - uint32 amount = 2; - bool success = 3; -} - -message ClientPlayerAddGold { - uint32 amount = 1; -} - -message ServerPlayerAddGold { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerTakeGold { - uint32 amount = 1; -} - -message ServerPlayerTakeGold { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerAddItem { - oneof item { - Spells spells = 1; - Wands wands = 2; - Items flasks = 3; - Entities objects = 4; - } - - message Spells { - repeated Spell list = 1; - } - message Wands { - repeated Wand list = 1; - } - message Items { - repeated Item list = 1; - } - message Entities { - repeated EntityItem list = 1; - } -} - -message ServerPlayerAddItem { - string user_id = 1; - oneof item { - Spells spells = 2; - Wands wands = 3; - Items flasks = 4; - Entities objects = 5; - } - - message Spells { - repeated Spell list = 1; - } - message Wands { - repeated Wand list = 2; - } - message Items { - repeated Item list = 3; - } - message Entities { - repeated EntityItem list = 4; - } -} - -message ClientPlayerTakeItem { - string id = 1; -} - -message ServerPlayerTakeItem { - string user_id = 1; - string id = 2; -} - -message ClientChat { - string message = 1; -} - -message ServerChat { - string id = 1; - string user_id = 2; - string name = 3; - string message = 4; -} - -message ServerStatsUpdate{ - string data = 1; -} - - -message ClientPlayerPickup { - oneof kind { - HeartPickup heart = 1; - OrbPickup orb = 2; - } - - message HeartPickup { - bool hp_perk = 1; - } - - message OrbPickup { - uint32 id = 1; - } -} - -message ServerPlayerPickup { - string user_id = 1; - oneof kind { - HeartPickup heart = 2; - OrbPickup orb = 3; - } - - message HeartPickup { - bool hp_perk = 1; - } - - message OrbPickup { - uint32 id = 1; - } -} - -message ClientNemesisPickupItem { - string game_id = 1; -} - -message ServerNemesisPickupItem { - string user_id = 1; - string game_id = 2; -} - -message ClientNemesisAbility { - string game_id = 1; -} - -message ServerNemesisAbility { - string user_id = 1; - string game_id = 2; -} - -message ClientPlayerDeath { - bool is_win = 1; - optional uint32 game_time = 2; -} - -message ServerPlayerDeath { - string user_id = 1; - bool is_win = 2; - optional uint32 game_time = 3; -} - -message ClientPlayerNewGamePlus { - uint32 amount = 1; -} - -message ServerPlayerNewGamePlus { - string user_id = 1; - uint32 amount = 2; -} - -message ClientPlayerSecretHourglass { - string material = 1; -} - -message ServerPlayerSecretHourglass { - string user_id = 1; - string material = 2; -} - -message ClientCustomModEvent { - string payload = 1; -} - -message ServerCustomModEvent { - string user_id = 1; - string payload = 2; -} - -message ClientRespawnPenalty { - uint32 deaths = 1; -} - -message ServerRespawnPenalty { - string user_id = 1; - uint32 deaths = 2; -} - -message ClientAngerySteve { - bool idk = 1; -} - -message ServerAngerySteve { - string user_id = 1; -} - -message Wand { - string id = 1; - WandStats stats = 2; - repeated Spell always_cast = 3; - repeated Spell deck = 4; - optional string sent_by = 5; - optional string contributed_by = 6; - - message WandStats { - string sprite = 1; - bool named = 2; - string ui_name = 3; - float mana_max = 4; - float mana_charge_speed = 5; - int32 reload_time = 6; - uint32 actions_per_round = 7; - uint32 deck_capacity = 8; - bool shuffle_deck_when_empty = 9; - float spread_degrees = 10; - float speed_multiplier = 11; - int32 fire_rate_wait = 12; - float tip_x = 13; - float tip_y = 14; - float grip_x = 15; - float grip_y = 16; - } -} - -message Spell { - string id = 1; - string game_id = 2; - optional string sent_by = 3; - optional string contributed_by = 4; - int32 uses_remaining = 5; -} - -message Item { - string id = 1; - Color color = 2; - repeated Material content = 3; - optional string sent_by = 4; - optional string contributed_by = 5; - bool is_chest = 6 [deprecated=true]; - string item_type = 7; - - message Color { - float r = 1; - float g = 2; - float b = 3; - } - message Material { - uint32 id = 1; - uint32 amount = 2; - } -} - -message EntityItem { - string id = 1; - string path = 2; - string sprite = 3; - optional string sent_by = 4; -} - -message LobbyAction { - oneof action { - ClientRoomCreate c_room_create = 1; - ServerRoomCreated s_room_created = 2; - ServerRoomCreateFailed s_room_create_failed = 3; - - ClientRoomUpdate c_room_update = 4; - ServerRoomUpdated s_room_updated = 5; - ServerRoomUpdateFailed s_room_update_failed = 6; - - ClientRoomFlagsUpdate c_room_flags_update = 7; - ServerRoomFlagsUpdated s_room_flags_updated = 8; - ServerRoomFlagsUpdateFailed s_room_flags_update_failed = 9; - - ClientRoomDelete c_room_delete = 10; - ServerRoomDeleted s_room_deleted = 11; - - ClientJoinRoom c_join_room = 12; - ServerJoinRoomSuccess s_join_room_success = 13; - ServerJoinRoomFailed s_join_room_failed = 14; - ServerUserJoinedRoom s_user_joined_room = 15; - - ClientLeaveRoom c_leave_room = 16; - ServerUserLeftRoom s_user_left_room = 17; - - ClientKickUser c_kick_user = 18; - ServerUserKicked s_user_kicked = 19; - - ClientBanUser c_ban_user = 20; - ServerUserBanned s_user_banned = 21; - - ClientReadyState c_ready_state = 22; - ServerUserReadyState s_user_ready_state = 23; - - ClientStartRun c_start_run = 24; - ServerHostStart s_host_start = 25; - - ClientRequestRoomList c_request_room_list = 27; - ServerRoomList s_room_list = 28; - - ServerDisconnected s_disconnected = 31; - ServerRoomAddToList s_room_add_to_list = 32; - - ClientRunOver c_run_over = 33; - } -} - -message ClientRunOver { - optional bool idk = 1; -} - -message ServerDisconnected { - string reason = 1; -} - -message ClientRoomDelete { - string id = 1; -} - -message ServerRoomDeleted { - string id = 1; -} - -message ClientRoomCreate { - string name = 1; - uint32 gamemode = 2; - uint32 max_users = 3; - optional string password = 4; -} - -message ServerRoomCreated { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 max_users = 4; - optional string password = 5; - bool locked = 6; - repeated User users = 7; - - message User { - string user_id = 1; - string name = 2; - bool ready = 3; - bool owner = 4; - } -} - -message ServerRoomCreateFailed { - string reason = 1; -} - -message ClientRoomUpdate { - optional string name = 1; - optional uint32 gamemode = 2; - optional uint32 max_users = 3; - optional string password = 4; - optional bool locked = 5; -} - -message ServerRoomUpdated { - optional string name = 1; - optional uint32 gamemode = 2; - optional uint32 max_users = 3; - optional string password = 4; - optional bool locked = 5; -} - -message ServerRoomUpdateFailed{ - string reason = 1; -} - -message ClientRoomFlagsUpdate { - repeated GameFlag flags = 1; - message GameFlag { - // TODO: This seems like a hack, please improve it - string flag = 1; - optional int32 int_val = 2; - optional string str_val = 3; - optional float float_val = 4; - optional bool bool_val = 5; - optional uint32 u_int_val = 6; - } -} - -message ServerRoomFlagsUpdated { - repeated GameFlag flags = 1; - message GameFlag { - string flag = 1; - optional int32 int_val = 2; - optional string str_val = 3; - optional float float_val = 4; - optional bool bool_val = 5; - optional uint32 u_int_val = 6; - } -} - -message ServerRoomFlagsUpdateFailed { - string reason = 1; -} - -message ClientJoinRoom { - string id = 1; - optional string password = 2; -} - -message ServerJoinRoomSuccess { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 max_users = 4; - optional string password = 5; - bool locked = 6; - repeated User users = 7; - - message User { - string user_id = 1; - string name = 2; - bool ready = 3; - bool owner = 4; - } -} - -message ServerJoinRoomFailed { - string reason = 1; -} - -message ServerUserJoinedRoom { - string user_id = 1; - string name = 2; -} - -message ClientLeaveRoom { - string user_id = 1; //should be empty msg -} - -message ServerUserLeftRoom { - string user_id = 1; -} - -message ClientKickUser { - string user_id = 1; -} - -message ServerUserKicked { - string user_id = 1; -} - -message ClientBanUser { - string user_id = 1; -} - -message ServerUserBanned { - string user_id = 1; -} - -message ClientReadyState { - bool ready = 1; - optional string seed = 2; - repeated string mods = 3; - optional string version = 4; - optional bool beta = 5; -} - -message ServerUserReadyState { - string user_id = 1; - bool ready = 2; - optional string seed = 3; - repeated string mods = 4; - optional string version = 5; - optional bool beta = 6; -} - -message ClientStartRun { - bool forced = 1; -} - -message ServerHostStart { - bool forced = 1; -} - -message ClientRequestRoomList { - uint32 page = 1; -} - -message ServerRoomList { - repeated Room rooms = 1; - optional uint32 pages = 2; - message Room { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 cur_users = 4; - uint32 max_users = 5; - bool protected = 6; - string owner = 7; - bool locked = 8; - } -} - -message ServerRoomAddToList { - Room room = 1; - message Room { - string id = 1; - string name = 2; - uint32 gamemode = 3; - uint32 cur_users = 4; - uint32 max_users = 5; - bool protected = 6; - string owner = 7; - bool locked = 8; - } -} \ No newline at end of file diff --git a/shared-lib/package.json b/shared-lib/package.json index ec865615..127cecdf 100644 --- a/shared-lib/package.json +++ b/shared-lib/package.json @@ -8,7 +8,6 @@ "@types/node": "20.2.5", "eslint": "8.41.0", "eslint-config-next": "13.4.4", - "protobufjs": "^6.10.2", "typescript": "5.1.3" } } diff --git a/yarn.lock b/yarn.lock index dd934e1e..8c659b42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -40,55 +40,55 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.22.13": - version: 7.22.13 - resolution: "@babel/code-frame@npm:7.22.13" +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.22.13, @babel/code-frame@npm:^7.23.5": + version: 7.23.5 + resolution: "@babel/code-frame@npm:7.23.5" dependencies: - "@babel/highlight": ^7.22.13 + "@babel/highlight": ^7.23.4 chalk: ^2.4.2 - checksum: 22e342c8077c8b77eeb11f554ecca2ba14153f707b85294fcf6070b6f6150aae88a7b7436dd88d8c9289970585f3fe5b9b941c5aa3aa26a6d5a8ef3f292da058 + checksum: d90981fdf56a2824a9b14d19a4c0e8db93633fd488c772624b4e83e0ceac6039a27cd298a247c3214faa952bf803ba23696172ae7e7235f3b97f43ba278c569a languageName: node linkType: hard "@babel/compat-data@npm:^7.22.9": - version: 7.22.20 - resolution: "@babel/compat-data@npm:7.22.20" - checksum: efedd1d18878c10fde95e4d82b1236a9aba41395ef798cbb651f58dbf5632dbff475736c507b8d13d4c8f44809d41c0eb2ef0d694283af9ba5dd8339b6dab451 + version: 7.23.5 + resolution: "@babel/compat-data@npm:7.23.5" + checksum: 06ce244cda5763295a0ea924728c09bae57d35713b675175227278896946f922a63edf803c322f855a3878323d48d0255a2a3023409d2a123483c8a69ebb4744 languageName: node linkType: hard "@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3": - version: 7.23.0 - resolution: "@babel/core@npm:7.23.0" + version: 7.23.5 + resolution: "@babel/core@npm:7.23.5" dependencies: "@ampproject/remapping": ^2.2.0 - "@babel/code-frame": ^7.22.13 - "@babel/generator": ^7.23.0 + "@babel/code-frame": ^7.23.5 + "@babel/generator": ^7.23.5 "@babel/helper-compilation-targets": ^7.22.15 - "@babel/helper-module-transforms": ^7.23.0 - "@babel/helpers": ^7.23.0 - "@babel/parser": ^7.23.0 + "@babel/helper-module-transforms": ^7.23.3 + "@babel/helpers": ^7.23.5 + "@babel/parser": ^7.23.5 "@babel/template": ^7.22.15 - "@babel/traverse": ^7.23.0 - "@babel/types": ^7.23.0 + "@babel/traverse": ^7.23.5 + "@babel/types": ^7.23.5 convert-source-map: ^2.0.0 debug: ^4.1.0 gensync: ^1.0.0-beta.2 json5: ^2.2.3 semver: ^6.3.1 - checksum: cebd9b48dbc970a7548522f207f245c69567e5ea17ebb1a4e4de563823cf20a01177fe8d2fe19b6e1461361f92fa169fd0b29f8ee9d44eeec84842be1feee5f2 + checksum: 5e5dfb1e61f298676f1fca18c646dbf6fb164ca1056b0169b8d42b7f5c35e026d81823582ccb2358e93a61b035e22b3ad37e2abaae4bf43f1ffb93b6ce19466e languageName: node linkType: hard -"@babel/generator@npm:^7.23.0, @babel/generator@npm:^7.7.2": - version: 7.23.0 - resolution: "@babel/generator@npm:7.23.0" +"@babel/generator@npm:^7.23.5, @babel/generator@npm:^7.7.2": + version: 7.23.5 + resolution: "@babel/generator@npm:7.23.5" dependencies: - "@babel/types": ^7.23.0 + "@babel/types": ^7.23.5 "@jridgewell/gen-mapping": ^0.3.2 "@jridgewell/trace-mapping": ^0.3.17 jsesc: ^2.5.1 - checksum: 8efe24adad34300f1f8ea2add420b28171a646edc70f2a1b3e1683842f23b8b7ffa7e35ef0119294e1901f45bfea5b3dc70abe1f10a1917ccdfb41bed69be5f1 + checksum: 845ddda7cf38a3edf4be221cc8a439dee9ea6031355146a1a74047aa8007bc030305b27d8c68ec9e311722c910610bde38c0e13a9ce55225251e7cb7e7f3edc8 languageName: node linkType: hard @@ -140,9 +140,9 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-transforms@npm:^7.23.0": - version: 7.23.0 - resolution: "@babel/helper-module-transforms@npm:7.23.0" +"@babel/helper-module-transforms@npm:^7.23.3": + version: 7.23.3 + resolution: "@babel/helper-module-transforms@npm:7.23.3" dependencies: "@babel/helper-environment-visitor": ^7.22.20 "@babel/helper-module-imports": ^7.22.15 @@ -151,7 +151,7 @@ __metadata: "@babel/helper-validator-identifier": ^7.22.20 peerDependencies: "@babel/core": ^7.0.0 - checksum: 6e2afffb058cf3f8ce92f5116f710dda4341c81cfcd872f9a0197ea594f7ce0ab3cb940b0590af2fe99e60d2e5448bfba6bca8156ed70a2ed4be2adc8586c891 + checksum: 5d0895cfba0e16ae16f3aa92fee108517023ad89a855289c4eb1d46f7aef4519adf8e6f971e1d55ac20c5461610e17213f1144097a8f932e768a9132e2278d71 languageName: node linkType: hard @@ -180,10 +180,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.22.5": - version: 7.22.5 - resolution: "@babel/helper-string-parser@npm:7.22.5" - checksum: 836851ca5ec813077bbb303acc992d75a360267aa3b5de7134d220411c852a6f17de7c0d0b8c8dcc0f567f67874c00f4528672b2a4f1bc978a3ada64c8c78467 +"@babel/helper-string-parser@npm:^7.23.4": + version: 7.23.4 + resolution: "@babel/helper-string-parser@npm:7.23.4" + checksum: c0641144cf1a7e7dc93f3d5f16d5327465b6cf5d036b48be61ecba41e1eece161b48f46b7f960951b67f8c3533ce506b16dece576baef4d8b3b49f8c65410f90 languageName: node linkType: hard @@ -195,40 +195,40 @@ __metadata: linkType: hard "@babel/helper-validator-option@npm:^7.22.15": - version: 7.22.15 - resolution: "@babel/helper-validator-option@npm:7.22.15" - checksum: 68da52b1e10002a543161494c4bc0f4d0398c8fdf361d5f7f4272e95c45d5b32d974896d44f6a0ea7378c9204988879d73613ca683e13bd1304e46d25ff67a8d + version: 7.23.5 + resolution: "@babel/helper-validator-option@npm:7.23.5" + checksum: 537cde2330a8aede223552510e8a13e9c1c8798afee3757995a7d4acae564124fe2bf7e7c3d90d62d3657434a74340a274b3b3b1c6f17e9a2be1f48af29cb09e languageName: node linkType: hard -"@babel/helpers@npm:^7.23.0": - version: 7.23.1 - resolution: "@babel/helpers@npm:7.23.1" +"@babel/helpers@npm:^7.23.5": + version: 7.23.5 + resolution: "@babel/helpers@npm:7.23.5" dependencies: "@babel/template": ^7.22.15 - "@babel/traverse": ^7.23.0 - "@babel/types": ^7.23.0 - checksum: acfc345102045c24ea2a4d60e00dcf8220e215af3add4520e2167700661338e6a80bd56baf44bb764af05ec6621101c9afc315dc107e18c61fa6da8acbdbb893 + "@babel/traverse": ^7.23.5 + "@babel/types": ^7.23.5 + checksum: c16dc8a3bb3d0e02c7ee1222d9d0865ed4b92de44fb8db43ff5afd37a0fc9ea5e2906efa31542c95b30c1a3a9540d66314663c9a23b5bb9b5ec76e8ebc896064 languageName: node linkType: hard -"@babel/highlight@npm:^7.22.13": - version: 7.22.20 - resolution: "@babel/highlight@npm:7.22.20" +"@babel/highlight@npm:^7.23.4": + version: 7.23.4 + resolution: "@babel/highlight@npm:7.23.4" dependencies: "@babel/helper-validator-identifier": ^7.22.20 chalk: ^2.4.2 js-tokens: ^4.0.0 - checksum: 84bd034dca309a5e680083cd827a766780ca63cef37308404f17653d32366ea76262bd2364b2d38776232f2d01b649f26721417d507e8b4b6da3e4e739f6d134 + checksum: 643acecdc235f87d925979a979b539a5d7d1f31ae7db8d89047269082694122d11aa85351304c9c978ceeb6d250591ccadb06c366f358ccee08bb9c122476b89 languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.22.15, @babel/parser@npm:^7.23.0": - version: 7.23.0 - resolution: "@babel/parser@npm:7.23.0" +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.22.15, @babel/parser@npm:^7.23.5": + version: 7.23.5 + resolution: "@babel/parser@npm:7.23.5" bin: parser: ./bin/babel-parser.js - checksum: 453fdf8b9e2c2b7d7b02139e0ce003d1af21947bbc03eb350fb248ee335c9b85e4ab41697ddbdd97079698de825a265e45a0846bb2ed47a2c7c1df833f42a354 + checksum: ea763629310f71580c4a3ea9d3705195b7ba994ada2cc98f9a584ebfdacf54e92b2735d351672824c2c2b03c7f19206899f4d95650d85ce514a822b19a8734c7 languageName: node linkType: hard @@ -288,13 +288,13 @@ __metadata: linkType: hard "@babel/plugin-syntax-jsx@npm:^7.7.2": - version: 7.22.5 - resolution: "@babel/plugin-syntax-jsx@npm:7.22.5" + version: 7.23.3 + resolution: "@babel/plugin-syntax-jsx@npm:7.23.3" dependencies: "@babel/helper-plugin-utils": ^7.22.5 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 8829d30c2617ab31393d99cec2978e41f014f4ac6f01a1cecf4c4dd8320c3ec12fdc3ce121126b2d8d32f6887e99ca1a0bad53dedb1e6ad165640b92b24980ce + checksum: 89037694314a74e7f0e7a9c8d3793af5bf6b23d80950c29b360db1c66859d67f60711ea437e70ad6b5b4b29affe17eababda841b6c01107c2b638e0493bafb4e languageName: node linkType: hard @@ -376,22 +376,35 @@ __metadata: linkType: hard "@babel/plugin-syntax-typescript@npm:^7.7.2": - version: 7.22.5 - resolution: "@babel/plugin-syntax-typescript@npm:7.22.5" + version: 7.23.3 + resolution: "@babel/plugin-syntax-typescript@npm:7.23.3" dependencies: "@babel/helper-plugin-utils": ^7.22.5 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 8ab7718fbb026d64da93681a57797d60326097fd7cb930380c8bffd9eb101689e90142c760a14b51e8e69c88a73ba3da956cb4520a3b0c65743aee5c71ef360a + checksum: abfad3a19290d258b028e285a1f34c9b8a0cbe46ef79eafed4ed7ffce11b5d0720b5e536c82f91cbd8442cde35a3dd8e861fa70366d87ff06fdc0d4756e30876 languageName: node linkType: hard -"@babel/runtime@npm:^7.20.7, @babel/runtime@npm:^7.21.0": - version: 7.23.1 - resolution: "@babel/runtime@npm:7.23.1" +"@babel/plugin-transform-modules-commonjs@npm:^7.23.3": + version: 7.23.3 + resolution: "@babel/plugin-transform-modules-commonjs@npm:7.23.3" + dependencies: + "@babel/helper-module-transforms": ^7.23.3 + "@babel/helper-plugin-utils": ^7.22.5 + "@babel/helper-simple-access": ^7.22.5 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 720a231ceade4ae4d2632478db4e7fecf21987d444942b72d523487ac8d715ca97de6c8f415c71e939595e1a4776403e7dc24ed68fe9125ad4acf57753c9bff7 + languageName: node + linkType: hard + +"@babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2": + version: 7.23.5 + resolution: "@babel/runtime@npm:7.23.5" dependencies: regenerator-runtime: ^0.14.0 - checksum: 0cd0d43e6e7dc7f9152fda8c8312b08321cda2f56ef53d6c22ebdd773abdc6f5d0a69008de90aa41908d00e2c1facb24715ff121274e689305c858355ff02c70 + checksum: 164d9802424f06908e62d29b8fd3a87db55accf82f46f964ac481dcead11ff7df8391e3696e5fa91a8ca10ea8845bf650acd730fa88cf13f8026cd8d5eec6936 languageName: node linkType: hard @@ -406,32 +419,32 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.23.0": - version: 7.23.0 - resolution: "@babel/traverse@npm:7.23.0" +"@babel/traverse@npm:^7.23.5": + version: 7.23.5 + resolution: "@babel/traverse@npm:7.23.5" dependencies: - "@babel/code-frame": ^7.22.13 - "@babel/generator": ^7.23.0 + "@babel/code-frame": ^7.23.5 + "@babel/generator": ^7.23.5 "@babel/helper-environment-visitor": ^7.22.20 "@babel/helper-function-name": ^7.23.0 "@babel/helper-hoist-variables": ^7.22.5 "@babel/helper-split-export-declaration": ^7.22.6 - "@babel/parser": ^7.23.0 - "@babel/types": ^7.23.0 + "@babel/parser": ^7.23.5 + "@babel/types": ^7.23.5 debug: ^4.1.0 globals: ^11.1.0 - checksum: 0b17fae53269e1af2cd3edba00892bc2975ad5df9eea7b84815dab07dfec2928c451066d51bc65b4be61d8499e77db7e547ce69ef2a7b0eca3f96269cb43a0b0 + checksum: 0558b05360850c3ad6384e85bd55092126a8d5f93e29a8e227dd58fa1f9e1a4c25fd337c07c7ae509f0983e7a2b1e761ffdcfaa77a1e1bedbc867058e1de5a7d languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": - version: 7.23.0 - resolution: "@babel/types@npm:7.23.0" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.5, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": + version: 7.23.5 + resolution: "@babel/types@npm:7.23.5" dependencies: - "@babel/helper-string-parser": ^7.22.5 + "@babel/helper-string-parser": ^7.23.4 "@babel/helper-validator-identifier": ^7.22.20 to-fast-properties: ^2.0.0 - checksum: 215fe04bd7feef79eeb4d33374b39909ce9cad1611c4135a4f7fdf41fe3280594105af6d7094354751514625ea92d0875aba355f53e86a92600f290e77b0e604 + checksum: 3d21774480a459ef13b41c2e32700d927af649e04b70c5d164814d8e04ab584af66a93330602c2925e1a6925c2b829cc153418a613a4e7d79d011be1f29ad4b2 languageName: node linkType: hard @@ -442,113 +455,6 @@ __metadata: languageName: node linkType: hard -"@bufbuild/buf-darwin-arm64@npm:1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf-darwin-arm64@npm:1.27.2" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - -"@bufbuild/buf-darwin-x64@npm:1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf-darwin-x64@npm:1.27.2" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@bufbuild/buf-linux-aarch64@npm:1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf-linux-aarch64@npm:1.27.2" - conditions: os=linux & cpu=arm64 - languageName: node - linkType: hard - -"@bufbuild/buf-linux-x64@npm:1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf-linux-x64@npm:1.27.2" - conditions: os=linux & cpu=x64 - languageName: node - linkType: hard - -"@bufbuild/buf-win32-arm64@npm:1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf-win32-arm64@npm:1.27.2" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - -"@bufbuild/buf-win32-x64@npm:1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf-win32-x64@npm:1.27.2" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - -"@bufbuild/buf@npm:^1.27.2": - version: 1.27.2 - resolution: "@bufbuild/buf@npm:1.27.2" - dependencies: - "@bufbuild/buf-darwin-arm64": 1.27.2 - "@bufbuild/buf-darwin-x64": 1.27.2 - "@bufbuild/buf-linux-aarch64": 1.27.2 - "@bufbuild/buf-linux-x64": 1.27.2 - "@bufbuild/buf-win32-arm64": 1.27.2 - "@bufbuild/buf-win32-x64": 1.27.2 - dependenciesMeta: - "@bufbuild/buf-darwin-arm64": - optional: true - "@bufbuild/buf-darwin-x64": - optional: true - "@bufbuild/buf-linux-aarch64": - optional: true - "@bufbuild/buf-linux-x64": - optional: true - "@bufbuild/buf-win32-arm64": - optional: true - "@bufbuild/buf-win32-x64": - optional: true - bin: - buf: bin/buf - protoc-gen-buf-breaking: bin/protoc-gen-buf-breaking - protoc-gen-buf-lint: bin/protoc-gen-buf-lint - checksum: f1eed0d0ca5b836f98e03d332a4e070988b69a7f51cc99c203aa583d82bd8012942e73941a0cde0be13f72dfe6f9aa29aaa5dc4e465599d1fd28e9a70e3f9b64 - languageName: node - linkType: hard - -"@bufbuild/protobuf@npm:1.4.1, @bufbuild/protobuf@npm:^1.4.1": - version: 1.4.1 - resolution: "@bufbuild/protobuf@npm:1.4.1" - checksum: c42c29dd70e580b19b32a94ab7cde9f86f2540554dd2fa7a8f9af9909534c3ad6c06980b16e5453530934f744076ab2870e2b0d31d3ed567b399b901ecf9fa51 - languageName: node - linkType: hard - -"@bufbuild/protoc-gen-es@npm:^1.4.1": - version: 1.4.1 - resolution: "@bufbuild/protoc-gen-es@npm:1.4.1" - dependencies: - "@bufbuild/protoplugin": 1.4.1 - peerDependencies: - "@bufbuild/protobuf": 1.4.1 - peerDependenciesMeta: - "@bufbuild/protobuf": - optional: true - bin: - protoc-gen-es: bin/protoc-gen-es - checksum: 712029aa3628bc5ebf3686565c22e409b43804f05774a3d4c4bbab4e14b164e927d79ce2695dd066c397651b72240ff67fd10b35437b06653498bdb3490cc4c9 - languageName: node - linkType: hard - -"@bufbuild/protoplugin@npm:1.4.1": - version: 1.4.1 - resolution: "@bufbuild/protoplugin@npm:1.4.1" - dependencies: - "@bufbuild/protobuf": 1.4.1 - "@typescript/vfs": ^1.4.0 - typescript: 4.5.2 - checksum: 5104ed8b261788b05cd60c275df2d8bf5d9dc5b1f1847bef7adc4a18b3821d4e8a3f10d06149106c888844f41e49a202d7dfb2db0bc3399271b6a9eb8b542d4a - languageName: node - linkType: hard - "@cspotcode/source-map-support@npm:^0.8.0": version: 0.8.1 resolution: "@cspotcode/source-map-support@npm:0.8.1" @@ -615,15 +521,15 @@ __metadata: linkType: hard "@eslint-community/regexpp@npm:^4.4.0": - version: 4.9.0 - resolution: "@eslint-community/regexpp@npm:4.9.0" - checksum: 82411f0643ab9bfd271bf12c8c75031266b13595d9371585ee3b0d680d918d4abf37c7e94d0da22e45817c9bbc59b79dfcbd672050dfb00af88fb89c80fd420f + version: 4.10.0 + resolution: "@eslint-community/regexpp@npm:4.10.0" + checksum: 2a6e345429ea8382aaaf3a61f865cae16ed44d31ca917910033c02dc00d505d939f10b81e079fa14d43b51499c640138e153b7e40743c4c094d9df97d4e56f7b languageName: node linkType: hard "@eslint/eslintrc@npm:^2.0.3": - version: 2.1.2 - resolution: "@eslint/eslintrc@npm:2.1.2" + version: 2.1.4 + resolution: "@eslint/eslintrc@npm:2.1.4" dependencies: ajv: ^6.12.4 debug: ^4.3.2 @@ -634,7 +540,7 @@ __metadata: js-yaml: ^4.1.0 minimatch: ^3.1.2 strip-json-comments: ^3.1.1 - checksum: bc742a1e3b361f06fedb4afb6bf32cbd27171292ef7924f61c62f2aed73048367bcc7ac68f98c06d4245cd3fabc43270f844e3c1699936d4734b3ac5398814a7 + checksum: 10957c7592b20ca0089262d8c2a8accbad14b4f6507e35416c32ee6b4dbf9cad67dfb77096bbd405405e9ada2b107f3797fe94362e1c55e0b09d6e90dd149127 languageName: node linkType: hard @@ -702,13 +608,13 @@ __metadata: linkType: hard "@humanwhocodes/config-array@npm:^0.11.8": - version: 0.11.11 - resolution: "@humanwhocodes/config-array@npm:0.11.11" + version: 0.11.13 + resolution: "@humanwhocodes/config-array@npm:0.11.13" dependencies: - "@humanwhocodes/object-schema": ^1.2.1 + "@humanwhocodes/object-schema": ^2.0.1 debug: ^4.1.1 minimatch: ^3.0.5 - checksum: db84507375ab77b8ffdd24f498a5b49ad6b64391d30dd2ac56885501d03964d29637e05b1ed5aefa09d57ac667e28028bc22d2da872bfcd619652fbdb5f4ca19 + checksum: f8ea57b0d7ed7f2d64cd3944654976829d9da91c04d9c860e18804729a33f7681f78166ef4c761850b8c324d362f7d53f14c5c44907a6b38b32c703ff85e4805 languageName: node linkType: hard @@ -719,10 +625,10 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^1.2.1": - version: 1.2.1 - resolution: "@humanwhocodes/object-schema@npm:1.2.1" - checksum: a824a1ec31591231e4bad5787641f59e9633827d0a2eaae131a288d33c9ef0290bd16fda8da6f7c0fcb014147865d12118df10db57f27f41e20da92369fcb3f1 +"@humanwhocodes/object-schema@npm:^2.0.1": + version: 2.0.1 + resolution: "@humanwhocodes/object-schema@npm:2.0.1" + checksum: 24929487b1ed48795d2f08346a0116cc5ee4634848bce64161fb947109352c562310fd159fc64dda0e8b853307f5794605191a9547f7341158559ca3c8262a45 languageName: node linkType: hard @@ -1046,12 +952,12 @@ __metadata: linkType: hard "@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.18, @jridgewell/trace-mapping@npm:^0.3.9": - version: 0.3.19 - resolution: "@jridgewell/trace-mapping@npm:0.3.19" + version: 0.3.20 + resolution: "@jridgewell/trace-mapping@npm:0.3.20" dependencies: "@jridgewell/resolve-uri": ^3.1.0 "@jridgewell/sourcemap-codec": ^1.4.14 - checksum: 956a6f0f6fec060fb48c6bf1f5ec2064e13cd38c8be3873877d4b92b4a27ba58289a34071752671262a3e3c202abcc3fa2aac64d8447b4b0fa1ba3c9047f1c20 + checksum: cd1a7353135f385909468ff0cf20bdd37e59f2ee49a13a966dedf921943e222082c583ade2b579ff6cd0d8faafcb5461f253e1bf2a9f48fec439211fdbe788f5 languageName: node linkType: hard @@ -1208,6 +1114,29 @@ __metadata: languageName: node linkType: hard +"@noita-together/nt-message@npm:^0.0.1": + version: 0.0.1 + resolution: "@noita-together/nt-message@npm:0.0.1" + dependencies: + long: ^5.2.3 + protobufjs: ^7.2.5 + checksum: 2438d2ceb10d8ab9a19d73183edc57b87692eb913acaed299a2c5a74b46d494292f52ae8eedba0a64402468bbc3016e4d42f16b40f7ed79079e26d862a645e1f + languageName: node + linkType: hard + +"@npmcli/agent@npm:^2.0.0": + version: 2.2.0 + resolution: "@npmcli/agent@npm:2.2.0" + dependencies: + agent-base: ^7.1.0 + http-proxy-agent: ^7.0.0 + https-proxy-agent: ^7.0.1 + lru-cache: ^10.0.1 + socks-proxy-agent: ^8.0.1 + checksum: 3b25312edbdfaa4089af28e2d423b6f19838b945e47765b0c8174c1395c79d43c3ad6d23cb364b43f59fd3acb02c93e3b493f72ddbe3dfea04c86843a7311fc4 + languageName: node + linkType: hard + "@npmcli/fs@npm:^1.0.0": version: 1.1.1 resolution: "@npmcli/fs@npm:1.1.1" @@ -1325,9 +1254,9 @@ __metadata: linkType: hard "@rushstack/eslint-patch@npm:^1.1.3": - version: 1.5.0 - resolution: "@rushstack/eslint-patch@npm:1.5.0" - checksum: f21595f92ade631b5c5b2426962db727f79a7224a2c60e462779310bf1f2b592a6f59d280fa936001f564a4c7d40997ba80b5a32081fee061309ef2c56b7f4b5 + version: 1.6.0 + resolution: "@rushstack/eslint-patch@npm:1.6.0" + checksum: 9fbc39e6070508139ac9ded5cc223780315a1e65ccb7612dd3dff07a0957fa9985a2b049bb5cae21d7eeed44ed315e2868b8755941500dc64ed9932c5760c80d languageName: node linkType: hard @@ -1461,53 +1390,53 @@ __metadata: linkType: hard "@types/babel__core@npm:^7.1.14": - version: 7.20.2 - resolution: "@types/babel__core@npm:7.20.2" + version: 7.20.5 + resolution: "@types/babel__core@npm:7.20.5" dependencies: "@babel/parser": ^7.20.7 "@babel/types": ^7.20.7 "@types/babel__generator": "*" "@types/babel__template": "*" "@types/babel__traverse": "*" - checksum: 564fbaa8ff1305d50807ada0ec227c3e7528bebb2f8fe6b2ed88db0735a31511a74ad18729679c43eeed8025ed29d408f53059289719e95ab1352ed559a100bd + checksum: a3226f7930b635ee7a5e72c8d51a357e799d19cbf9d445710fa39ab13804f79ab1a54b72ea7d8e504659c7dfc50675db974b526142c754398d7413aa4bc30845 languageName: node linkType: hard "@types/babel__generator@npm:*": - version: 7.6.5 - resolution: "@types/babel__generator@npm:7.6.5" + version: 7.6.7 + resolution: "@types/babel__generator@npm:7.6.7" dependencies: "@babel/types": ^7.0.0 - checksum: c7459f5025c4c800eaf58f4db3b24e9d736331fe7df40961d9bc49f31b46e2a3be83dc9276e8688f10a5ed752ae153ad5f1bdd45e2245bac95273730b9115ec2 + checksum: 03e96ea327a5238f00c38394a05cc01619b9f5f3ea57371419a1c25cf21676a6d327daf802435819f8cb3b8fa10e938a94bcbaf79a38c132068c813a1807ff93 languageName: node linkType: hard "@types/babel__template@npm:*": - version: 7.4.2 - resolution: "@types/babel__template@npm:7.4.2" + version: 7.4.4 + resolution: "@types/babel__template@npm:7.4.4" dependencies: "@babel/parser": ^7.1.0 "@babel/types": ^7.0.0 - checksum: 0fe977b45a3269336c77f3ae4641a6c48abf0fa35ab1a23fb571690786af02d6cec08255a43499b0b25c5633800f7ae882ace450cce905e3060fa9e6995047ae + checksum: d7a02d2a9b67e822694d8e6a7ddb8f2b71a1d6962dfd266554d2513eefbb205b33ca71a0d163b1caea3981ccf849211f9964d8bd0727124d18ace45aa6c9ae29 languageName: node linkType: hard "@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6": - version: 7.20.2 - resolution: "@types/babel__traverse@npm:7.20.2" + version: 7.20.4 + resolution: "@types/babel__traverse@npm:7.20.4" dependencies: "@babel/types": ^7.20.7 - checksum: 981340286479524436348d32373eaa3bf993c635cbf70307b4b69463eee83406a959ac4844f683911e0db8ab8d9f0025ab630dc7a8c170fee9ee74144c2a528f + checksum: f044ba80e00d07e46ee917c44f96cfc268fcf6d3871f7dfb8db8d3c6dab1508302f3e6bc508352a4a3ae627d2522e3fc500fa55907e0410a08e2e0902a8f3576 languageName: node linkType: hard "@types/body-parser@npm:*": - version: 1.19.3 - resolution: "@types/body-parser@npm:1.19.3" + version: 1.19.5 + resolution: "@types/body-parser@npm:1.19.5" dependencies: "@types/connect": "*" "@types/node": "*" - checksum: 932fa71437c275023799123680ef26ffd90efd37f51a1abe405e6ae6e5b4ad9511b7a3a8f5a12877ed1444a02b6286c0a137a98e914b3c61932390c83643cc2c + checksum: 1e251118c4b2f61029cc43b0dc028495f2d1957fe8ee49a707fb940f86a9bd2f9754230805598278fe99958b49e9b7e66eec8ef6a50ab5c1f6b93e1ba2aaba82 languageName: node linkType: hard @@ -1524,54 +1453,54 @@ __metadata: linkType: hard "@types/connect-history-api-fallback@npm:*": - version: 1.5.1 - resolution: "@types/connect-history-api-fallback@npm:1.5.1" + version: 1.5.4 + resolution: "@types/connect-history-api-fallback@npm:1.5.4" dependencies: "@types/express-serve-static-core": "*" "@types/node": "*" - checksum: bc5e46663300eba56eaf8ef242156256e2bdadc52bb7d6543f4b37f2945b6a810901c245711f8321fce7d94c7b588b308a86519f3e1f87a80eb87841d808dbdc + checksum: e1dee43b8570ffac02d2d47a2b4ba80d3ca0dd1840632dafb221da199e59dbe3778d3d7303c9e23c6b401f37c076935a5bc2aeae1c4e5feaefe1c371fe2073fd languageName: node linkType: hard "@types/connect@npm:*": - version: 3.4.36 - resolution: "@types/connect@npm:3.4.36" + version: 3.4.38 + resolution: "@types/connect@npm:3.4.38" dependencies: "@types/node": "*" - checksum: 4dee3d966fb527b98f0cbbdcf6977c9193fc3204ed539b7522fe5e64dfa45f9017bdda4ffb1f760062262fce7701a0ee1c2f6ce2e50af36c74d4e37052303172 + checksum: 7eb1bc5342a9604facd57598a6c62621e244822442976c443efb84ff745246b10d06e8b309b6e80130026a396f19bf6793b7cecd7380169f369dac3bfc46fb99 languageName: node linkType: hard "@types/debug@npm:^4.1.6": - version: 4.1.9 - resolution: "@types/debug@npm:4.1.9" + version: 4.1.12 + resolution: "@types/debug@npm:4.1.12" dependencies: "@types/ms": "*" - checksum: e88ee8b19d106f33eb0d3bc58bacff9702e98d821fd1ebd1de8942e6b97419e19a1ccf39370f1764a1dc66f79fd4619f3412e1be6eeb9f0b76412f5ffe4ead93 + checksum: 47876a852de8240bfdaf7481357af2b88cb660d30c72e73789abf00c499d6bc7cd5e52f41c915d1b9cd8ec9fef5b05688d7b7aef17f7f272c2d04679508d1053 languageName: node linkType: hard "@types/express-serve-static-core@npm:*, @types/express-serve-static-core@npm:^4.17.33": - version: 4.17.37 - resolution: "@types/express-serve-static-core@npm:4.17.37" + version: 4.17.41 + resolution: "@types/express-serve-static-core@npm:4.17.41" dependencies: "@types/node": "*" "@types/qs": "*" "@types/range-parser": "*" "@types/send": "*" - checksum: 2dab1380e45eb44e56ecc1be1c42c4b897364d2f2a08e03ca28fbcb1e6866e390217385435813711c046f9acd684424d088855dc32825d5cbecf72c60ecd037f + checksum: 12750f6511dd870bbaccfb8208ad1e79361cf197b147f62a3bedc19ec642f3a0f9926ace96705f4bc88ec2ae56f61f7ca8c2438e6b22f5540842b5569c28a121 languageName: node linkType: hard "@types/express@npm:*": - version: 4.17.18 - resolution: "@types/express@npm:4.17.18" + version: 4.17.21 + resolution: "@types/express@npm:4.17.21" dependencies: "@types/body-parser": "*" "@types/express-serve-static-core": ^4.17.33 "@types/qs": "*" "@types/serve-static": "*" - checksum: 8c178da4f0edff1f006d871fbdc3f849620986ff10bad252f3dfd45b57554e26aaa28c602285df028930d5216e257a06fbaf795070f8bb42f7d87e3b689cba50 + checksum: fb238298630370a7392c7abdc80f495ae6c716723e114705d7e3fb67e3850b3859bbfd29391463a3fb8c0b32051847935933d99e719c0478710f8098ee7091c5 languageName: node linkType: hard @@ -1595,66 +1524,66 @@ __metadata: linkType: hard "@types/graceful-fs@npm:^4.1.3": - version: 4.1.7 - resolution: "@types/graceful-fs@npm:4.1.7" + version: 4.1.9 + resolution: "@types/graceful-fs@npm:4.1.9" dependencies: "@types/node": "*" - checksum: 8b97e208f85c9efd02a6003a582c77646dd87be0af13aec9419a720771560a8a87a979eaca73ae193d7c73127f34d0a958403a9b5d6246e450289fd8c79adf09 + checksum: 79d746a8f053954bba36bd3d94a90c78de995d126289d656fb3271dd9f1229d33f678da04d10bce6be440494a5a73438e2e363e92802d16b8315b051036c5256 languageName: node linkType: hard "@types/http-cache-semantics@npm:*": - version: 4.0.2 - resolution: "@types/http-cache-semantics@npm:4.0.2" - checksum: 513429786a45d8124f93cc7ea1454b692008190ef743e9fec75a6a3c998309782d216f1e67d7d497ffece9c9212310ae05a8c56e8955492ee400eacdd7620e61 + version: 4.0.4 + resolution: "@types/http-cache-semantics@npm:4.0.4" + checksum: 7f4dd832e618bc1e271be49717d7b4066d77c2d4eed5b81198eb987e532bb3e1c7e02f45d77918185bad936f884b700c10cebe06305f50400f382ab75055f9e8 languageName: node linkType: hard "@types/http-errors@npm:*": - version: 2.0.2 - resolution: "@types/http-errors@npm:2.0.2" - checksum: d7f14045240ac4b563725130942b8e5c8080bfabc724c8ff3f166ea928ff7ae02c5194763bc8f6aaf21897e8a44049b0492493b9de3e058247e58fdfe0f86692 + version: 2.0.4 + resolution: "@types/http-errors@npm:2.0.4" + checksum: 1f3d7c3b32c7524811a45690881736b3ef741bf9849ae03d32ad1ab7062608454b150a4e7f1351f83d26a418b2d65af9bdc06198f1c079d75578282884c4e8e3 languageName: node linkType: hard "@types/http-proxy@npm:^1.17.5": - version: 1.17.12 - resolution: "@types/http-proxy@npm:1.17.12" + version: 1.17.14 + resolution: "@types/http-proxy@npm:1.17.14" dependencies: "@types/node": "*" - checksum: 89700c8e3c8f2c59c87c8db8e7a070c97a3b30a4a38223aca6b8b817e6f2ca931f5a500e16ecadc1ebcfed2676cc60e073d8f887e621d84420298728ec6fd000 + checksum: 491320bce3565bbb6c7d39d25b54bce626237cfb6b09e60ee7f77b56ae7c6cbad76f08d47fe01eaa706781124ee3dfad9bb737049254491efd98ed1f014c4e83 languageName: node linkType: hard "@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1": - version: 2.0.4 - resolution: "@types/istanbul-lib-coverage@npm:2.0.4" - checksum: a25d7589ee65c94d31464c16b72a9dc81dfa0bea9d3e105ae03882d616e2a0712a9c101a599ec482d297c3591e16336962878cb3eb1a0a62d5b76d277a890ce7 + version: 2.0.6 + resolution: "@types/istanbul-lib-coverage@npm:2.0.6" + checksum: 3feac423fd3e5449485afac999dcfcb3d44a37c830af898b689fadc65d26526460bedb889db278e0d4d815a670331796494d073a10ee6e3a6526301fe7415778 languageName: node linkType: hard "@types/istanbul-lib-report@npm:*": - version: 3.0.1 - resolution: "@types/istanbul-lib-report@npm:3.0.1" + version: 3.0.3 + resolution: "@types/istanbul-lib-report@npm:3.0.3" dependencies: "@types/istanbul-lib-coverage": "*" - checksum: cfc66de48577bb7b2636a6afded7056483693c3ea70916276518cdfaa0d4b51bf564ded88fb13e75716665c3af3d4d54e9c2de042c0219dcabad7e81c398688b + checksum: b91e9b60f865ff08cb35667a427b70f6c2c63e88105eadd29a112582942af47ed99c60610180aa8dcc22382fa405033f141c119c69b95db78c4c709fbadfeeb4 languageName: node linkType: hard "@types/istanbul-reports@npm:^3.0.0": - version: 3.0.2 - resolution: "@types/istanbul-reports@npm:3.0.2" + version: 3.0.4 + resolution: "@types/istanbul-reports@npm:3.0.4" dependencies: "@types/istanbul-lib-report": "*" - checksum: f52028d6fe4d28f0085dd7ed66ccfa6af632579e9a4091b90928ffef93d4dbec0bacd49e9caf1b939d05df9eafc5ac1f5939413cdf8ac59fbe4b29602d4d0939 + checksum: 93eb18835770b3431f68ae9ac1ca91741ab85f7606f310a34b3586b5a34450ec038c3eed7ab19266635499594de52ff73723a54a72a75b9f7d6a956f01edee95 languageName: node linkType: hard "@types/json-schema@npm:^7.0.5": - version: 7.0.13 - resolution: "@types/json-schema@npm:7.0.13" - checksum: 345df21a678fa72fb389f35f33de77833d09d4a142bb2bcb27c18690efa4cf70fc2876e43843cefb3fbdb9fcb12cd3e970a90936df30f53bbee899865ff605ab + version: 7.0.15 + resolution: "@types/json-schema@npm:7.0.15" + checksum: 97ed0cb44d4070aecea772b7b2e2ed971e10c81ec87dd4ecc160322ffa55ff330dace1793489540e3e318d90942064bb697cc0f8989391797792d919737b3b98 languageName: node linkType: hard @@ -1666,18 +1595,18 @@ __metadata: linkType: hard "@types/jsonwebtoken@npm:^9.0.2": - version: 9.0.3 - resolution: "@types/jsonwebtoken@npm:9.0.3" + version: 9.0.5 + resolution: "@types/jsonwebtoken@npm:9.0.5" dependencies: "@types/node": "*" - checksum: 2debf3adb19b827a023205234ec439b7258aee6ca9273472abe360738a84f08db78c6e853172e842ec303169ec0bb2df39701ab9a13b9e7868fe284ef9136567 + checksum: 07ab6fee602e5bd3fb5c6dfe4ec400769dc20f1d7fce901feecb4c3af5f5f08323b03ea55de3e49b1aa41e171a59008f6f4318738a735588c5268a63eba25337 languageName: node linkType: hard "@types/jwk-to-pem@npm:^2.0.1": - version: 2.0.1 - resolution: "@types/jwk-to-pem@npm:2.0.1" - checksum: 4fb0e1918c55bd2b794b2a497c14fd898028ae0b9f21f73b4400167358f4767df898d032875ca3655ea4e49234480cf9d21524374913664007e4e9011b2f28e8 + version: 2.0.3 + resolution: "@types/jwk-to-pem@npm:2.0.3" + checksum: c4808eda5713b72d59c579ea7048108081447f6609344b2f379c0f91955dd4991bf042742715b8401ce1af5ffdbed8ef85c96920f686956c93f075a99b5f702b languageName: node linkType: hard @@ -1690,24 +1619,17 @@ __metadata: languageName: node linkType: hard -"@types/long@npm:^4.0.1": - version: 4.0.2 - resolution: "@types/long@npm:4.0.2" - checksum: d16cde7240d834cf44ba1eaec49e78ae3180e724cd667052b194a372f350d024cba8dd3f37b0864931683dab09ca935d52f0c4c1687178af5ada9fc85b0635f4 - languageName: node - linkType: hard - "@types/mime@npm:*": - version: 3.0.2 - resolution: "@types/mime@npm:3.0.2" - checksum: 09cf74f6377d1b27f4a24512cb689ad30af59880ac473ed6f7bc5285ecde88bbe8fe500789340ad57810da9d6fe1704f86e8bfe147b9ea76d58925204a60b906 + version: 3.0.4 + resolution: "@types/mime@npm:3.0.4" + checksum: a6139c8e1f705ef2b064d072f6edc01f3c099023ad7c4fce2afc6c2bf0231888202adadbdb48643e8e20da0ce409481a49922e737eca52871b3dc08017455843 languageName: node linkType: hard "@types/mime@npm:^1": - version: 1.3.3 - resolution: "@types/mime@npm:1.3.3" - checksum: 7e27dede6517c1d604821a8a5412d6b7131decc8397ad4bac9216fc90dea26c9571426623ebeea2a9b89dbfb89ad98f7370a3c62cd2be8896c6e897333b117c9 + version: 1.3.5 + resolution: "@types/mime@npm:1.3.5" + checksum: e29a5f9c4776f5229d84e525b7cd7dd960b51c30a0fb9a028c0821790b82fca9f672dab56561e2acd9e8eed51d431bde52eafdfef30f643586c4162f1aecfc78 languageName: node linkType: hard @@ -1719,23 +1641,25 @@ __metadata: linkType: hard "@types/minimist@npm:^1.2.0": - version: 1.2.3 - resolution: "@types/minimist@npm:1.2.3" - checksum: 666ea4f8c39dcbdfbc3171fe6b3902157c845cc9cb8cee33c10deb706cda5e0cc80f98ace2d6d29f6774b0dc21180c96cd73c592a1cbefe04777247c7ba0e84b + version: 1.2.5 + resolution: "@types/minimist@npm:1.2.5" + checksum: 477047b606005058ab0263c4f58097136268007f320003c348794f74adedc3166ffc47c80ec3e94687787f2ab7f4e72c468223946e79892cf0fd9e25e9970a90 languageName: node linkType: hard "@types/ms@npm:*": - version: 0.7.32 - resolution: "@types/ms@npm:0.7.32" - checksum: 610744605c5924aa2657c8a62d307052af4f0e38e2aa015f154ef03391fabb4fd903f9c9baacb41f6e5798b8697e898463c351e5faf638738603ed29137b5254 + version: 0.7.34 + resolution: "@types/ms@npm:0.7.34" + checksum: f38d36e7b6edecd9badc9cf50474159e9da5fa6965a75186cceaf883278611b9df6669dc3a3cc122b7938d317b68a9e3d573d316fcb35d1be47ec9e468c6bd8a languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>=13.7.0": - version: 20.8.0 - resolution: "@types/node@npm:20.8.0" - checksum: ebad6342d54238a24bf980d7750117a5d67749c9b72cbb7a974a1e932c39034aa3a810d669e007e8a5071782a253aa069a187b614407a382403c9826e837c849 +"@types/node@npm:*": + version: 20.10.3 + resolution: "@types/node@npm:20.10.3" + dependencies: + undici-types: ~5.26.4 + checksum: 34a329494f0ea239af05eeb6f00f396963725b3eb9a2f79c5e6a6d37e823f2ab85e1079c2ee56723a37d8b89e7bbe2bd050c97144e5bb06dab93fd1cace65c97 languageName: node linkType: hard @@ -1746,6 +1670,15 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:>=13.7.0": + version: 20.10.4 + resolution: "@types/node@npm:20.10.4" + dependencies: + undici-types: ~5.26.4 + checksum: 054b296417e771ab524bea63cf3289559c6bdf290d45428f7cc68e9b00030ff7a0ece47b8c99a26b4f47a443919813bcf42beadff2f0bea7d8125fa541d92eb0 + languageName: node + linkType: hard + "@types/node@npm:^12.0.12": version: 12.20.55 resolution: "@types/node@npm:12.20.55" @@ -1754,47 +1687,47 @@ __metadata: linkType: hard "@types/normalize-package-data@npm:^2.4.0": - version: 2.4.2 - resolution: "@types/normalize-package-data@npm:2.4.2" - checksum: 2132e4054711e6118de967ae3a34f8c564e58d71fbcab678ec2c34c14659f638a86c35a0fd45237ea35a4a03079cf0a485e3f97736ffba5ed647bfb5da086b03 + version: 2.4.4 + resolution: "@types/normalize-package-data@npm:2.4.4" + checksum: 65dff72b543997b7be8b0265eca7ace0e34b75c3e5fee31de11179d08fa7124a7a5587265d53d0409532ecb7f7fba662c2012807963e1f9b059653ec2c83ee05 languageName: node linkType: hard "@types/plist@npm:^3.0.1": - version: 3.0.3 - resolution: "@types/plist@npm:3.0.3" + version: 3.0.5 + resolution: "@types/plist@npm:3.0.5" dependencies: "@types/node": "*" xmlbuilder: ">=11.0.1" - checksum: 3208f7ef600d7a8a223c1cae6a4ecf993bc4ba9fcb6910216d7a844f8d9f42a3423bc0f1200db1d748b9d2b1ceb207d254324d6db7d6bc9e0ede6339b205516e + checksum: 71417189c9bc0d0cb4595106cea7c7a8a7274f64d2e9c4dd558efd7993bcfdada58be6917189e3be7c455fe4e5557004658fd13bd12254eafed8c56e0868b59e languageName: node linkType: hard "@types/prop-types@npm:*": - version: 15.7.7 - resolution: "@types/prop-types@npm:15.7.7" - checksum: 023b95f7dd82e1c594f51dcb93ec4c382600cef6eeee29a2ac7b782b92c0882eab8da16d4cbd6e18b39e85ac8d94ebf4ca02c6e248ce5b5fb4b16dbab5d82861 + version: 15.7.11 + resolution: "@types/prop-types@npm:15.7.11" + checksum: 7519ff11d06fbf6b275029fe03fff9ec377b4cb6e864cac34d87d7146c7f5a7560fd164bdc1d2dbe00b60c43713631251af1fd3d34d46c69cd354602bc0c7c54 languageName: node linkType: hard "@types/q@npm:^1.5.1": - version: 1.5.6 - resolution: "@types/q@npm:1.5.6" - checksum: e60d191fd2b2b60666548b475b552f8ed219e4aaacf4ccd9555361474ae294e1f139603390b16ac688912e1438c3dab97fc6ef9b96dee749a96351bc9288fd41 + version: 1.5.8 + resolution: "@types/q@npm:1.5.8" + checksum: ff3b7f09c2746d068dee8d39501f09dbf71728c4facdc9cb0e266ea6615ad97e61267c0606ab3da88d11ef1609ce904cef45a9c56b2b397f742388d7f15bb740 languageName: node linkType: hard "@types/qs@npm:*": - version: 6.9.8 - resolution: "@types/qs@npm:6.9.8" - checksum: c28e07d00d07970e5134c6eed184a0189b8a4649e28fdf36d9117fe671c067a44820890de6bdecef18217647a95e9c6aebdaaae69f5fe4b0bec9345db885f77e + version: 6.9.10 + resolution: "@types/qs@npm:6.9.10" + checksum: 3e479ee056bd2b60894baa119d12ecd33f20a25231b836af04654e784c886f28a356477630430152a86fba253da65d7ecd18acffbc2a8877a336e75aa0272c67 languageName: node linkType: hard "@types/range-parser@npm:*": - version: 1.2.5 - resolution: "@types/range-parser@npm:1.2.5" - checksum: db9aaa04a02d019395a9a4346475669a2864a32a6477ad0fc457bd2ef39a167cabe742f55a8a3fa8bc90abac795b716c22b37348bc3e19313ebe6c9310815233 + version: 1.2.7 + resolution: "@types/range-parser@npm:1.2.7" + checksum: 95640233b689dfbd85b8c6ee268812a732cf36d5affead89e806fe30da9a430767af8ef2cd661024fd97e19d61f3dec75af2df5e80ec3bea000019ab7028629a languageName: node linkType: hard @@ -1808,13 +1741,13 @@ __metadata: linkType: hard "@types/react@npm:*": - version: 18.2.23 - resolution: "@types/react@npm:18.2.23" + version: 18.2.41 + resolution: "@types/react@npm:18.2.41" dependencies: "@types/prop-types": "*" "@types/scheduler": "*" csstype: ^3.0.2 - checksum: efb9d1ed1940c0e7ba08a21ffba5e266d8dbbb8fe618cfb97bc902dfc96385fdd8189e3f7f64b4aa13134f8e61947d60560deb23be151253c3a97b0d070897ca + checksum: fcf4c598e5adc1be1dafaa5977ff7698b5b69c6b1473ce524a28d57fa04af3f1a1aa1193cf284542451d98ae5338d26270f8c6e1f7afda5bbbe6c3a4ba40b1d8 languageName: node linkType: hard @@ -1830,60 +1763,60 @@ __metadata: linkType: hard "@types/responselike@npm:^1.0.0": - version: 1.0.1 - resolution: "@types/responselike@npm:1.0.1" + version: 1.0.3 + resolution: "@types/responselike@npm:1.0.3" dependencies: "@types/node": "*" - checksum: ae8c36c9354aaedfa462dab655aa17613529d545a418acc54ba0214145fc1d0454be2ae107031a1b2c24768f19f2af7e4096a85d1e604010becd0bec2355cb0e + checksum: 6ac4b35723429b11b117e813c7acc42c3af8b5554caaf1fc750404c1ae59f9b7376bc69b9e9e194a5a97357a597c2228b7173d317320f0360d617b6425212f58 languageName: node linkType: hard "@types/scheduler@npm:*": - version: 0.16.4 - resolution: "@types/scheduler@npm:0.16.4" - checksum: a57b0f10da1b021e6bd5eeef8a1917dd3b08a8715bd8029e2ded2096d8f091bb1bb1fef2d66e139588a983c4bfbad29b59e48011141725fa83c76e986e1257d7 + version: 0.16.8 + resolution: "@types/scheduler@npm:0.16.8" + checksum: 6c091b096daa490093bf30dd7947cd28e5b2cd612ec93448432b33f724b162587fed9309a0acc104d97b69b1d49a0f3fc755a62282054d62975d53d7fd13472d languageName: node linkType: hard "@types/semver@npm:^7.3.6": - version: 7.5.3 - resolution: "@types/semver@npm:7.5.3" - checksum: 349fdd1ab6c213bac5c991bac766bd07b8b12e63762462bb058740dcd2eb09c8193d068bb226f134661275f2022976214c0e727a4e5eb83ec1b131127c980d3e + version: 7.5.6 + resolution: "@types/semver@npm:7.5.6" + checksum: 563a0120ec0efcc326567db2ed920d5d98346f3638b6324ea6b50222b96f02a8add3c51a916b6897b51523aad8ac227d21d3dcf8913559f1bfc6c15b14d23037 languageName: node linkType: hard "@types/send@npm:*": - version: 0.17.2 - resolution: "@types/send@npm:0.17.2" + version: 0.17.4 + resolution: "@types/send@npm:0.17.4" dependencies: "@types/mime": ^1 "@types/node": "*" - checksum: 1ff5b1bd6a4f6fdc6402c7024781ff5dbd0e1f51a43c69529fb67c710943c7416d2f0d77c57c70fccf6616f25f838f32f960284526e408d4edae2e91e1fce95a + checksum: cf4db48251bbb03cd6452b4de6e8e09e2d75390a92fd798eca4a803df06444adc94ed050246c94c7ed46fb97be1f63607f0e1f13c3ce83d71788b3e08640e5e0 languageName: node linkType: hard "@types/serve-static@npm:*": - version: 1.15.3 - resolution: "@types/serve-static@npm:1.15.3" + version: 1.15.5 + resolution: "@types/serve-static@npm:1.15.5" dependencies: "@types/http-errors": "*" "@types/mime": "*" "@types/node": "*" - checksum: afa52252f0ba94cdb5391e80f23e17fd629bdf2a31be8876e2c4490312ed6b0570822dd7de7cea04c9002049e207709563568b7f4ee10bb9f456321db1e83e40 + checksum: 0ff4b3703cf20ba89c9f9e345bc38417860a88e85863c8d6fe274a543220ab7f5f647d307c60a71bb57dc9559f0890a661e8dc771a6ec5ef195d91c8afc4a893 languageName: node linkType: hard "@types/source-list-map@npm:*": - version: 0.1.3 - resolution: "@types/source-list-map@npm:0.1.3" - checksum: a001098786d75b82eef00a6e4f1f7bb73f9f2fdf3e97333f8b741183c3fbf92db91af8bcfc410c7e6c23c4497523a3210f3eee2077b1be93595206f9baf3d909 + version: 0.1.6 + resolution: "@types/source-list-map@npm:0.1.6" + checksum: 9cd294c121f1562062de5d241fe4d10780b1131b01c57434845fe50968e9dcf67ede444591c2b1ad6d3f9b6bc646ac02cc8f51a3577c795f9c64cf4573dcc6b1 languageName: node linkType: hard "@types/stack-utils@npm:^2.0.0": - version: 2.0.1 - resolution: "@types/stack-utils@npm:2.0.1" - checksum: 205fdbe3326b7046d7eaf5e494d8084f2659086a266f3f9cf00bccc549c8e36e407f88168ad4383c8b07099957ad669f75f2532ed4bc70be2b037330f7bae019 + version: 2.0.3 + resolution: "@types/stack-utils@npm:2.0.3" + checksum: 72576cc1522090fe497337c2b99d9838e320659ac57fa5560fcbdcbafcf5d0216c6b3a0a8a4ee4fdb3b1f5e3420aa4f6223ab57b82fef3578bec3206425c6cf5 languageName: node linkType: hard @@ -1902,25 +1835,25 @@ __metadata: linkType: hard "@types/tapable@npm:^1": - version: 1.0.9 - resolution: "@types/tapable@npm:1.0.9" - checksum: 12bc0a0a949334777bd58e6467447004b8f921b38e5d18d0f7fb84f7fe978c6e8df0b8ae2e4519ab10b1e038c24f3f89807c13ef5caa932095dbeace8d3938c6 + version: 1.0.12 + resolution: "@types/tapable@npm:1.0.12" + checksum: 5312fbc01e0135bd11b44cfea2bf29943807cd9675c10bbed13873ad0e73f656993fb88bb6ceaf05b12a55c570e6acc0267faf59e9c4d2f032fc833bafcf0597 languageName: node linkType: hard "@types/uglify-js@npm:*": - version: 3.17.2 - resolution: "@types/uglify-js@npm:3.17.2" + version: 3.17.4 + resolution: "@types/uglify-js@npm:3.17.4" dependencies: source-map: ^0.6.1 - checksum: 6cd3ae5befd2bf147c6a37e94b1454dc85d9102ec1a6ab242268f37fe84ba8373904db2ed56fa418233fd93366bde8e0bb4f49c137b92f165b45c957296ac28a + checksum: fe28aea9a24f4960ff46960fb3ca9d96a2e3c2f5abb15843d35fbda5425edc7bd541a1185415ae1f48fe37ca202603ebb96cd96040b03cc82721d80fdb863af4 languageName: node linkType: hard "@types/verror@npm:^1.10.3": - version: 1.10.7 - resolution: "@types/verror@npm:1.10.7" - checksum: 9f48f3aa5b71ce9470ab9c1e024ca11070def9683f6a88b44b3a49df88f524cf3b17179c4f4bdcbe1c75369504318eef0c7896c8c1dbb0a104e2541b041d5387 + version: 1.10.9 + resolution: "@types/verror@npm:1.10.9" + checksum: 4415df08299191ad8f1308dc610df51b2339932cb311f68c93972de78e7a6e5d20e1b0157da0694422d3fe84abd3bb82c6b5f4b0686df5963effbf73e19340d9 languageName: node linkType: hard @@ -1938,19 +1871,19 @@ __metadata: linkType: hard "@types/webpack-sources@npm:*": - version: 3.2.1 - resolution: "@types/webpack-sources@npm:3.2.1" + version: 3.2.3 + resolution: "@types/webpack-sources@npm:3.2.3" dependencies: "@types/node": "*" "@types/source-list-map": "*" source-map: ^0.7.3 - checksum: c347c91ac4d3244c3c47519a797d0e73569fbabadfd95ff4ece5b731a2790276b4b484c7038b4a561e025f508d292395f7a072db849120626d7f64040bd1127a + checksum: 7b557f242efaa10e4e3e18cc4171a0c98e22898570caefdd4f7b076fe8534b5abfac92c953c6604658dcb7218507f970230352511840fe9fdea31a9af3b9a906 languageName: node linkType: hard "@types/webpack@npm:^4, @types/webpack@npm:^4.0.0": - version: 4.41.34 - resolution: "@types/webpack@npm:4.41.34" + version: 4.41.38 + resolution: "@types/webpack@npm:4.41.38" dependencies: "@types/node": "*" "@types/tapable": ^1 @@ -1958,7 +1891,7 @@ __metadata: "@types/webpack-sources": "*" anymatch: ^3.0.0 source-map: ^0.6.0 - checksum: 10bdbd6cabafa58b7d4263bbf23134196c606034f84886ee9906c9951a62ffe9d52f0b74b084cd59ad0ef7521742e958ce9e0794fd7ed04e7ca6bc475455e04d + checksum: d3de65993ef3a7621f75548c2f6f509e8f87f586032238e999743d6067030655c67e38ec5f8b32e04fa5276c83bdfb7a761773bce0e6f28605da87e3fc388e3e languageName: node linkType: hard @@ -1972,18 +1905,18 @@ __metadata: linkType: hard "@types/yargs-parser@npm:*": - version: 21.0.1 - resolution: "@types/yargs-parser@npm:21.0.1" - checksum: 64e6316c2045e2d460c4fb79572f872f9d2f98fddc6d9d3949c71f0b6ad0ef8a2706cf49db26dfb02a9cb81433abb8f340f015e1d20a9692279abe9477b72c8e + version: 21.0.3 + resolution: "@types/yargs-parser@npm:21.0.3" + checksum: ef236c27f9432983e91432d974243e6c4cdae227cb673740320eff32d04d853eed59c92ca6f1142a335cfdc0e17cccafa62e95886a8154ca8891cc2dec4ee6fc languageName: node linkType: hard "@types/yargs@npm:^17.0.1, @types/yargs@npm:^17.0.8": - version: 17.0.26 - resolution: "@types/yargs@npm:17.0.26" + version: 17.0.32 + resolution: "@types/yargs@npm:17.0.32" dependencies: "@types/yargs-parser": "*" - checksum: 26611969674f4972080c3b22239d4579eaadc5287f95f7802f893c4a9bb292c141467bd70f1e66eb834486c63a23c4f10032618b3d2e7b1ddc05051d08db4078 + checksum: 4505bdebe8716ff383640c6e928f855b5d337cb3c68c81f7249fc6b983d0aa48de3eee26062b84f37e0d75a5797bc745e0c6e76f42f81771252a758c638f36ba languageName: node linkType: hard @@ -2049,15 +1982,6 @@ __metadata: languageName: node linkType: hard -"@typescript/vfs@npm:^1.4.0": - version: 1.5.0 - resolution: "@typescript/vfs@npm:1.5.0" - dependencies: - debug: ^4.1.1 - checksum: 09916e2fc567fe993fd81a34a48f72183b4c84d73a6bfdd8d4ca60ecd28de80fbb509b050f30513913b86270dc2abc759cffb4c0fd1068f7dd53104a1b0b7e27 - languageName: node - linkType: hard - "@vue/cli-overlay@npm:^4.5.19": version: 4.5.19 resolution: "@vue/cli-overlay@npm:4.5.19" @@ -2209,14 +2133,14 @@ __metadata: languageName: node linkType: hard -"@vue/compiler-sfc@npm:2.7.14": - version: 2.7.14 - resolution: "@vue/compiler-sfc@npm:2.7.14" +"@vue/compiler-sfc@npm:2.7.15": + version: 2.7.15 + resolution: "@vue/compiler-sfc@npm:2.7.15" dependencies: "@babel/parser": ^7.18.4 postcss: ^8.4.14 source-map: ^0.6.1 - checksum: 25e00abaecb311f1effbf539bc3e4fdeedb39d35f9c2947b2640187a047e6a7400e693fd7da1d3a98977b9078c5bf629ca47f8b9a59dc14a080c0a1e1dd06a49 + checksum: 9052c3f08d619021e9f8f0e9762fb1dc72afe9829909cd2045bdad82dacc7867344c457549ba31c94684442931cfb32db8a30c9df6ef4a62bef9346320ea7638 languageName: node linkType: hard @@ -2459,10 +2383,10 @@ __metadata: languageName: node linkType: hard -"abbrev@npm:^1.0.0": - version: 1.1.1 - resolution: "abbrev@npm:1.1.1" - checksum: a4a97ec07d7ea112c517036882b2ac22f3109b7b19077dc656316d07d308438aac28e4d9746dc4d84bf6b1e75b4a7b0a5f3cb30592419f128ca9a8cee3bcfa17 +"abbrev@npm:^2.0.0": + version: 2.0.0 + resolution: "abbrev@npm:2.0.0" + checksum: 0e994ad2aa6575f94670d8a2149afe94465de9cedaaaac364e7fb43a40c3691c980ff74899f682f4ca58fa96b4cbd7421a015d3a6defe43a442117d7821a2f36 languageName: node linkType: hard @@ -2493,9 +2417,9 @@ __metadata: linkType: hard "acorn-walk@npm:^8.1.1": - version: 8.2.0 - resolution: "acorn-walk@npm:8.2.0" - checksum: 1715e76c01dd7b2d4ca472f9c58968516a4899378a63ad5b6c2d668bba8da21a71976c14ec5f5b75f887b6317c4ae0b897ab141c831d741dc76024d8745f1ad1 + version: 8.3.0 + resolution: "acorn-walk@npm:8.3.0" + checksum: 15ea56ab6529135be05e7d018f935ca80a572355dd3f6d3cd717e36df3346e0f635a93ae781b1c7942607693e2e5f3ef81af5c6fc697bbadcc377ebda7b7f5f6 languageName: node linkType: hard @@ -2518,11 +2442,11 @@ __metadata: linkType: hard "acorn@npm:^8.4.1, acorn@npm:^8.5.0, acorn@npm:^8.9.0": - version: 8.10.0 - resolution: "acorn@npm:8.10.0" + version: 8.11.2 + resolution: "acorn@npm:8.11.2" bin: acorn: bin/acorn - checksum: 538ba38af0cc9e5ef983aee196c4b8b4d87c0c94532334fa7e065b2c8a1f85863467bb774231aae91613fcda5e68740c15d97b1967ae3394d20faddddd8af61d + checksum: 818450408684da89423e3daae24e4dc9b68692db8ab49ea4569c7c5abb7a3f23669438bf129cc81dfdada95e1c9b944ee1bfca2c57a05a4dc73834a612fbf6a7 languageName: node linkType: hard @@ -2533,7 +2457,7 @@ __metadata: languageName: node linkType: hard -"agent-base@npm:6, agent-base@npm:^6.0.2": +"agent-base@npm:6": version: 6.0.2 resolution: "agent-base@npm:6.0.2" dependencies: @@ -2542,12 +2466,12 @@ __metadata: languageName: node linkType: hard -"agentkeepalive@npm:^4.2.1": - version: 4.5.0 - resolution: "agentkeepalive@npm:4.5.0" +"agent-base@npm:^7.0.2, agent-base@npm:^7.1.0": + version: 7.1.0 + resolution: "agent-base@npm:7.1.0" dependencies: - humanize-ms: ^1.2.1 - checksum: 13278cd5b125e51eddd5079f04d6fe0914ac1b8b91c1f3db2c1822f99ac1a7457869068997784342fe455d59daaff22e14fb7b8c3da4e741896e7e31faf92481 + debug: ^4.3.4 + checksum: f7828f991470a0cc22cb579c86a18cbae83d8a3cbed39992ab34fc7217c4d126017f1c74d0ab66be87f71455318a8ea3e757d6a37881b8d0f2a2c6aa55e5418f languageName: node linkType: hard @@ -2780,13 +2704,6 @@ __metadata: languageName: node linkType: hard -"aproba@npm:^1.0.3 || ^2.0.0": - version: 2.0.0 - resolution: "aproba@npm:2.0.0" - checksum: 5615cadcfb45289eea63f8afd064ab656006361020e1735112e346593856f87435e02d8dcc7ff0d11928bc7d425f27bc7c2a84f6c0b35ab0ff659c814c138a24 - languageName: node - linkType: hard - "aproba@npm:^1.1.1": version: 1.2.0 resolution: "aproba@npm:1.2.0" @@ -2801,16 +2718,6 @@ __metadata: languageName: node linkType: hard -"are-we-there-yet@npm:^3.0.0": - version: 3.0.1 - resolution: "are-we-there-yet@npm:3.0.1" - dependencies: - delegates: ^1.0.0 - readable-stream: ^3.6.0 - checksum: 52590c24860fa7173bedeb69a4c05fb573473e860197f618b9a28432ee4379049336727ae3a1f9c4cb083114601c1140cee578376164d0e651217a9843f9fe83 - languageName: node - linkType: hard - "arg@npm:^4.1.0": version: 4.1.3 resolution: "arg@npm:4.1.3" @@ -2834,7 +2741,7 @@ __metadata: languageName: node linkType: hard -"aria-query@npm:^5.1.3": +"aria-query@npm:^5.3.0": version: 5.3.0 resolution: "aria-query@npm:5.3.0" dependencies: @@ -2888,7 +2795,7 @@ __metadata: languageName: node linkType: hard -"array-includes@npm:^3.1.6": +"array-includes@npm:^3.1.6, array-includes@npm:^3.1.7": version: 3.1.7 resolution: "array-includes@npm:3.1.7" dependencies: @@ -2931,7 +2838,7 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlastindex@npm:^1.2.2": +"array.prototype.findlastindex@npm:^1.2.3": version: 1.2.3 resolution: "array.prototype.findlastindex@npm:1.2.3" dependencies: @@ -2944,7 +2851,7 @@ __metadata: languageName: node linkType: hard -"array.prototype.flat@npm:^1.3.1": +"array.prototype.flat@npm:^1.3.1, array.prototype.flat@npm:^1.3.2": version: 1.3.2 resolution: "array.prototype.flat@npm:1.3.2" dependencies: @@ -2956,7 +2863,7 @@ __metadata: languageName: node linkType: hard -"array.prototype.flatmap@npm:^1.3.1": +"array.prototype.flatmap@npm:^1.3.1, array.prototype.flatmap@npm:^1.3.2": version: 1.3.2 resolution: "array.prototype.flatmap@npm:1.3.2" dependencies: @@ -3072,10 +2979,10 @@ __metadata: languageName: node linkType: hard -"ast-types-flow@npm:^0.0.7": - version: 0.0.7 - resolution: "ast-types-flow@npm:0.0.7" - checksum: a26dcc2182ffee111cad7c471759b0bda22d3b7ebacf27c348b22c55f16896b18ab0a4d03b85b4020dce7f3e634b8f00b593888f622915096ea1927fa51866c4 +"ast-types-flow@npm:^0.0.8": + version: 0.0.8 + resolution: "ast-types-flow@npm:0.0.8" + checksum: 0a64706609a179233aac23817837abab614f3548c252a2d3d79ea1e10c74aa28a0846e11f466cf72771b6ed8713abc094dcf8c40c3ec4207da163efa525a94a8 languageName: node linkType: hard @@ -3124,9 +3031,9 @@ __metadata: linkType: hard "async@npm:^3.2.3": - version: 3.2.4 - resolution: "async@npm:3.2.4" - checksum: 43d07459a4e1d09b84a20772414aa684ff4de085cbcaec6eea3c7a8f8150e8c62aa6cd4e699fe8ee93c3a5b324e777d34642531875a0817a35697522c1b02e89 + version: 3.2.5 + resolution: "async@npm:3.2.5" + checksum: 5ec77f1312301dee02d62140a6b1f7ee0edd2a0f983b6fd2b0849b969f245225b990b47b8243e7b9ad16451a53e7f68e753700385b706198ced888beedba3af4 languageName: node linkType: hard @@ -3200,25 +3107,25 @@ __metadata: languageName: node linkType: hard -"axe-core@npm:^4.6.2": - version: 4.8.2 - resolution: "axe-core@npm:4.8.2" - checksum: 8c19f507dabfcb8514e4280c7fc66e85143be303ddb57ec9f119338021228dc9b80560993938003837bda415fde7c07bba3a96560008ffa5f4145a248ed8f5fe +"axe-core@npm:=4.7.0": + version: 4.7.0 + resolution: "axe-core@npm:4.7.0" + checksum: f086bcab42be1761ba2b0b127dec350087f4c3a853bba8dd58f69d898cefaac31a1561da23146f6f3c07954c76171d1f2ce460e555e052d2b02cd79af628fa4a languageName: node linkType: hard "axios@npm:^1.4.0": - version: 1.5.1 - resolution: "axios@npm:1.5.1" + version: 1.6.2 + resolution: "axios@npm:1.6.2" dependencies: follow-redirects: ^1.15.0 form-data: ^4.0.0 proxy-from-env: ^1.1.0 - checksum: 4444f06601f4ede154183767863d2b8e472b4a6bfc5253597ed6d21899887e1fd0ee2b3de792ac4f8459fe2e359d2aa07c216e45fd8b9e4e0688a6ebf48a5a8d + checksum: 4a7429e2b784be0f2902ca2680964391eae7236faa3967715f30ea45464b98ae3f1c6f631303b13dfe721b17126b01f486c7644b9ef276bfc63112db9fd379f8 languageName: node linkType: hard -"axobject-query@npm:^3.1.1": +"axobject-query@npm:^3.2.1": version: 3.2.1 resolution: "axobject-query@npm:3.2.1" dependencies: @@ -3431,7 +3338,7 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:^5.0.0, bn.js@npm:^5.1.1": +"bn.js@npm:^5.0.0, bn.js@npm:^5.2.1": version: 5.2.1 resolution: "bn.js@npm:5.2.1" checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 @@ -3592,7 +3499,7 @@ __metadata: languageName: node linkType: hard -"browserify-rsa@npm:^4.0.0, browserify-rsa@npm:^4.0.1": +"browserify-rsa@npm:^4.0.0, browserify-rsa@npm:^4.1.0": version: 4.1.0 resolution: "browserify-rsa@npm:4.1.0" dependencies: @@ -3603,19 +3510,19 @@ __metadata: linkType: hard "browserify-sign@npm:^4.0.0": - version: 4.2.1 - resolution: "browserify-sign@npm:4.2.1" + version: 4.2.2 + resolution: "browserify-sign@npm:4.2.2" dependencies: - bn.js: ^5.1.1 - browserify-rsa: ^4.0.1 + bn.js: ^5.2.1 + browserify-rsa: ^4.1.0 create-hash: ^1.2.0 create-hmac: ^1.1.7 - elliptic: ^6.5.3 + elliptic: ^6.5.4 inherits: ^2.0.4 - parse-asn1: ^5.1.5 - readable-stream: ^3.6.0 - safe-buffer: ^5.2.0 - checksum: 0221f190e3f5b2d40183fa51621be7e838d9caa329fe1ba773406b7637855f37b30f5d83e52ff8f244ed12ffe6278dd9983638609ed88c841ce547e603855707 + parse-asn1: ^5.1.6 + readable-stream: ^3.6.2 + safe-buffer: ^5.2.1 + checksum: b622730c0fc183328c3a1c9fdaaaa5118821ed6822b266fa6b0375db7e20061ebec87301d61931d79b9da9a96ada1cab317fce3c68f233e5e93ed02dbb35544c languageName: node linkType: hard @@ -3629,16 +3536,25 @@ __metadata: linkType: hard "browserslist@npm:^4.0.0, browserslist@npm:^4.12.0, browserslist@npm:^4.21.9": - version: 4.22.1 - resolution: "browserslist@npm:4.22.1" + version: 4.22.2 + resolution: "browserslist@npm:4.22.2" dependencies: - caniuse-lite: ^1.0.30001541 - electron-to-chromium: ^1.4.535 - node-releases: ^2.0.13 + caniuse-lite: ^1.0.30001565 + electron-to-chromium: ^1.4.601 + node-releases: ^2.0.14 update-browserslist-db: ^1.0.13 bin: browserslist: cli.js - checksum: 7e6b10c53f7dd5d83fd2b95b00518889096382539fed6403829d447e05df4744088de46a571071afb447046abc3c66ad06fbc790e70234ec2517452e32ffd862 + checksum: 33ddfcd9145220099a7a1ac533cecfe5b7548ffeb29b313e1b57be6459000a1f8fa67e781cf4abee97268ac594d44134fcc4a6b2b4750ceddc9796e3a22076d9 + languageName: node + linkType: hard + +"bs-logger@npm:0.x": + version: 0.2.6 + resolution: "bs-logger@npm:0.2.6" + dependencies: + fast-json-stable-stringify: 2.x + checksum: d34bdaf68c64bd099ab97c3ea608c9ae7d3f5faa1178b3f3f345acd94e852e608b2d4f9103fb2e503f5e69780e98293df41691b84be909b41cf5045374d54606 languageName: node linkType: hard @@ -3886,23 +3802,23 @@ __metadata: languageName: node linkType: hard -"cacache@npm:^17.0.0": - version: 17.1.4 - resolution: "cacache@npm:17.1.4" +"cacache@npm:^18.0.0": + version: 18.0.1 + resolution: "cacache@npm:18.0.1" dependencies: "@npmcli/fs": ^3.1.0 fs-minipass: ^3.0.0 glob: ^10.2.2 - lru-cache: ^7.7.1 + lru-cache: ^10.0.1 minipass: ^7.0.3 - minipass-collect: ^1.0.2 + minipass-collect: ^2.0.1 minipass-flush: ^1.0.5 minipass-pipeline: ^1.2.4 p-map: ^4.0.0 ssri: ^10.0.0 tar: ^6.1.11 unique-filename: ^3.0.0 - checksum: b7751df756656954a51201335addced8f63fc53266fa56392c9f5ae83c8d27debffb4458ac2d168a744a4517ec3f2163af05c20097f93d17bdc2dc8a385e14a6 + checksum: 5a0b3b2ea451a0379814dc1d3c81af48c7c6db15cd8f7d72e028501ae0036a599a99bbac9687bfec307afb2760808d1c7708e9477c8c70d2b166e7d80b162a23 languageName: node linkType: hard @@ -3976,13 +3892,14 @@ __metadata: languageName: node linkType: hard -"call-bind@npm:^1.0.0, call-bind@npm:^1.0.2": - version: 1.0.2 - resolution: "call-bind@npm:1.0.2" +"call-bind@npm:^1.0.0, call-bind@npm:^1.0.2, call-bind@npm:^1.0.4, call-bind@npm:^1.0.5": + version: 1.0.5 + resolution: "call-bind@npm:1.0.5" dependencies: - function-bind: ^1.1.1 - get-intrinsic: ^1.0.2 - checksum: f8e31de9d19988a4b80f3e704788c4a2d6b6f3d17cfec4f57dc29ced450c53a49270dc66bf0fbd693329ee948dd33e6c90a329519aef17474a4d961e8d6426b0 + function-bind: ^1.1.2 + get-intrinsic: ^1.2.1 + set-function-length: ^1.1.1 + checksum: 449e83ecbd4ba48e7eaac5af26fea3b50f8f6072202c2dd7c5a6e7a6308f2421abe5e13a3bbd55221087f76320c5e09f25a8fdad1bab2b77c68ae74d92234ea5 languageName: node linkType: hard @@ -4061,10 +3978,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001541": - version: 1.0.30001541 - resolution: "caniuse-lite@npm:1.0.30001541" - checksum: 972f6c223cf4ea2c6821b817b419249285006bbf67ebe415fe58097cf07551e3bae898586736d92f7c40b9f0ac28638dbf760631c23742b780affd0254f44d17 +"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001565": + version: 1.0.30001565 + resolution: "caniuse-lite@npm:1.0.30001565" + checksum: 7621f358d0e1158557430a111ca5506008ae0b2c796039ef53aeebf4e2ba15e5241cb89def21ea3a633b6a609273085835b44a522165d871fa44067cdf29cccd languageName: node linkType: hard @@ -4232,9 +4149,9 @@ __metadata: linkType: hard "ci-info@npm:^3.2.0": - version: 3.8.0 - resolution: "ci-info@npm:3.8.0" - checksum: d0a4d3160497cae54294974a7246202244fff031b0a6ea20dd57b10ec510aa17399c41a1b0982142c105f3255aff2173e5c0dd7302ee1b2f28ba3debda375098 + version: 3.9.0 + resolution: "ci-info@npm:3.9.0" + checksum: 6b19dc9b2966d1f8c2041a838217299718f15d6c4b63ae36e4674edd2bee48f780e94761286a56aa59eb305a85fbea4ddffb7630ec063e7ec7e7e5ad42549a87 languageName: node linkType: hard @@ -4325,9 +4242,9 @@ __metadata: linkType: hard "cli-spinners@npm:^2.0.0": - version: 2.9.1 - resolution: "cli-spinners@npm:2.9.1" - checksum: 1780618be58309c469205bc315db697934bac68bce78cd5dfd46248e507a533172d623c7348ecfd904734f597ce0a4e5538684843d2cfb7af485d4466699940c + version: 2.9.2 + resolution: "cli-spinners@npm:2.9.2" + checksum: 1bd588289b28432e4676cb5d40505cfe3e53f2e4e10fbe05c8a710a154d6fe0ce7836844b00d6858f740f2ffe67cdc36e0fce9c7b6a8430e80e6388d5aa4956c languageName: node linkType: hard @@ -4503,15 +4420,6 @@ __metadata: languageName: node linkType: hard -"color-support@npm:^1.1.3": - version: 1.1.3 - resolution: "color-support@npm:1.1.3" - bin: - color-support: bin.js - checksum: 9b7356817670b9a13a26ca5af1c21615463b500783b739b7634a0c2047c16cef4b2865d7576875c31c3cddf9dd621fa19285e628f20198b233a5cfdda6d0793b - languageName: node - linkType: hard - "color@npm:^3.0.0": version: 3.2.1 resolution: "color@npm:3.2.1" @@ -4554,13 +4462,6 @@ __metadata: languageName: node linkType: hard -"commander@npm:4.0.1": - version: 4.0.1 - resolution: "commander@npm:4.0.1" - checksum: a8df9873c699abe5a6396164cf8ca9e2908246469cfff7178066c0d05575622ac43cebfb387c5531f800e336a812833728474fc248d4c4fb00b1df58434d5215 - languageName: node - linkType: hard - "commander@npm:^2.18.0, commander@npm:^2.20.0": version: 2.20.3 resolution: "commander@npm:2.20.3" @@ -4597,9 +4498,9 @@ __metadata: linkType: hard "component-emitter@npm:^1.2.1": - version: 1.3.0 - resolution: "component-emitter@npm:1.3.0" - checksum: b3c46de38ffd35c57d1c02488355be9f218e582aec72d72d1b8bbec95a3ac1b38c96cd6e03ff015577e68f550fbb361a3bfdbd9bb248be9390b7b3745691be6b + version: 1.3.1 + resolution: "component-emitter@npm:1.3.1" + checksum: 94550aa462c7bd5a61c1bc480e28554aa306066930152d1b1844a0dd3845d4e5db7e261ddec62ae184913b3e59b55a2ad84093b9d3596a8f17c341514d6c483d languageName: node linkType: hard @@ -4684,13 +4585,6 @@ __metadata: languageName: node linkType: hard -"console-control-strings@npm:^1.1.0": - version: 1.1.0 - resolution: "console-control-strings@npm:1.1.0" - checksum: 8755d76787f94e6cf79ce4666f0c5519906d7f5b02d4b884cf41e11dcd759ed69c57da0670afd9236d229a46e0f9cf519db0cd829c6dca820bb5a5c3def584ed - languageName: node - linkType: hard - "consolidate@npm:^0.15.1": version: 0.15.1 resolution: "consolidate@npm:0.15.1" @@ -4723,13 +4617,6 @@ __metadata: languageName: node linkType: hard -"convert-source-map@npm:^1.6.0": - version: 1.9.0 - resolution: "convert-source-map@npm:1.9.0" - checksum: dc55a1f28ddd0e9485ef13565f8f756b342f9a46c4ae18b843fe3c30c675d058d6a4823eff86d472f187b176f0adf51ea7b69ea38be34be4a63cbbf91b0593c8 - languageName: node - linkType: hard - "convert-source-map@npm:^2.0.0": version: 2.0.0 resolution: "convert-source-map@npm:2.0.0" @@ -5210,7 +5097,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.0.1, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:^4.0.1, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -5276,16 +5163,16 @@ __metadata: linkType: hard "deep-equal@npm:^1.0.1": - version: 1.1.1 - resolution: "deep-equal@npm:1.1.1" + version: 1.1.2 + resolution: "deep-equal@npm:1.1.2" dependencies: - is-arguments: ^1.0.4 - is-date-object: ^1.0.1 - is-regex: ^1.0.4 - object-is: ^1.0.1 + is-arguments: ^1.1.1 + is-date-object: ^1.0.5 + is-regex: ^1.1.4 + object-is: ^1.1.5 object-keys: ^1.1.1 - regexp.prototype.flags: ^1.2.0 - checksum: f92686f2c5bcdf714a75a5fa7a9e47cb374a8ec9307e717b8d1ce61f56a75aaebf5619c2a12b8087a705b5a2f60d0292c35f8b58cb1f72e3268a3a15cab9f78d + regexp.prototype.flags: ^1.5.1 + checksum: 2d50f27fff785fb272cdef038ee5365ee5a30ab1aab053976e6a6add44cc60abd99b38179a46a01ac52c5e54ebb220e8f1a3a1954da20678b79c46ef4d97c9db languageName: node linkType: hard @@ -5359,18 +5246,18 @@ __metadata: languageName: node linkType: hard -"define-data-property@npm:^1.0.1": - version: 1.1.0 - resolution: "define-data-property@npm:1.1.0" +"define-data-property@npm:^1.0.1, define-data-property@npm:^1.1.1": + version: 1.1.1 + resolution: "define-data-property@npm:1.1.1" dependencies: get-intrinsic: ^1.2.1 gopd: ^1.0.1 has-property-descriptors: ^1.0.0 - checksum: 7ad4ee84cca8ad427a4831f5693526804b62ce9dfd4efac77214e95a4382aed930072251d4075dc8dc9fc949a353ed51f19f5285a84a788ba9216cc51472a093 + checksum: a29855ad3f0630ea82e3c5012c812efa6ca3078d5c2aa8df06b5f597c1cde6f7254692df41945851d903e05a1668607b6d34e778f402b9ff9ffb38111f1a3f0d languageName: node linkType: hard -"define-properties@npm:^1.1.2, define-properties@npm:^1.1.3, define-properties@npm:^1.1.4, define-properties@npm:^1.2.0, define-properties@npm:^1.2.1": +"define-properties@npm:^1.1.2, define-properties@npm:^1.1.3, define-properties@npm:^1.2.0, define-properties@npm:^1.2.1": version: 1.2.1 resolution: "define-properties@npm:1.2.1" dependencies: @@ -5431,13 +5318,6 @@ __metadata: languageName: node linkType: hard -"delegates@npm:^1.0.0": - version: 1.0.0 - resolution: "delegates@npm:1.0.0" - checksum: a51744d9b53c164ba9c0492471a1a2ffa0b6727451bdc89e31627fdf4adda9d51277cfcbfb20f0a6f08ccb3c436f341df3e92631a3440226d93a8971724771fd - languageName: node - linkType: hard - "depd@npm:2.0.0": version: 2.0.0 resolution: "depd@npm:2.0.0" @@ -5923,10 +5803,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.4.535": - version: 1.4.537 - resolution: "electron-to-chromium@npm:1.4.537" - checksum: 6375d3261eb2af2d2ba0d777c8639d7d3a32cfaf42b447e3f13faa21b27b7db3007205da3ce38cd7d2fc01ad3074bbefba1c4c588ded704becd8d6f27887db4e +"electron-to-chromium@npm:^1.4.601": + version: 1.4.601 + resolution: "electron-to-chromium@npm:1.4.601" + checksum: 6c6d090afaab83f49fe413c2558a3294e7dfce6a9d8afda3496a80ba59377901279ea7903122558399d5f5dbbdcca8562e3e826b7b78e7ec0b561fcc02c45f73 languageName: node linkType: hard @@ -6114,24 +5994,24 @@ __metadata: linkType: hard "es-abstract@npm:^1.17.2, es-abstract@npm:^1.22.1": - version: 1.22.2 - resolution: "es-abstract@npm:1.22.2" + version: 1.22.3 + resolution: "es-abstract@npm:1.22.3" dependencies: array-buffer-byte-length: ^1.0.0 arraybuffer.prototype.slice: ^1.0.2 available-typed-arrays: ^1.0.5 - call-bind: ^1.0.2 + call-bind: ^1.0.5 es-set-tostringtag: ^2.0.1 es-to-primitive: ^1.2.1 function.prototype.name: ^1.1.6 - get-intrinsic: ^1.2.1 + get-intrinsic: ^1.2.2 get-symbol-description: ^1.0.0 globalthis: ^1.0.3 gopd: ^1.0.1 - has: ^1.0.3 has-property-descriptors: ^1.0.0 has-proto: ^1.0.1 has-symbols: ^1.0.3 + hasown: ^2.0.0 internal-slot: ^1.0.5 is-array-buffer: ^3.0.2 is-callable: ^1.2.7 @@ -6141,7 +6021,7 @@ __metadata: is-string: ^1.0.7 is-typed-array: ^1.1.12 is-weakref: ^1.0.2 - object-inspect: ^1.12.3 + object-inspect: ^1.13.1 object-keys: ^1.1.1 object.assign: ^4.1.4 regexp.prototype.flags: ^1.5.1 @@ -6155,8 +6035,8 @@ __metadata: typed-array-byte-offset: ^1.0.0 typed-array-length: ^1.0.4 unbox-primitive: ^1.0.2 - which-typed-array: ^1.1.11 - checksum: cc70e592d360d7d729859013dee7a610c6b27ed8630df0547c16b0d16d9fe6505a70ee14d1af08d970fdd132b3f88c9ca7815ce72c9011608abf8ab0e55fc515 + which-typed-array: ^1.1.13 + checksum: b1bdc962856836f6e72be10b58dc128282bdf33771c7a38ae90419d920fc3b36cc5d2b70a222ad8016e3fc322c367bf4e9e89fc2bc79b7e933c05b218e83d79a languageName: node linkType: hard @@ -6167,7 +6047,7 @@ __metadata: languageName: node linkType: hard -"es-iterator-helpers@npm:^1.0.12": +"es-iterator-helpers@npm:^1.0.12, es-iterator-helpers@npm:^1.0.15": version: 1.0.15 resolution: "es-iterator-helpers@npm:1.0.15" dependencies: @@ -6190,22 +6070,22 @@ __metadata: linkType: hard "es-set-tostringtag@npm:^2.0.1": - version: 2.0.1 - resolution: "es-set-tostringtag@npm:2.0.1" + version: 2.0.2 + resolution: "es-set-tostringtag@npm:2.0.2" dependencies: - get-intrinsic: ^1.1.3 - has: ^1.0.3 + get-intrinsic: ^1.2.2 has-tostringtag: ^1.0.0 - checksum: ec416a12948cefb4b2a5932e62093a7cf36ddc3efd58d6c58ca7ae7064475ace556434b869b0bbeb0c365f1032a8ccd577211101234b69837ad83ad204fff884 + hasown: ^2.0.0 + checksum: afcec3a4c9890ae14d7ec606204858441c801ff84f312538e1d1ccf1e5493c8b17bd672235df785f803756472cb4f2d49b87bde5237aef33411e74c22f194e07 languageName: node linkType: hard "es-shim-unscopables@npm:^1.0.0": - version: 1.0.0 - resolution: "es-shim-unscopables@npm:1.0.0" + version: 1.0.2 + resolution: "es-shim-unscopables@npm:1.0.2" dependencies: - has: ^1.0.3 - checksum: 83e95cadbb6ee44d3644dfad60dcad7929edbc42c85e66c3e99aefd68a3a5c5665f2686885cddb47dfeabfd77bd5ea5a7060f2092a955a729bbd8834f0d86fa1 + hasown: ^2.0.0 + checksum: 432bd527c62065da09ed1d37a3f8e623c423683285e6188108286f4a1e8e164a5bcbfbc0051557c7d14633cd2a41ce24c7048e6bbb66a985413fd32f1be72626 languageName: node linkType: hard @@ -6292,7 +6172,7 @@ __metadata: languageName: node linkType: hard -"eslint-import-resolver-node@npm:^0.3.6, eslint-import-resolver-node@npm:^0.3.7": +"eslint-import-resolver-node@npm:^0.3.6, eslint-import-resolver-node@npm:^0.3.9": version: 0.3.9 resolution: "eslint-import-resolver-node@npm:0.3.9" dependencies: @@ -6350,55 +6230,55 @@ __metadata: linkType: hard "eslint-plugin-import@npm:^2.26.0": - version: 2.28.1 - resolution: "eslint-plugin-import@npm:2.28.1" + version: 2.29.0 + resolution: "eslint-plugin-import@npm:2.29.0" dependencies: - array-includes: ^3.1.6 - array.prototype.findlastindex: ^1.2.2 - array.prototype.flat: ^1.3.1 - array.prototype.flatmap: ^1.3.1 + array-includes: ^3.1.7 + array.prototype.findlastindex: ^1.2.3 + array.prototype.flat: ^1.3.2 + array.prototype.flatmap: ^1.3.2 debug: ^3.2.7 doctrine: ^2.1.0 - eslint-import-resolver-node: ^0.3.7 + eslint-import-resolver-node: ^0.3.9 eslint-module-utils: ^2.8.0 - has: ^1.0.3 - is-core-module: ^2.13.0 + hasown: ^2.0.0 + is-core-module: ^2.13.1 is-glob: ^4.0.3 minimatch: ^3.1.2 - object.fromentries: ^2.0.6 - object.groupby: ^1.0.0 - object.values: ^1.1.6 + object.fromentries: ^2.0.7 + object.groupby: ^1.0.1 + object.values: ^1.1.7 semver: ^6.3.1 tsconfig-paths: ^3.14.2 peerDependencies: eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: e8ae6dd8f06d8adf685f9c1cfd46ac9e053e344a05c4090767e83b63a85c8421ada389807a39e73c643b9bff156715c122e89778169110ed68d6428e12607edf + checksum: 19ee541fb95eb7a796f3daebe42387b8d8262bbbcc4fd8a6e92f63a12035f3d2c6cb8bc0b6a70864fa14b1b50ed6b8e6eed5833e625e16cb6bb98b665beff269 languageName: node linkType: hard "eslint-plugin-jsx-a11y@npm:^6.5.1": - version: 6.7.1 - resolution: "eslint-plugin-jsx-a11y@npm:6.7.1" - dependencies: - "@babel/runtime": ^7.20.7 - aria-query: ^5.1.3 - array-includes: ^3.1.6 - array.prototype.flatmap: ^1.3.1 - ast-types-flow: ^0.0.7 - axe-core: ^4.6.2 - axobject-query: ^3.1.1 + version: 6.8.0 + resolution: "eslint-plugin-jsx-a11y@npm:6.8.0" + dependencies: + "@babel/runtime": ^7.23.2 + aria-query: ^5.3.0 + array-includes: ^3.1.7 + array.prototype.flatmap: ^1.3.2 + ast-types-flow: ^0.0.8 + axe-core: =4.7.0 + axobject-query: ^3.2.1 damerau-levenshtein: ^1.0.8 emoji-regex: ^9.2.2 - has: ^1.0.3 - jsx-ast-utils: ^3.3.3 - language-tags: =1.0.5 + es-iterator-helpers: ^1.0.15 + hasown: ^2.0.0 + jsx-ast-utils: ^3.3.5 + language-tags: ^1.0.9 minimatch: ^3.1.2 - object.entries: ^1.1.6 - object.fromentries: ^2.0.6 - semver: ^6.3.0 + object.entries: ^1.1.7 + object.fromentries: ^2.0.7 peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - checksum: f166dd5fe7257c7b891c6692e6a3ede6f237a14043ae3d97581daf318fc5833ddc6b4871aa34ab7656187430170500f6d806895747ea17ecdf8231a666c3c2fd + checksum: 3dec00e2a3089c4c61ac062e4196a70985fb7eda1fd67fe035363d92578debde92fdb8ed2e472321fc0d71e75f4a1e8888c6a3218c14dd93c8e8d19eb6f51554 languageName: node linkType: hard @@ -6972,19 +6852,19 @@ __metadata: linkType: hard "fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.1": - version: 3.3.1 - resolution: "fast-glob@npm:3.3.1" + version: 3.3.2 + resolution: "fast-glob@npm:3.3.2" dependencies: "@nodelib/fs.stat": ^2.0.2 "@nodelib/fs.walk": ^1.2.3 glob-parent: ^5.1.2 merge2: ^1.3.0 micromatch: ^4.0.4 - checksum: b6f3add6403e02cf3a798bfbb1183d0f6da2afd368f27456010c0bc1f9640aea308243d4cb2c0ab142f618276e65ecb8be1661d7c62a7b4e5ba774b9ce5432e5 + checksum: 900e4979f4dbc3313840078419245621259f349950411ca2fa445a2f9a1a6d98c3b5e7e0660c5ccd563aa61abe133a21765c6c0dec8e57da1ba71d8000b05ec1 languageName: node linkType: hard -"fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0": +"fast-json-stable-stringify@npm:2.x, fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0": version: 2.1.0 resolution: "fast-json-stable-stringify@npm:2.1.0" checksum: b191531e36c607977e5b1c47811158733c34ccb3bfde92c44798929e9b4154884378536d26ad90dfecd32e1ffc09c545d23535ad91b3161a27ddbb8ebe0cbecb @@ -7223,13 +7103,13 @@ __metadata: linkType: hard "flat-cache@npm:^3.0.4": - version: 3.1.0 - resolution: "flat-cache@npm:3.1.0" + version: 3.2.0 + resolution: "flat-cache@npm:3.2.0" dependencies: - flatted: ^3.2.7 + flatted: ^3.2.9 keyv: ^4.5.3 rimraf: ^3.0.2 - checksum: 99312601d5b90f44aef403f17f056dc09be7e437703740b166cdc9386d99e681f74e6b6e8bd7d010bda66904ea643c9527276b1b80308a2119741d94108a4d8f + checksum: e7e0f59801e288b54bee5cb9681e9ee21ee28ef309f886b312c9d08415b79fc0f24ac842f84356ce80f47d6a53de62197ce0e6e148dc42d5db005992e2a756ec languageName: node linkType: hard @@ -7240,7 +7120,7 @@ __metadata: languageName: node linkType: hard -"flatted@npm:^3.2.7": +"flatted@npm:^3.2.9": version: 3.2.9 resolution: "flatted@npm:3.2.9" checksum: f14167fbe26a9d20f6fca8d998e8f1f41df72c8e81f9f2c9d61ed2bea058248f5e1cbd05e7f88c0e5087a6a0b822a1e5e2b446e879f3cfbe0b07ba2d7f80b026 @@ -7387,13 +7267,13 @@ __metadata: linkType: hard "fs-extra@npm:^11.1.1": - version: 11.1.1 - resolution: "fs-extra@npm:11.1.1" + version: 11.2.0 + resolution: "fs-extra@npm:11.2.0" dependencies: graceful-fs: ^4.2.0 jsonfile: ^6.0.1 universalify: ^2.0.0 - checksum: fb883c68245b2d777fbc1f2082c9efb084eaa2bbf9fddaa366130d196c03608eebef7fb490541276429ee1ca99f317e2d73e96f5ca0999eefedf5a624ae1edfd + checksum: b12e42fa40ba47104202f57b8480dd098aa931c2724565e5e70779ab87605665594e76ee5fb00545f772ab9ace167fe06d2ab009c416dc8c842c5ae6df7aa7e8 languageName: node linkType: hard @@ -7508,10 +7388,10 @@ __metadata: languageName: node linkType: hard -"function-bind@npm:^1.1.1": - version: 1.1.1 - resolution: "function-bind@npm:1.1.1" - checksum: b32fbaebb3f8ec4969f033073b43f5c8befbb58f1a79e12f1d7490358150359ebd92f49e72ff0144f65f2c48ea2a605bff2d07965f548f6474fd8efd95bf361a +"function-bind@npm:^1.1.1, function-bind@npm:^1.1.2": + version: 1.1.2 + resolution: "function-bind@npm:1.1.2" + checksum: 2b0ff4ce708d99715ad14a6d1f894e2a83242e4a52ccfcefaee5e40050562e5f6dafc1adbb4ce2d4ab47279a45dc736ab91ea5042d843c3c092820dfe032efb1 languageName: node linkType: hard @@ -7541,22 +7421,6 @@ __metadata: languageName: node linkType: hard -"gauge@npm:^4.0.3": - version: 4.0.4 - resolution: "gauge@npm:4.0.4" - dependencies: - aproba: ^1.0.3 || ^2.0.0 - color-support: ^1.1.3 - console-control-strings: ^1.1.0 - has-unicode: ^2.0.1 - signal-exit: ^3.0.7 - string-width: ^4.2.3 - strip-ansi: ^6.0.1 - wide-align: ^1.1.5 - checksum: 788b6bfe52f1dd8e263cda800c26ac0ca2ff6de0b6eee2fe0d9e3abf15e149b651bd27bf5226be10e6e3edb5c4e5d5985a5a1a98137e7a892f75eff76467ad2d - languageName: node - linkType: hard - "gensync@npm:^1.0.0-beta.2": version: 1.0.0-beta.2 resolution: "gensync@npm:1.0.0-beta.2" @@ -7571,15 +7435,15 @@ __metadata: languageName: node linkType: hard -"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.0, get-intrinsic@npm:^1.2.1": - version: 1.2.1 - resolution: "get-intrinsic@npm:1.2.1" +"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.0, get-intrinsic@npm:^1.2.1, get-intrinsic@npm:^1.2.2": + version: 1.2.2 + resolution: "get-intrinsic@npm:1.2.2" dependencies: - function-bind: ^1.1.1 - has: ^1.0.3 + function-bind: ^1.1.2 has-proto: ^1.0.1 has-symbols: ^1.0.3 - checksum: 5b61d88552c24b0cf6fa2d1b3bc5459d7306f699de060d76442cce49a4721f52b8c560a33ab392cf5575b7810277d54ded9d4d39a1ea61855619ebc005aa7e5f + hasown: ^2.0.0 + checksum: 447ff0724df26829908dc033b62732359596fcf66027bc131ab37984afb33842d9cd458fd6cecadfe7eac22fd8a54b349799ed334cf2726025c921c7250e7417 languageName: node linkType: hard @@ -7713,7 +7577,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^10.2.2": +"glob@npm:^10.2.2, glob@npm:^10.3.10": version: 10.3.10 resolution: "glob@npm:10.3.10" dependencies: @@ -7807,11 +7671,11 @@ __metadata: linkType: hard "globals@npm:^13.19.0": - version: 13.22.0 - resolution: "globals@npm:13.22.0" + version: 13.23.0 + resolution: "globals@npm:13.23.0" dependencies: type-fest: ^0.20.2 - checksum: 64af5a09565341432770444085f7aa98b54331c3b69732e0de411003921fa2dd060222ae7b50bec0b98f29c4d00b4f49bf434049ba9f7c36ca4ee1773f60458c + checksum: 194c97cf8d1ef6ba59417234c2386549c4103b6e5f24b1ff1952de61a4753e5d2069435ba629de711a6480b1b1d114a98e2ab27f85e966d5a10c319c3bbd3dc3 languageName: node linkType: hard @@ -8014,11 +7878,11 @@ __metadata: linkType: hard "has-property-descriptors@npm:^1.0.0": - version: 1.0.0 - resolution: "has-property-descriptors@npm:1.0.0" + version: 1.0.1 + resolution: "has-property-descriptors@npm:1.0.1" dependencies: - get-intrinsic: ^1.1.1 - checksum: a6d3f0a266d0294d972e354782e872e2fe1b6495b321e6ef678c9b7a06a40408a6891817350c62e752adced73a94ac903c54734fee05bf65b1905ee1368194bb + get-intrinsic: ^1.2.2 + checksum: 2bcc6bf6ec6af375add4e4b4ef586e43674850a91ad4d46666d0b28ba8e1fd69e424c7677d24d60f69470ad0afaa2f3197f508b20b0bb7dd99a8ab77ffc4b7c4 languageName: node linkType: hard @@ -8045,13 +7909,6 @@ __metadata: languageName: node linkType: hard -"has-unicode@npm:^2.0.1": - version: 2.0.1 - resolution: "has-unicode@npm:2.0.1" - checksum: 1eab07a7436512db0be40a710b29b5dc21fa04880b7f63c9980b706683127e3c1b57cb80ea96d47991bdae2dfe479604f6a1ba410106ee1046a41d1bd0814400 - languageName: node - linkType: hard - "has-value@npm:^0.3.1": version: 0.3.1 resolution: "has-value@npm:0.3.1" @@ -8098,12 +7955,10 @@ __metadata: languageName: node linkType: hard -"has@npm:^1.0.0, has@npm:^1.0.3": - version: 1.0.3 - resolution: "has@npm:1.0.3" - dependencies: - function-bind: ^1.1.1 - checksum: b9ad53d53be4af90ce5d1c38331e712522417d017d5ef1ebd0507e07c2fbad8686fffb8e12ddecd4c39ca9b9b47431afbb975b8abf7f3c3b82c98e9aad052792 +"has@npm:^1.0.0": + version: 1.0.4 + resolution: "has@npm:1.0.4" + checksum: 8a11ba062e0627c9578a1d08285401e39f1d071a9692ddf793199070edb5648b21c774dd733e2a181edd635bf6862731885f476f4ccf67c998d7a5ff7cef2550 languageName: node linkType: hard @@ -8142,6 +7997,15 @@ __metadata: languageName: node linkType: hard +"hasown@npm:^2.0.0": + version: 2.0.0 + resolution: "hasown@npm:2.0.0" + dependencies: + function-bind: ^1.1.2 + checksum: 6151c75ca12554565098641c98a40f4cc86b85b0fd5b6fe92360967e4605a4f9610f7757260b4e8098dd1c2ce7f4b095f2006fe72a570e3b6d2d28de0298c176 + languageName: node + linkType: hard + "he@npm:1.2.x, he@npm:^1.2.0": version: 1.2.0 resolution: "he@npm:1.2.0" @@ -8342,6 +8206,16 @@ __metadata: languageName: node linkType: hard +"http-proxy-agent@npm:^7.0.0": + version: 7.0.0 + resolution: "http-proxy-agent@npm:7.0.0" + dependencies: + agent-base: ^7.1.0 + debug: ^4.3.4 + checksum: 48d4fac997917e15f45094852b63b62a46d0c8a4f0b9c6c23ca26d27b8df8d178bed88389e604745e748bd9a01f5023e25093722777f0593c3f052009ff438b6 + languageName: node + linkType: hard + "http-proxy-middleware@npm:0.19.1": version: 0.19.1 resolution: "http-proxy-middleware@npm:0.19.1" @@ -8416,6 +8290,16 @@ __metadata: languageName: node linkType: hard +"https-proxy-agent@npm:^7.0.1": + version: 7.0.2 + resolution: "https-proxy-agent@npm:7.0.2" + dependencies: + agent-base: ^7.0.2 + debug: 4 + checksum: 088969a0dd476ea7a0ed0a2cf1283013682b08f874c3bc6696c83fa061d2c157d29ef0ad3eb70a2046010bb7665573b2388d10fdcb3e410a66995e5248444292 + languageName: node + linkType: hard + "human-signals@npm:^1.1.1": version: 1.1.1 resolution: "human-signals@npm:1.1.1" @@ -8430,15 +8314,6 @@ __metadata: languageName: node linkType: hard -"humanize-ms@npm:^1.2.1": - version: 1.2.1 - resolution: "humanize-ms@npm:1.2.1" - dependencies: - ms: ^2.0.0 - checksum: 9c7a74a2827f9294c009266c82031030eae811ca87b0da3dceb8d6071b9bde22c9f3daef0469c3c533cc67a97d8a167cd9fc0389350e5f415f61a79b171ded16 - languageName: node - linkType: hard - "iconv-corefoundation@npm:^1.1.7": version: 1.1.7 resolution: "iconv-corefoundation@npm:1.1.7" @@ -8505,9 +8380,9 @@ __metadata: linkType: hard "ignore@npm:^5.2.0": - version: 5.2.4 - resolution: "ignore@npm:5.2.4" - checksum: 3d4c309c6006e2621659311783eaea7ebcd41fe4ca1d78c91c473157ad6666a57a2df790fe0d07a12300d9aac2888204d7be8d59f9aaf665b1c7fcdb432517ef + version: 5.3.0 + resolution: "ignore@npm:5.3.0" + checksum: 2736da6621f14ced652785cb05d86301a66d70248597537176612bd0c8630893564bd5f6421f8806b09e8472e75c591ef01672ab8059c07c6eb2c09cefe04bf9 languageName: node linkType: hard @@ -8685,13 +8560,13 @@ __metadata: linkType: hard "internal-slot@npm:^1.0.5": - version: 1.0.5 - resolution: "internal-slot@npm:1.0.5" + version: 1.0.6 + resolution: "internal-slot@npm:1.0.6" dependencies: - get-intrinsic: ^1.2.0 - has: ^1.0.3 + get-intrinsic: ^1.2.2 + hasown: ^2.0.0 side-channel: ^1.0.4 - checksum: 97e84046bf9e7574d0956bd98d7162313ce7057883b6db6c5c7b5e5f05688864b0978ba07610c726d15d66544ffe4b1050107d93f8a39ebc59b15d8b429b497a + checksum: 7872454888047553ce97a3fa1da7cc054a28ec5400a9c2e9f4dbe4fe7c1d041cb8e8301467614b80d4246d50377aad2fb58860b294ed74d6700cc346b6f89549 languageName: node linkType: hard @@ -8737,25 +8612,16 @@ __metadata: languageName: node linkType: hard -"is-accessor-descriptor@npm:^0.1.6": - version: 0.1.6 - resolution: "is-accessor-descriptor@npm:0.1.6" - dependencies: - kind-of: ^3.0.2 - checksum: 3d629a086a9585bc16a83a8e8a3416f400023301855cafb7ccc9a1d63145b7480f0ad28877dcc2cce09492c4ec1c39ef4c071996f24ee6ac626be4217b8ffc8a - languageName: node - linkType: hard - -"is-accessor-descriptor@npm:^1.0.0": - version: 1.0.0 - resolution: "is-accessor-descriptor@npm:1.0.0" +"is-accessor-descriptor@npm:^1.0.1": + version: 1.0.1 + resolution: "is-accessor-descriptor@npm:1.0.1" dependencies: - kind-of: ^6.0.0 - checksum: 8e475968e9b22f9849343c25854fa24492dbe8ba0dea1a818978f9f1b887339190b022c9300d08c47fe36f1b913d70ce8cbaca00369c55a56705fdb7caed37fe + hasown: ^2.0.0 + checksum: 8db44c02230a5e9b9dec390a343178791f073d5d5556a400527d2fd67a72d93b226abab2bd4123305c268f5dc22831bfdbd38430441fda82ea9e0b95ddc6b267 languageName: node linkType: hard -"is-arguments@npm:^1.0.4": +"is-arguments@npm:^1.1.1": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" dependencies: @@ -8897,30 +8763,21 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.11.0, is-core-module@npm:^2.13.0, is-core-module@npm:^2.9.0": - version: 2.13.0 - resolution: "is-core-module@npm:2.13.0" +"is-core-module@npm:^2.11.0, is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1": + version: 2.13.1 + resolution: "is-core-module@npm:2.13.1" dependencies: - has: ^1.0.3 - checksum: 053ab101fb390bfeb2333360fd131387bed54e476b26860dc7f5a700bbf34a0ec4454f7c8c4d43e8a0030957e4b3db6e16d35e1890ea6fb654c833095e040355 - languageName: node - linkType: hard - -"is-data-descriptor@npm:^0.1.4": - version: 0.1.4 - resolution: "is-data-descriptor@npm:0.1.4" - dependencies: - kind-of: ^3.0.2 - checksum: 5c622e078ba933a78338ae398a3d1fc5c23332b395312daf4f74bab4afb10d061cea74821add726cb4db8b946ba36217ee71a24fe71dd5bca4632edb7f6aad87 + hasown: ^2.0.0 + checksum: 256559ee8a9488af90e4bad16f5583c6d59e92f0742e9e8bb4331e758521ee86b810b93bae44f390766ffbc518a0488b18d9dab7da9a5ff997d499efc9403f7c languageName: node linkType: hard -"is-data-descriptor@npm:^1.0.0": - version: 1.0.0 - resolution: "is-data-descriptor@npm:1.0.0" +"is-data-descriptor@npm:^1.0.1": + version: 1.0.1 + resolution: "is-data-descriptor@npm:1.0.1" dependencies: - kind-of: ^6.0.0 - checksum: e705e6816241c013b05a65dc452244ee378d1c3e3842bd140beabe6e12c0d700ef23c91803f971aa7b091fb0573c5da8963af34a2b573337d87bc3e1f53a4e6d + hasown: ^2.0.0 + checksum: fc6da5be5177149d554c5612cc382e9549418ed72f2d3ed5a3e6511b03dd119ae1b2258320ca94931df50b7e9ee012894eccd4ca45bbcadf0d5b27da6faeb15a languageName: node linkType: hard @@ -8934,24 +8791,22 @@ __metadata: linkType: hard "is-descriptor@npm:^0.1.0": - version: 0.1.6 - resolution: "is-descriptor@npm:0.1.6" + version: 0.1.7 + resolution: "is-descriptor@npm:0.1.7" dependencies: - is-accessor-descriptor: ^0.1.6 - is-data-descriptor: ^0.1.4 - kind-of: ^5.0.0 - checksum: 0f780c1b46b465f71d970fd7754096ffdb7b69fd8797ca1f5069c163eaedcd6a20ec4a50af669075c9ebcfb5266d2e53c8b227e485eefdb0d1fee09aa1dd8ab6 + is-accessor-descriptor: ^1.0.1 + is-data-descriptor: ^1.0.1 + checksum: 45743109f0bb03f9fa989c34d31ece87cc15792649f147b896a7c4db2906a02fca685867619f4d312e024d7bbd53b945a47c6830d01f5e73efcc6388ac211963 languageName: node linkType: hard "is-descriptor@npm:^1.0.0, is-descriptor@npm:^1.0.2": - version: 1.0.2 - resolution: "is-descriptor@npm:1.0.2" + version: 1.0.3 + resolution: "is-descriptor@npm:1.0.3" dependencies: - is-accessor-descriptor: ^1.0.0 - is-data-descriptor: ^1.0.0 - kind-of: ^6.0.2 - checksum: 2ed623560bee035fb67b23e32ce885700bef8abe3fbf8c909907d86507b91a2c89a9d3a4d835a4d7334dd5db0237a0aeae9ca109c1e4ef1c0e7b577c0846ab5a + is-accessor-descriptor: ^1.0.1 + is-data-descriptor: ^1.0.1 + checksum: 316153b2fd86ac23b0a2f28b77744ae0a4e3c7a54fe52fa70b125d0971eb0a3bcfb562fa8e74537af0dad5bc405cc606726eb501fc748a241c10910deea89cfb languageName: node linkType: hard @@ -9176,7 +9031,7 @@ __metadata: languageName: node linkType: hard -"is-regex@npm:^1.0.4, is-regex@npm:^1.1.4": +"is-regex@npm:^1.1.4": version: 1.1.4 resolution: "is-regex@npm:1.1.4" dependencies: @@ -9350,6 +9205,13 @@ __metadata: languageName: node linkType: hard +"isexe@npm:^3.1.1": + version: 3.1.1 + resolution: "isexe@npm:3.1.1" + checksum: 7fe1931ee4e88eb5aa524cd3ceb8c882537bc3a81b02e438b240e47012eef49c86904d0f0e593ea7c3a9996d18d0f1f3be8d3eaa92333977b0c3a9d353d5563e + languageName: node + linkType: hard + "isobject@npm:^2.0.0": version: 2.1.0 resolution: "isobject@npm:2.1.0" @@ -9374,9 +9236,9 @@ __metadata: linkType: hard "istanbul-lib-coverage@npm:^3.0.0, istanbul-lib-coverage@npm:^3.2.0": - version: 3.2.0 - resolution: "istanbul-lib-coverage@npm:3.2.0" - checksum: a2a545033b9d56da04a8571ed05c8120bf10e9bce01cf8633a3a2b0d1d83dff4ac4fe78d6d5673c27fc29b7f21a41d75f83a36be09f82a61c367b56aa73c1ff9 + version: 3.2.2 + resolution: "istanbul-lib-coverage@npm:3.2.2" + checksum: 2367407a8d13982d8f7a859a35e7f8dd5d8f75aae4bb5484ede3a9ea1b426dc245aff28b976a2af48ee759fdd9be374ce2bd2669b644f31e76c5f46a2e29a831 languageName: node linkType: hard @@ -9394,15 +9256,15 @@ __metadata: linkType: hard "istanbul-lib-instrument@npm:^6.0.0": - version: 6.0.0 - resolution: "istanbul-lib-instrument@npm:6.0.0" + version: 6.0.1 + resolution: "istanbul-lib-instrument@npm:6.0.1" dependencies: "@babel/core": ^7.12.3 "@babel/parser": ^7.14.7 "@istanbuljs/schema": ^0.1.2 istanbul-lib-coverage: ^3.2.0 semver: ^7.5.4 - checksum: b9dc3723a769e65dbe1b912f935088ffc07cf393fa78a3ce79022c91aabb0ad01405ffd56083cdd822e514798e9daae3ea7bfe85633b094ecb335d28eb0a3f97 + checksum: fb23472e739cfc9b027cefcd7d551d5e7ca7ff2817ae5150fab99fe42786a7f7b56a29a2aa8309c37092e18297b8003f9c274f50ca4360949094d17fbac81472 languageName: node linkType: hard @@ -9849,7 +9711,7 @@ __metadata: languageName: node linkType: hard -"jest-util@npm:^29.7.0": +"jest-util@npm:^29.0.0, jest-util@npm:^29.7.0": version: 29.7.0 resolution: "jest-util@npm:29.7.0" dependencies: @@ -10128,7 +9990,7 @@ __metadata: languageName: node linkType: hard -"jsx-ast-utils@npm:^2.4.1 || ^3.0.0, jsx-ast-utils@npm:^3.3.3": +"jsx-ast-utils@npm:^2.4.1 || ^3.0.0, jsx-ast-utils@npm:^3.3.5": version: 3.3.5 resolution: "jsx-ast-utils@npm:3.3.5" dependencies: @@ -10205,11 +10067,11 @@ __metadata: linkType: hard "keyv@npm:^4.0.0, keyv@npm:^4.5.3": - version: 4.5.3 - resolution: "keyv@npm:4.5.3" + version: 4.5.4 + resolution: "keyv@npm:4.5.4" dependencies: json-buffer: 3.0.1 - checksum: 3ffb4d5b72b6b4b4af443bbb75ca2526b23c750fccb5ac4c267c6116888b4b65681015c2833cb20d26cf3e6e32dac6b988c77f7f022e1a571b7d90f1442257da + checksum: 74a24395b1c34bd44ad5cb2b49140d087553e170625240b86755a6604cd65aa16efdbdeae5cdb17ba1284a0fbb25ad06263755dbc71b8d8b06f74232ce3cdd72 languageName: node linkType: hard @@ -10238,14 +10100,7 @@ __metadata: languageName: node linkType: hard -"kind-of@npm:^5.0.0": - version: 5.1.0 - resolution: "kind-of@npm:5.1.0" - checksum: f2a0102ae0cf19c4a953397e552571bad2b588b53282874f25fca7236396e650e2db50d41f9f516bd402536e4df968dbb51b8e69e4d5d4a7173def78448f7bab - languageName: node - linkType: hard - -"kind-of@npm:^6.0.0, kind-of@npm:^6.0.2": +"kind-of@npm:^6.0.2": version: 6.0.3 resolution: "kind-of@npm:6.0.3" checksum: 3ab01e7b1d440b22fe4c31f23d8d38b4d9b91d9f291df683476576493d5dfd2e03848a8b05813dd0c3f0e835bc63f433007ddeceb71f05cb25c45ae1b19c6d3b @@ -10259,19 +10114,19 @@ __metadata: languageName: node linkType: hard -"language-subtag-registry@npm:~0.3.2": +"language-subtag-registry@npm:^0.3.20": version: 0.3.22 resolution: "language-subtag-registry@npm:0.3.22" checksum: 8ab70a7e0e055fe977ac16ea4c261faec7205ac43db5e806f72e5b59606939a3b972c4bd1e10e323b35d6ffa97c3e1c4c99f6553069dad2dfdd22020fa3eb56a languageName: node linkType: hard -"language-tags@npm:=1.0.5": - version: 1.0.5 - resolution: "language-tags@npm:1.0.5" +"language-tags@npm:^1.0.9": + version: 1.0.9 + resolution: "language-tags@npm:1.0.9" dependencies: - language-subtag-registry: ~0.3.2 - checksum: c81b5d8b9f5f9cfd06ee71ada6ddfe1cf83044dd5eeefcd1e420ad491944da8957688db4a0a9bc562df4afdc2783425cbbdfd152c01d93179cf86888903123cf + language-subtag-registry: ^0.3.20 + checksum: 57c530796dc7179914dee71bc94f3747fd694612480241d0453a063777265dfe3a951037f7acb48f456bf167d6eb419d4c00263745326b3ba1cdcf4657070e78 languageName: node linkType: hard @@ -10285,21 +10140,21 @@ __metadata: linkType: hard "launch-editor-middleware@npm:^2.2.1": - version: 2.6.0 - resolution: "launch-editor-middleware@npm:2.6.0" + version: 2.6.1 + resolution: "launch-editor-middleware@npm:2.6.1" dependencies: - launch-editor: ^2.6.0 - checksum: 6e39d216a64f4749cfe9c04d8a576daf0585dd7c1c17a82be5a45192b1ddcb2c565e252a8dbb10614ed9746063c5c69a487e2470e795f40567bd447d43be49d0 + launch-editor: ^2.6.1 + checksum: da9eaabe9d1fe9914a80a8608218e242557e9c1a851e9169f0fe608663c84dbec0db7a5279ac30e939106d3c159579e8849e7230a95d0aa93e8858d8f822281b languageName: node linkType: hard -"launch-editor@npm:^2.2.1, launch-editor@npm:^2.6.0": - version: 2.6.0 - resolution: "launch-editor@npm:2.6.0" +"launch-editor@npm:^2.2.1, launch-editor@npm:^2.6.1": + version: 2.6.1 + resolution: "launch-editor@npm:2.6.1" dependencies: picocolors: ^1.0.0 - shell-quote: ^1.7.3 - checksum: 48e4230643e8fdb5c14c11314706d58d9f3fbafe2606be3d6e37da1918ad8bfe39dd87875c726a1b59b9f4da99d87ec3e36d4c528464f0b820f9e91e5cb1c02d + shell-quote: ^1.8.1 + checksum: e06d193075ac09f7f8109f10cabe464a211bf7ed4cbe75f83348d6f67bf4d9f162f06e7a1ab3e1cd7fc250b5342c3b57080618aff2e646dc34248fe499227601 languageName: node linkType: hard @@ -10502,7 +10357,7 @@ __metadata: languageName: node linkType: hard -"lodash.memoize@npm:^4.1.2": +"lodash.memoize@npm:4.x, lodash.memoize@npm:^4.1.2": version: 4.1.2 resolution: "lodash.memoize@npm:4.1.2" checksum: 9ff3942feeccffa4f1fafa88d32f0d24fdc62fd15ded5a74a5f950ff5f0c6f61916157246744c620173dddf38d37095a92327d5fd3861e2063e736a5c207d089 @@ -10560,10 +10415,10 @@ __metadata: languageName: node linkType: hard -"long@npm:^4.0.0": - version: 4.0.0 - resolution: "long@npm:4.0.0" - checksum: 16afbe8f749c7c849db1f4de4e2e6a31ac6e617cead3bdc4f9605cb703cd20e1e9fc1a7baba674ffcca57d660a6e5b53a9e236d7b25a295d3855cca79cc06744 +"long@npm:^5.0.0, long@npm:^5.2.3": + version: 5.2.3 + resolution: "long@npm:5.2.3" + checksum: 885ede7c3de4facccbd2cacc6168bae3a02c3e836159ea4252c87b6e34d40af819824b2d4edce330bfb5c4d6e8ce3ec5864bdcf9473fa1f53a4f8225860e5897 languageName: node linkType: hard @@ -10599,6 +10454,13 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^10.0.1, lru-cache@npm:^9.1.1 || ^10.0.0": + version: 10.1.0 + resolution: "lru-cache@npm:10.1.0" + checksum: 58056d33e2500fbedce92f8c542e7c11b50d7d086578f14b7074d8c241422004af0718e08a6eaae8705cee09c77e39a61c1c79e9370ba689b7010c152e6a76ab + languageName: node + linkType: hard + "lru-cache@npm:^4.0.1, lru-cache@npm:^4.1.2": version: 4.1.5 resolution: "lru-cache@npm:4.1.5" @@ -10627,20 +10489,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^7.7.1": - version: 7.18.3 - resolution: "lru-cache@npm:7.18.3" - checksum: e550d772384709deea3f141af34b6d4fa392e2e418c1498c078de0ee63670f1f46f5eee746e8ef7e69e1c895af0d4224e62ee33e66a543a14763b0f2e74c1356 - languageName: node - linkType: hard - -"lru-cache@npm:^9.1.1 || ^10.0.0": - version: 10.0.1 - resolution: "lru-cache@npm:10.0.1" - checksum: 06f8d0e1ceabd76bb6f644a26dbb0b4c471b79c7b514c13c6856113879b3bf369eb7b497dad4ff2b7e2636db202412394865b33c332100876d838ad1372f0181 - languageName: node - linkType: hard - "make-dir@npm:^2.0.0": version: 2.1.0 resolution: "make-dir@npm:2.1.0" @@ -10669,33 +10517,29 @@ __metadata: languageName: node linkType: hard -"make-error@npm:^1.1.1": +"make-error@npm:1.x, make-error@npm:^1.1.1": version: 1.3.6 resolution: "make-error@npm:1.3.6" checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402 languageName: node linkType: hard -"make-fetch-happen@npm:^11.0.3": - version: 11.1.1 - resolution: "make-fetch-happen@npm:11.1.1" +"make-fetch-happen@npm:^13.0.0": + version: 13.0.0 + resolution: "make-fetch-happen@npm:13.0.0" dependencies: - agentkeepalive: ^4.2.1 - cacache: ^17.0.0 + "@npmcli/agent": ^2.0.0 + cacache: ^18.0.0 http-cache-semantics: ^4.1.1 - http-proxy-agent: ^5.0.0 - https-proxy-agent: ^5.0.0 is-lambda: ^1.0.1 - lru-cache: ^7.7.1 - minipass: ^5.0.0 + minipass: ^7.0.2 minipass-fetch: ^3.0.0 minipass-flush: ^1.0.5 minipass-pipeline: ^1.2.4 negotiator: ^0.6.3 promise-retry: ^2.0.1 - socks-proxy-agent: ^7.0.0 ssri: ^10.0.0 - checksum: 7268bf274a0f6dcf0343829489a4506603ff34bd0649c12058753900b0eb29191dce5dba12680719a5d0a983d3e57810f594a12f3c18494e93a1fbc6348a4540 + checksum: 7c7a6d381ce919dd83af398b66459a10e2fe8f4504f340d1d090d3fa3d1b0c93750220e1d898114c64467223504bd258612ba83efbc16f31b075cd56de24b4af languageName: node linkType: hard @@ -11007,6 +10851,15 @@ __metadata: languageName: node linkType: hard +"minipass-collect@npm:^2.0.1": + version: 2.0.1 + resolution: "minipass-collect@npm:2.0.1" + dependencies: + minipass: ^7.0.3 + checksum: b251bceea62090f67a6cced7a446a36f4cd61ee2d5cea9aee7fff79ba8030e416327a1c5aa2908dc22629d06214b46d88fdab8c51ac76bacbf5703851b5ad342 + languageName: node + linkType: hard + "minipass-fetch@npm:^3.0.0": version: 3.0.4 resolution: "minipass-fetch@npm:3.0.4" @@ -11065,7 +10918,7 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.3": +"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.2, minipass@npm:^7.0.3": version: 7.0.4 resolution: "minipass@npm:7.0.4" checksum: 87585e258b9488caf2e7acea242fd7856bbe9a2c84a7807643513a338d66f368c7d518200ad7b70a508664d408aa000517647b2930c259a8b1f9f0984f344a21 @@ -11174,7 +11027,7 @@ __metadata: languageName: node linkType: hard -"ms@npm:2.1.3, ms@npm:^2.0.0, ms@npm:^2.1.1": +"ms@npm:2.1.3, ms@npm:^2.1.1": version: 2.1.3 resolution: "ms@npm:2.1.3" checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d @@ -11227,12 +11080,12 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^3.3.4, nanoid@npm:^3.3.6": - version: 3.3.6 - resolution: "nanoid@npm:3.3.6" +"nanoid@npm:^3.3.4, nanoid@npm:^3.3.7": + version: 3.3.7 + resolution: "nanoid@npm:3.3.7" bin: nanoid: bin/nanoid.cjs - checksum: 7d0eda657002738aa5206107bd0580aead6c95c460ef1bdd0b1a87a9c7ae6277ac2e9b945306aaa5b32c6dcb7feaf462d0f552e7f8b5718abfc6ead5c94a71b3 + checksum: d36c427e530713e4ac6567d488b489a36582ef89da1d6d4e3b87eded11eb10d7042a877958c6f104929809b2ab0bafa17652b076cdf84324aa75b30b722204f2 languageName: node linkType: hard @@ -11358,11 +11211,11 @@ __metadata: linkType: hard "node-abi@npm:^3.3.0": - version: 3.47.0 - resolution: "node-abi@npm:3.47.0" + version: 3.51.0 + resolution: "node-abi@npm:3.51.0" dependencies: semver: ^7.3.5 - checksum: ff8498dcd4a805ebf0af27162023bb17e56cb973c955d6c411ebce0938b0827e34323ede846b635daff516d5cd2ea8d64f9d99f2d63f61d1d7469415323fa9a6 + checksum: 3fabc9d58f0478767157560249f79c4a9e95082b96700cd8cc470f517bd566dbab82a37c862db3f78d3187be9f19f5cd9822b6f1b7ac7a3254fa70c3e3b38a83 languageName: node linkType: hard @@ -11392,23 +11245,22 @@ __metadata: linkType: hard "node-gyp@npm:latest": - version: 9.4.0 - resolution: "node-gyp@npm:9.4.0" + version: 10.0.1 + resolution: "node-gyp@npm:10.0.1" dependencies: env-paths: ^2.2.0 exponential-backoff: ^3.1.1 - glob: ^7.1.4 + glob: ^10.3.10 graceful-fs: ^4.2.6 - make-fetch-happen: ^11.0.3 - nopt: ^6.0.0 - npmlog: ^6.0.0 - rimraf: ^3.0.2 + make-fetch-happen: ^13.0.0 + nopt: ^7.0.0 + proc-log: ^3.0.0 semver: ^7.3.5 tar: ^6.1.2 - which: ^2.0.2 + which: ^4.0.0 bin: node-gyp: bin/node-gyp.js - checksum: 78b404e2e0639d64e145845f7f5a3cb20c0520cdaf6dda2f6e025e9b644077202ea7de1232396ba5bde3fee84cdc79604feebe6ba3ec84d464c85d407bb5da99 + checksum: 60a74e66d364903ce02049966303a57f898521d139860ac82744a5fdd9f7b7b3b61f75f284f3bfe6e6add3b8f1871ce305a1d41f775c7482de837b50c792223f languageName: node linkType: hard @@ -11450,10 +11302,10 @@ __metadata: languageName: node linkType: hard -"node-releases@npm:^2.0.13": - version: 2.0.13 - resolution: "node-releases@npm:2.0.13" - checksum: 17ec8f315dba62710cae71a8dad3cd0288ba943d2ece43504b3b1aa8625bf138637798ab470b1d9035b0545996f63000a8a926e0f6d35d0996424f8b6d36dda3 +"node-releases@npm:^2.0.14": + version: 2.0.14 + resolution: "node-releases@npm:2.0.14" + checksum: 59443a2f77acac854c42d321bf1b43dea0aef55cd544c6a686e9816a697300458d4e82239e2d794ea05f7bbbc8a94500332e2d3ac3f11f52e4b16cbe638b3c41 languageName: node linkType: hard @@ -11461,26 +11313,22 @@ __metadata: version: 0.0.0-use.local resolution: "noita-together@workspace:." dependencies: - "@bufbuild/buf": ^1.27.2 - "@bufbuild/protobuf": ^1.4.1 - "@bufbuild/protoc-gen-es": ^1.4.1 + "@noita-together/nt-message": ^0.0.1 axios: ^1.4.0 - pbjs: ^0.0.14 - prettier: ^2.8.8 - protobufjs: ^6.10.2 + prettier: latest ts-node: ^10.9.1 ts-node-dev: ^2.0.0 languageName: unknown linkType: soft -"nopt@npm:^6.0.0": - version: 6.0.0 - resolution: "nopt@npm:6.0.0" +"nopt@npm:^7.0.0": + version: 7.2.0 + resolution: "nopt@npm:7.2.0" dependencies: - abbrev: ^1.0.0 + abbrev: ^2.0.0 bin: nopt: bin/nopt.js - checksum: 82149371f8be0c4b9ec2f863cc6509a7fd0fa729929c009f3a58e4eb0c9e4cae9920e8f1f8eb46e7d032fec8fb01bede7f0f41a67eb3553b7b8e14fa53de1dac + checksum: a9c0f57fb8cb9cc82ae47192ca2b7ef00e199b9480eed202482c962d61b59a7fbe7541920b2a5839a97b42ee39e288c0aed770e38057a608d7f579389dfde410 languageName: node linkType: hard @@ -11587,18 +11435,6 @@ __metadata: languageName: node linkType: hard -"npmlog@npm:^6.0.0": - version: 6.0.2 - resolution: "npmlog@npm:6.0.2" - dependencies: - are-we-there-yet: ^3.0.0 - console-control-strings: ^1.1.0 - gauge: ^4.0.3 - set-blocking: ^2.0.0 - checksum: ae238cd264a1c3f22091cdd9e2b106f684297d3c184f1146984ecbe18aaa86343953f26b9520dedd1b1372bc0316905b736c1932d778dbeb1fcf5a1001390e2a - languageName: node - linkType: hard - "nt-app@workspace:nt-app": version: 0.0.0-use.local resolution: "nt-app@workspace:nt-app" @@ -11617,7 +11453,6 @@ __metadata: got: ^11.8.1 jsonwebtoken: ^9.0.2 keytar: ^7.2.0 - protobufjs: ^6.11.4 uuid: ^9.0.0 validator: ^13.5.1 vue: ^2.6.11 @@ -11634,6 +11469,7 @@ __metadata: version: 0.0.0-use.local resolution: "nt-web-app@workspace:nt-web-app" dependencies: + "@babel/plugin-transform-modules-commonjs": ^7.23.3 "@popperjs/core": ^2.6.0 "@types/jsonwebtoken": ^9.0.2 "@types/jwk-to-pem": ^2.0.1 @@ -11641,6 +11477,7 @@ __metadata: "@types/react": 18.2.8 "@types/react-dom": 18.2.4 "@types/ws": 8.5.5 + babel-jest: ^29.7.0 dotenv: ^16.3.1 eslint: 8.41.0 eslint-config-next: 13.4.4 @@ -11650,11 +11487,11 @@ __metadata: keytar: ^7.9.0 next: 13.4.4 pg: ^8.11.3 - protobufjs: ^6.11.4 react: 18.2.0 react-dom: 18.2.0 reflect-metadata: ^0.1.13 shared-lib: 1.0.0 + ts-jest: ^29.1.1 typeorm: ^0.3.17 typescript: 5.1.3 uuid: ^9.0.0 @@ -11720,14 +11557,14 @@ __metadata: languageName: node linkType: hard -"object-inspect@npm:^1.12.3, object-inspect@npm:^1.9.0": - version: 1.12.3 - resolution: "object-inspect@npm:1.12.3" - checksum: dabfd824d97a5f407e6d5d24810d888859f6be394d8b733a77442b277e0808860555176719c5905e765e3743a7cada6b8b0a3b85e5331c530fd418cc8ae991db +"object-inspect@npm:^1.13.1, object-inspect@npm:^1.9.0": + version: 1.13.1 + resolution: "object-inspect@npm:1.13.1" + checksum: 7d9fa9221de3311dcb5c7c307ee5dc011cdd31dc43624b7c184b3840514e118e05ef0002be5388304c416c0eb592feb46e983db12577fc47e47d5752fbbfb61f languageName: node linkType: hard -"object-is@npm:^1.0.1": +"object-is@npm:^1.1.5": version: 1.1.5 resolution: "object-is@npm:1.1.5" dependencies: @@ -11754,18 +11591,18 @@ __metadata: linkType: hard "object.assign@npm:^4.1.4": - version: 4.1.4 - resolution: "object.assign@npm:4.1.4" + version: 4.1.5 + resolution: "object.assign@npm:4.1.5" dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 + call-bind: ^1.0.5 + define-properties: ^1.2.1 has-symbols: ^1.0.3 object-keys: ^1.1.1 - checksum: 76cab513a5999acbfe0ff355f15a6a125e71805fcf53de4e9d4e082e1989bdb81d1e329291e1e4e0ae7719f0e4ef80e88fb2d367ae60500d79d25a6224ac8864 + checksum: f9aeac0541661370a1fc86e6a8065eb1668d3e771f7dbb33ee54578201336c057b21ee61207a186dd42db0c62201d91aac703d20d12a79fc79c353eed44d4e25 languageName: node linkType: hard -"object.entries@npm:^1.1.6": +"object.entries@npm:^1.1.6, object.entries@npm:^1.1.7": version: 1.1.7 resolution: "object.entries@npm:1.1.7" dependencies: @@ -11776,7 +11613,7 @@ __metadata: languageName: node linkType: hard -"object.fromentries@npm:^2.0.6": +"object.fromentries@npm:^2.0.6, object.fromentries@npm:^2.0.7": version: 2.0.7 resolution: "object.fromentries@npm:2.0.7" dependencies: @@ -11800,7 +11637,7 @@ __metadata: languageName: node linkType: hard -"object.groupby@npm:^1.0.0": +"object.groupby@npm:^1.0.1": version: 1.0.1 resolution: "object.groupby@npm:1.0.1" dependencies: @@ -11831,7 +11668,7 @@ __metadata: languageName: node linkType: hard -"object.values@npm:^1.1.0, object.values@npm:^1.1.6": +"object.values@npm:^1.1.0, object.values@npm:^1.1.6, object.values@npm:^1.1.7": version: 1.1.7 resolution: "object.values@npm:1.1.7" dependencies: @@ -12135,7 +11972,7 @@ __metadata: languageName: node linkType: hard -"parse-asn1@npm:^5.0.0, parse-asn1@npm:^5.1.5": +"parse-asn1@npm:^5.0.0, parse-asn1@npm:^5.1.6": version: 5.1.6 resolution: "parse-asn1@npm:5.1.6" dependencies: @@ -12312,18 +12149,6 @@ __metadata: languageName: node linkType: hard -"pbjs@npm:^0.0.14": - version: 0.0.14 - resolution: "pbjs@npm:0.0.14" - dependencies: - commander: 4.0.1 - protocol-buffers-schema: 3.1.0 - bin: - pbjs: ./cli.js - checksum: 55f9463bd5ad9704202acf6ebb794d4f7968731ef2515a708a69429e8a6182f7a4068708a6867c2238fdf655193cc54f744978e5280ca4f23d54398a5c856744 - languageName: node - linkType: hard - "pbkdf2@npm:^3.0.3": version: 3.1.2 resolution: "pbkdf2@npm:3.1.2" @@ -12984,13 +12809,13 @@ __metadata: linkType: hard "postcss@npm:^8.4.14": - version: 8.4.31 - resolution: "postcss@npm:8.4.31" + version: 8.4.32 + resolution: "postcss@npm:8.4.32" dependencies: - nanoid: ^3.3.6 + nanoid: ^3.3.7 picocolors: ^1.0.0 source-map-js: ^1.0.2 - checksum: 1d8611341b073143ad90486fcdfeab49edd243377b1f51834dc4f6d028e82ce5190e4f11bb2633276864503654fb7cab28e67abdc0fbf9d1f88cad4a0ff0beea + checksum: 220d9d0bf5d65be7ed31006c523bfb11619461d296245c1231831f90150aeb4a31eab9983ac9c5c89759a3ca8b60b3e0d098574964e1691673c3ce5c494305ae languageName: node linkType: hard @@ -13074,7 +12899,16 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^1.18.2 || ^2.0.0, prettier@npm:^2.8.8": +prettier@latest: + version: 3.1.0 + resolution: "prettier@npm:3.1.0" + bin: + prettier: bin/prettier.cjs + checksum: 44b556bd56f74d7410974fbb2418bb4e53a894d3e7b42f6f87779f69f27a6c272fa7fc27cec0118cd11730ef3246478052e002cbd87e9a253f9cd04a56aa7d9b + languageName: node + linkType: hard + +"prettier@npm:^1.18.2 || ^2.0.0": version: 2.8.8 resolution: "prettier@npm:2.8.8" bin: @@ -13104,6 +12938,13 @@ __metadata: languageName: node linkType: hard +"proc-log@npm:^3.0.0": + version: 3.0.0 + resolution: "proc-log@npm:3.0.0" + checksum: 02b64e1b3919e63df06f836b98d3af002b5cd92655cab18b5746e37374bfb73e03b84fe305454614b34c25b485cc687a9eebdccf0242cda8fda2475dd2c97e02 + languageName: node + linkType: hard + "process-nextick-args@npm:~2.0.0": version: 2.0.1 resolution: "process-nextick-args@npm:2.0.1" @@ -13170,9 +13011,9 @@ __metadata: languageName: node linkType: hard -"protobufjs@npm:^6.10.2, protobufjs@npm:^6.11.4": - version: 6.11.4 - resolution: "protobufjs@npm:6.11.4" +"protobufjs@npm:^7.2.5": + version: 7.2.5 + resolution: "protobufjs@npm:7.2.5" dependencies: "@protobufjs/aspromise": ^1.1.2 "@protobufjs/base64": ^1.1.2 @@ -13184,20 +13025,9 @@ __metadata: "@protobufjs/path": ^1.1.2 "@protobufjs/pool": ^1.1.0 "@protobufjs/utf8": ^1.1.0 - "@types/long": ^4.0.1 "@types/node": ">=13.7.0" - long: ^4.0.0 - bin: - pbjs: bin/pbjs - pbts: bin/pbts - checksum: b2fc6a01897b016c2a7e43a854ab4a3c57080f61be41e552235436e7a730711b8e89e47cb4ae52f0f065b5ab5d5989fc932f390337ce3a8ccf07203415700850 - languageName: node - linkType: hard - -"protocol-buffers-schema@npm:3.1.0": - version: 3.1.0 - resolution: "protocol-buffers-schema@npm:3.1.0" - checksum: 3f878bfc01480218f77e78330c0719dc32663226ffbd11167158d1f5c3cc0ef519afd92e52e2a30ccfb441470b80412947ffe5554489cb3c972d2d7f82836e03 + long: ^5.0.0 + checksum: 3770a072114061faebbb17cfd135bc4e187b66bc6f40cd8bac624368b0270871ec0cfb43a02b9fb4f029c8335808a840f1afba3c2e7ede7063b98ae6b98a703f languageName: node linkType: hard @@ -13303,9 +13133,9 @@ __metadata: linkType: hard "punycode@npm:^2.1.0, punycode@npm:^2.1.1": - version: 2.3.0 - resolution: "punycode@npm:2.3.0" - checksum: 39f760e09a2a3bbfe8f5287cf733ecdad69d6af2fe6f97ca95f24b8921858b91e9ea3c9eeec6e08cede96181b3bb33f95c6ffd8c77e63986508aa2e8159fa200 + version: 2.3.1 + resolution: "punycode@npm:2.3.1" + checksum: bb0a0ceedca4c3c57a9b981b90601579058903c62be23c5e8e843d2c2d4148a3ecf029d5133486fb0e1822b098ba8bba09e89d6b21742d02fa26bda6441a6fb2 languageName: node linkType: hard @@ -13522,7 +13352,7 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:^3.0.0, readable-stream@npm:^3.0.6, readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": +"readable-stream@npm:^3.0.0, readable-stream@npm:^3.0.6, readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0, readable-stream@npm:^3.6.2": version: 3.6.2 resolution: "readable-stream@npm:3.6.2" dependencies: @@ -13591,7 +13421,7 @@ __metadata: languageName: node linkType: hard -"regexp.prototype.flags@npm:^1.2.0, regexp.prototype.flags@npm:^1.5.0, regexp.prototype.flags@npm:^1.5.1": +"regexp.prototype.flags@npm:^1.5.0, regexp.prototype.flags@npm:^1.5.1": version: 1.5.1 resolution: "regexp.prototype.flags@npm:1.5.1" dependencies: @@ -13785,54 +13615,54 @@ __metadata: linkType: hard "resolve@npm:^1.0.0, resolve@npm:^1.10.0, resolve@npm:^1.20.0, resolve@npm:^1.22.4": - version: 1.22.6 - resolution: "resolve@npm:1.22.6" + version: 1.22.8 + resolution: "resolve@npm:1.22.8" dependencies: is-core-module: ^2.13.0 path-parse: ^1.0.7 supports-preserve-symlinks-flag: ^1.0.0 bin: resolve: bin/resolve - checksum: d13bf66d4e2ee30d291491f16f2fa44edd4e0cefb85d53249dd6f93e70b2b8c20ec62f01b18662e3cd40e50a7528f18c4087a99490048992a3bb954cf3201a5b + checksum: f8a26958aa572c9b064562750b52131a37c29d072478ea32e129063e2da7f83e31f7f11e7087a18225a8561cfe8d2f0df9dbea7c9d331a897571c0a2527dbb4c languageName: node linkType: hard "resolve@npm:^2.0.0-next.4": - version: 2.0.0-next.4 - resolution: "resolve@npm:2.0.0-next.4" + version: 2.0.0-next.5 + resolution: "resolve@npm:2.0.0-next.5" dependencies: - is-core-module: ^2.9.0 + is-core-module: ^2.13.0 path-parse: ^1.0.7 supports-preserve-symlinks-flag: ^1.0.0 bin: resolve: bin/resolve - checksum: c438ac9a650f2030fd074219d7f12ceb983b475da2d89ad3d6dd05fbf6b7a0a8cd37d4d10b43cb1f632bc19f22246ab7f36ebda54d84a29bfb2910a0680906d3 + checksum: a73ac69a1c4bd34c56b213d91f5b17ce390688fdb4a1a96ed3025cc7e08e7bfb90b3a06fcce461780cb0b589c958afcb0080ab802c71c01a7ecc8c64feafc89f languageName: node linkType: hard "resolve@patch:resolve@^1.0.0#~builtin, resolve@patch:resolve@^1.10.0#~builtin, resolve@patch:resolve@^1.20.0#~builtin, resolve@patch:resolve@^1.22.4#~builtin": - version: 1.22.6 - resolution: "resolve@patch:resolve@npm%3A1.22.6#~builtin::version=1.22.6&hash=c3c19d" + version: 1.22.8 + resolution: "resolve@patch:resolve@npm%3A1.22.8#~builtin::version=1.22.8&hash=c3c19d" dependencies: is-core-module: ^2.13.0 path-parse: ^1.0.7 supports-preserve-symlinks-flag: ^1.0.0 bin: resolve: bin/resolve - checksum: 9d3b3c67aefd12cecbe5f10ca4d1f51ea190891096497c43f301b086883b426466918c3a64f1bbf1788fabb52b579d58809614006c5d0b49186702b3b8fb746a + checksum: 5479b7d431cacd5185f8db64bfcb7286ae5e31eb299f4c4f404ad8aa6098b77599563ac4257cb2c37a42f59dfc06a1bec2bcf283bb448f319e37f0feb9a09847 languageName: node linkType: hard "resolve@patch:resolve@^2.0.0-next.4#~builtin": - version: 2.0.0-next.4 - resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin::version=2.0.0-next.4&hash=c3c19d" + version: 2.0.0-next.5 + resolution: "resolve@patch:resolve@npm%3A2.0.0-next.5#~builtin::version=2.0.0-next.5&hash=c3c19d" dependencies: - is-core-module: ^2.9.0 + is-core-module: ^2.13.0 path-parse: ^1.0.7 supports-preserve-symlinks-flag: ^1.0.0 bin: resolve: bin/resolve - checksum: 4bf9f4f8a458607af90518ff73c67a4bc1a38b5a23fef2bb0ccbd45e8be89820a1639b637b0ba377eb2be9eedfb1739a84cde24fe4cd670c8207d8fea922b011 + checksum: 064d09c1808d0c51b3d90b5d27e198e6d0c5dad0eb57065fd40803d6a20553e5398b07f76739d69cbabc12547058bec6b32106ea66622375fb0d7e8fca6a846c languageName: node linkType: hard @@ -14028,7 +13858,7 @@ __metadata: languageName: node linkType: hard -"safe-buffer@npm:5.2.1, safe-buffer@npm:>=5.1.0, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:^5.1.1, safe-buffer@npm:^5.1.2, safe-buffer@npm:^5.2.0, safe-buffer@npm:~5.2.0": +"safe-buffer@npm:5.2.1, safe-buffer@npm:>=5.1.0, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:^5.1.1, safe-buffer@npm:^5.1.2, safe-buffer@npm:^5.2.0, safe-buffer@npm:^5.2.1, safe-buffer@npm:~5.2.0": version: 5.2.1 resolution: "safe-buffer@npm:5.2.1" checksum: b99c4b41fdd67a6aaf280fcd05e9ffb0813654894223afb78a31f14a19ad220bba8aba1cb14eddce1fcfb037155fe6de4e861784eb434f7d11ed58d1e70dd491 @@ -14250,6 +14080,18 @@ __metadata: languageName: node linkType: hard +"set-function-length@npm:^1.1.1": + version: 1.1.1 + resolution: "set-function-length@npm:1.1.1" + dependencies: + define-data-property: ^1.1.1 + get-intrinsic: ^1.2.1 + gopd: ^1.0.1 + has-property-descriptors: ^1.0.0 + checksum: c131d7569cd7e110cafdfbfbb0557249b538477624dfac4fc18c376d879672fa52563b74029ca01f8f4583a8acb35bb1e873d573a24edb80d978a7ee607c6e06 + languageName: node + linkType: hard + "set-function-name@npm:^2.0.0, set-function-name@npm:^2.0.1": version: 2.0.1 resolution: "set-function-name@npm:2.0.1" @@ -14313,7 +14155,6 @@ __metadata: "@types/node": 20.2.5 eslint: 8.41.0 eslint-config-next: 13.4.4 - protobufjs: ^6.10.2 typescript: 5.1.3 languageName: unknown linkType: soft @@ -14357,7 +14198,7 @@ __metadata: languageName: node linkType: hard -"shell-quote@npm:^1.7.3": +"shell-quote@npm:^1.8.1": version: 1.8.1 resolution: "shell-quote@npm:1.8.1" checksum: 5f01201f4ef504d4c6a9d0d283fa17075f6770bfbe4c5850b074974c68062f37929ca61700d95ad2ac8822e14e8c4b990ca0e6e9272e64befd74ce5e19f0736b @@ -14533,18 +14374,18 @@ __metadata: languageName: node linkType: hard -"socks-proxy-agent@npm:^7.0.0": - version: 7.0.0 - resolution: "socks-proxy-agent@npm:7.0.0" +"socks-proxy-agent@npm:^8.0.1": + version: 8.0.2 + resolution: "socks-proxy-agent@npm:8.0.2" dependencies: - agent-base: ^6.0.2 - debug: ^4.3.3 - socks: ^2.6.2 - checksum: 720554370154cbc979e2e9ce6a6ec6ced205d02757d8f5d93fe95adae454fc187a5cbfc6b022afab850a5ce9b4c7d73e0f98e381879cf45f66317a4895953846 + agent-base: ^7.0.2 + debug: ^4.3.4 + socks: ^2.7.1 + checksum: 4fb165df08f1f380881dcd887b3cdfdc1aba3797c76c1e9f51d29048be6e494c5b06d68e7aea2e23df4572428f27a3ec22b3d7c75c570c5346507433899a4b6d languageName: node linkType: hard -"socks@npm:^2.6.2": +"socks@npm:^2.7.1": version: 2.7.1 resolution: "socks@npm:2.7.1" dependencies: @@ -14666,9 +14507,9 @@ __metadata: linkType: hard "spdx-license-ids@npm:^3.0.0": - version: 3.0.15 - resolution: "spdx-license-ids@npm:3.0.15" - checksum: 99d567875b50504e1a7359f6da7d03e28db2b855b412ced18310679d091565a44f61ffd2585f19ea53a1192c35f2156c143507b12339dda26ef928547df32002 + version: 3.0.16 + resolution: "spdx-license-ids@npm:3.0.16" + checksum: 5cdaa85aaa24bd02f9353a2e357b4df0a4f205cb35655f3fd0a5674a4fb77081f28ffd425379214bc3be2c2b7593ce1215df6bcc75884aeee0a9811207feabe2 languageName: node linkType: hard @@ -14739,8 +14580,8 @@ __metadata: linkType: hard "sshpk@npm:^1.7.0": - version: 1.17.0 - resolution: "sshpk@npm:1.17.0" + version: 1.18.0 + resolution: "sshpk@npm:1.18.0" dependencies: asn1: ~0.2.3 assert-plus: ^1.0.0 @@ -14755,7 +14596,7 @@ __metadata: sshpk-conv: bin/sshpk-conv sshpk-sign: bin/sshpk-sign sshpk-verify: bin/sshpk-verify - checksum: ba109f65c8e6c35133b8e6ed5576abeff8aa8d614824b7275ec3ca308f081fef483607c28d97780c1e235818b0f93ed8c8b56d0a5968d5a23fd6af57718c7597 + checksum: 01d43374eee3a7e37b3b82fdbecd5518cbb2e47ccbed27d2ae30f9753f22bd6ffad31225cb8ef013bc3fb7785e686cea619203ee1439a228f965558c367c3cfa languageName: node linkType: hard @@ -14904,7 +14745,7 @@ __metadata: languageName: node linkType: hard -"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.0.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.2, string-width@npm:^4.2.3": +"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.0.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.2, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" dependencies: @@ -15597,6 +15438,39 @@ __metadata: languageName: node linkType: hard +"ts-jest@npm:^29.1.1": + version: 29.1.1 + resolution: "ts-jest@npm:29.1.1" + dependencies: + bs-logger: 0.x + fast-json-stable-stringify: 2.x + jest-util: ^29.0.0 + json5: ^2.2.3 + lodash.memoize: 4.x + make-error: 1.x + semver: ^7.5.3 + yargs-parser: ^21.0.1 + peerDependencies: + "@babel/core": ">=7.0.0-beta.0 <8" + "@jest/types": ^29.0.0 + babel-jest: ^29.0.0 + jest: ^29.0.0 + typescript: ">=4.3 <6" + peerDependenciesMeta: + "@babel/core": + optional: true + "@jest/types": + optional: true + babel-jest: + optional: true + esbuild: + optional: true + bin: + ts-jest: cli.js + checksum: a8c9e284ed4f819526749f6e4dc6421ec666f20ab44d31b0f02b4ed979975f7580b18aea4813172d43e39b29464a71899f8893dd29b06b4a351a3af8ba47b402 + languageName: node + linkType: hard + "ts-node-dev@npm:^2.0.0": version: 2.0.0 resolution: "ts-node-dev@npm:2.0.0" @@ -15976,16 +15850,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:4.5.2": - version: 4.5.2 - resolution: "typescript@npm:4.5.2" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 74f9ce65d532bdf5d0214b3f60cf37992180023388c87a11ee6f838a803067ef0b63c600fa501b0deb07f989257dce1e244c9635ed79feca40bbccf6e0aa1ebc - languageName: node - linkType: hard - "typescript@npm:5.1.3": version: 5.1.3 resolution: "typescript@npm:5.1.3" @@ -15996,16 +15860,6 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@4.5.2#~builtin": - version: 4.5.2 - resolution: "typescript@patch:typescript@npm%3A4.5.2#~builtin::version=4.5.2&hash=bcec9a" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: e25e689eba64f7da7cfc43f8ea76cac7176b56caba42655f0a4cb29c0b7c36e67ca54f33df95902859f56108464245d8b45bcdfe21e3d66d9560feb8db780246 - languageName: node - linkType: hard - "typescript@patch:typescript@5.1.3#~builtin": version: 5.1.3 resolution: "typescript@patch:typescript@npm%3A5.1.3#~builtin::version=5.1.3&hash=77c9e2" @@ -16040,6 +15894,13 @@ __metadata: languageName: node linkType: hard +"undici-types@npm:~5.26.4": + version: 5.26.5 + resolution: "undici-types@npm:5.26.5" + checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487 + languageName: node + linkType: hard + "union-value@npm:^1.0.0": version: 1.0.1 resolution: "union-value@npm:1.0.1" @@ -16119,9 +15980,9 @@ __metadata: linkType: hard "universalify@npm:^2.0.0": - version: 2.0.0 - resolution: "universalify@npm:2.0.0" - checksum: 2406a4edf4a8830aa6813278bab1f953a8e40f2f63a37873ffa9a3bc8f9745d06cc8e88f3572cb899b7e509013f7f6fcc3e37e8a6d914167a5381d8440518c44 + version: 2.0.1 + resolution: "universalify@npm:2.0.1" + checksum: ecd8469fe0db28e7de9e5289d32bd1b6ba8f7183db34f3bfc4ca53c49891c2d6aa05f3fb3936a81285a905cc509fb641a0c3fc131ec786167eff41236ae32e60 languageName: node linkType: hard @@ -16389,13 +16250,13 @@ __metadata: linkType: hard "v8-to-istanbul@npm:^9.0.1": - version: 9.1.0 - resolution: "v8-to-istanbul@npm:9.1.0" + version: 9.2.0 + resolution: "v8-to-istanbul@npm:9.2.0" dependencies: "@jridgewell/trace-mapping": ^0.3.12 "@types/istanbul-lib-coverage": ^2.0.1 - convert-source-map: ^1.6.0 - checksum: 2069d59ee46cf8d83b4adfd8a5c1a90834caffa9f675e4360f1157ffc8578ef0f763c8f32d128334424159bb6b01f3876acd39cd13297b2769405a9da241f8d1 + convert-source-map: ^2.0.0 + checksum: 31ef98c6a31b1dab6be024cf914f235408cd4c0dc56a5c744a5eea1a9e019ba279e1b6f90d695b78c3186feed391ed492380ccf095009e2eb91f3d058f0b4491 languageName: node linkType: hard @@ -16537,8 +16398,8 @@ __metadata: linkType: hard "vue-loader@npm:^15.9.2": - version: 15.10.2 - resolution: "vue-loader@npm:15.10.2" + version: 15.11.1 + resolution: "vue-loader@npm:15.11.1" dependencies: "@vue/component-compiler-utils": ^3.1.0 hash-sum: ^1.0.2 @@ -16555,7 +16416,7 @@ __metadata: optional: true vue-template-compiler: optional: true - checksum: 3f4bfd100967af90ad5bd37de9a1dc2ca2f04b1bd7e695772a960186d74c51e161c89c08dd8623062b9151bd2f0bf493d2bbcd381214fa189977e0d379519b57 + checksum: 509a816d45d4f3de6fbe8aed2267e3113637950e61597bb7647cd43328d4eab9c70235f5161ab761f0a2162471f69271ae54b2a806663c2094a10266434fa6a3 languageName: node linkType: hard @@ -16577,12 +16438,12 @@ __metadata: linkType: hard "vue-template-compiler@npm:^2.6.11": - version: 2.7.14 - resolution: "vue-template-compiler@npm:2.7.14" + version: 2.7.15 + resolution: "vue-template-compiler@npm:2.7.15" dependencies: de-indent: ^1.0.2 he: ^1.2.0 - checksum: eba9d2eed6b7110c963bc356b47bdd11d4023d25148abb7e5f7826db2fefe7ad8a575787ee0d8fa47701d44a6f54bde475279b1319f44e1049271eb2419f93a7 + checksum: 79a0c70babf5f85caa05df82aae1e135a491a86a7dc2769e747a017f84d76b1d066f7ac421b75c8ca9a9582bfe48bf673c4e9190c8e1bfd8f0f7037f9fc7988e languageName: node linkType: hard @@ -16594,12 +16455,12 @@ __metadata: linkType: hard "vue@npm:^2.6.11": - version: 2.7.14 - resolution: "vue@npm:2.7.14" + version: 2.7.15 + resolution: "vue@npm:2.7.15" dependencies: - "@vue/compiler-sfc": 2.7.14 + "@vue/compiler-sfc": 2.7.15 csstype: ^3.1.0 - checksum: 8b06da67cc40870c66a30b7a6bc2874950cd4383792c371eb30497dd14fc7b41cf308b1c4517368d8f0e7ac16198c08de19236f6a79fe43f4bdbc4a1d9d4ad07 + checksum: b829a42b60a3388c23735390412011c7859226ba6eb43ceda8eabb295e67b00d3db941b8fa8660682f463ed1028a2da8dff6db29a72efd67f0fc0088de1bb334 languageName: node linkType: hard @@ -16898,16 +16759,16 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.11, which-typed-array@npm:^1.1.9": - version: 1.1.11 - resolution: "which-typed-array@npm:1.1.11" +"which-typed-array@npm:^1.1.11, which-typed-array@npm:^1.1.13, which-typed-array@npm:^1.1.9": + version: 1.1.13 + resolution: "which-typed-array@npm:1.1.13" dependencies: available-typed-arrays: ^1.0.5 - call-bind: ^1.0.2 + call-bind: ^1.0.4 for-each: ^0.3.3 gopd: ^1.0.1 has-tostringtag: ^1.0.0 - checksum: 711ffc8ef891ca6597b19539075ec3e08bb9b4c2ca1f78887e3c07a977ab91ac1421940505a197758fb5939aa9524976d0a5bbcac34d07ed6faa75cedbb17206 + checksum: 3828a0d5d72c800e369d447e54c7620742a4cc0c9baf1b5e8c17e9b6ff90d8d861a3a6dd4800f1953dbf80e5e5cec954a289e5b4a223e3bee4aeb1f8c5f33309 languageName: node linkType: hard @@ -16922,7 +16783,7 @@ __metadata: languageName: node linkType: hard -"which@npm:^2.0.1, which@npm:^2.0.2": +"which@npm:^2.0.1": version: 2.0.2 resolution: "which@npm:2.0.2" dependencies: @@ -16933,12 +16794,14 @@ __metadata: languageName: node linkType: hard -"wide-align@npm:^1.1.5": - version: 1.1.5 - resolution: "wide-align@npm:1.1.5" +"which@npm:^4.0.0": + version: 4.0.0 + resolution: "which@npm:4.0.0" dependencies: - string-width: ^1.0.2 || 2 || 3 || 4 - checksum: d5fc37cd561f9daee3c80e03b92ed3e84d80dde3365a8767263d03dacfc8fa06b065ffe1df00d8c2a09f731482fcacae745abfbb478d4af36d0a891fad4834d3 + isexe: ^3.1.1 + bin: + node-which: bin/which.js + checksum: f17e84c042592c21e23c8195108cff18c64050b9efb8459589116999ea9da6dd1509e6a1bac3aeebefd137be00fabbb61b5c2bc0aa0f8526f32b58ee2f545651 languageName: node linkType: hard @@ -17163,7 +17026,7 @@ __metadata: languageName: node linkType: hard -"yargs-parser@npm:^21.1.1": +"yargs-parser@npm:^21.0.1, yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1" checksum: ed2d96a616a9e3e1cc7d204c62ecc61f7aaab633dcbfab2c6df50f7f87b393993fe6640d017759fe112d0cb1e0119f2b4150a87305cc873fd90831c6a58ccf1c