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
- Death Penalty
+ Death Penalty
- {{ deathTooltip }}
+ {{ tooltip("NT_death_penalty", true) }}
-
@@ -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