mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
Judge mode (#3531)
* Judge mode * Use seperate judge icon * Fix clang init ordering complaint * Create gavel.svg * Add judge level * Adjust judge permissions. * - Tag events caused by judges - Allow judges access to card right click menus. * Allow judges to change phase / turn. * Remove gavel from pawn * Make judge action text black. * Create scales * Rename scales to scales.svg * Use scales * remove gavel * - Address PR feedback - Fix sort order * Zach * add option to servatrice.ini
This commit is contained in:
parent
9d27b36704
commit
ea8201af5c
42 changed files with 375 additions and 105 deletions
|
|
@ -34,6 +34,7 @@ message Command_AdjustMod {
|
|||
optional Command_AdjustMod ext = 1003;
|
||||
}
|
||||
required string user_name = 1;
|
||||
required bool should_be_mod = 2;
|
||||
optional bool should_be_mod = 2;
|
||||
optional bool should_be_judge = 3;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,4 +13,5 @@ message Event_GameJoined {
|
|||
optional sint32 player_id = 4;
|
||||
optional bool spectator = 5;
|
||||
optional bool resuming = 6;
|
||||
optional bool judge = 7;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,15 @@ message GameCommand {
|
|||
SET_SIDEBOARD_LOCK = 1030;
|
||||
CHANGE_ZONE_PROPERTIES = 1031;
|
||||
UNCONCEDE = 1032;
|
||||
|
||||
JUDGE = 1033;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
||||
message Command_Judge {
|
||||
extend GameCommand {
|
||||
optional Command_Judge ext = 1033;
|
||||
}
|
||||
optional sint32 target_id = 1 [default = -1];
|
||||
repeated GameCommand game_command = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ message GameEventContainer {
|
|||
repeated GameEvent event_list = 2;
|
||||
optional GameEventContext context = 3;
|
||||
optional uint32 seconds_elapsed = 4;
|
||||
optional uint32 forced_by_judge = 5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ message Command_CreateGame {
|
|||
optional bool spectators_can_talk = 8;
|
||||
optional bool spectators_see_everything = 9;
|
||||
repeated uint32 game_type_ids = 10;
|
||||
optional bool join_as_judge = 11;
|
||||
}
|
||||
|
||||
message Command_JoinGame {
|
||||
|
|
@ -46,4 +47,5 @@ message Command_JoinGame {
|
|||
optional string password = 2;
|
||||
optional bool spectator = 3;
|
||||
optional bool override_restrictions = 4;
|
||||
optional bool join_as_judge = 5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,4 +10,5 @@ message ServerInfo_PlayerProperties {
|
|||
optional string deck_hash = 6;
|
||||
optional sint32 ping_seconds = 7;
|
||||
optional bool sideboard_locked = 8;
|
||||
optional bool judge = 9;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ message ServerInfo_User {
|
|||
IsRegistered = 2;
|
||||
IsModerator = 4;
|
||||
IsAdmin = 8;
|
||||
IsJudge = 16;
|
||||
};
|
||||
enum Gender {
|
||||
GenderUnknown = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue