mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
tell logged in clients about new replays
This commit is contained in:
parent
2487476fcc
commit
a876a0bf5f
14 changed files with 95 additions and 11 deletions
|
|
@ -78,6 +78,7 @@ SET(PROTO_FILES
|
|||
event_move_card.proto
|
||||
event_player_properties_changed.proto
|
||||
event_remove_from_list.proto
|
||||
event_replay_added.proto
|
||||
event_reveal_cards.proto
|
||||
event_roll_die.proto
|
||||
event_room_say.proto
|
||||
|
|
|
|||
9
common/pb/event_replay_added.proto
Normal file
9
common/pb/event_replay_added.proto
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import "session_event.proto";
|
||||
import "serverinfo_replay_match.proto";
|
||||
|
||||
message Event_ReplayAdded {
|
||||
extend SessionEvent {
|
||||
optional Event_ReplayAdded ext = 1100;
|
||||
}
|
||||
optional ServerInfo_ReplayMatch match_info = 1;
|
||||
}
|
||||
|
|
@ -2,7 +2,8 @@ import "serverinfo_game.proto";
|
|||
import "game_event_container.proto";
|
||||
|
||||
message GameReplay {
|
||||
optional ServerInfo_Game game_info = 1;
|
||||
repeated GameEventContainer event_list = 2;
|
||||
optional uint32 duration_seconds = 3;
|
||||
optional uint64 replay_id = 1;
|
||||
optional ServerInfo_Game game_info = 2;
|
||||
repeated GameEventContainer event_list = 3;
|
||||
optional uint32 duration_seconds = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ message SessionEvent {
|
|||
USER_JOINED = 1007;
|
||||
USER_LEFT = 1008;
|
||||
GAME_JOINED = 1009;
|
||||
REPLAY_ADDED = 1100;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue