This commit is contained in:
Max-Wilhelm Bruker 2011-12-30 02:03:26 +01:00
parent ca9122b9fb
commit 10018280e5
20 changed files with 970 additions and 1178 deletions

View file

@ -0,0 +1,9 @@
import "game_event.proto";
import "serverinfo_arrow.proto";
message Event_CreateArrow {
extend GameEvent {
optional Event_CreateArrow ext = 2000;
}
optional ServerInfo_Arrow arrow_info = 1;
}

View file

@ -1,9 +0,0 @@
import "game_event.proto";
import "serverinfo_arrow.proto";
message Event_CreateArrows {
extend GameEvent {
optional Event_CreateArrows ext = 2000;
}
repeated ServerInfo_Arrow arrow_list = 1;
}

View file

@ -0,0 +1,9 @@
import "game_event.proto";
import "serverinfo_counter.proto";
message Event_CreateCounter {
extend GameEvent {
optional Event_CreateCounter ext = 2002;
}
optional ServerInfo_Counter counter_info = 1;
}

View file

@ -1,9 +0,0 @@
import "game_event.proto";
import "serverinfo_counter.proto";
message Event_CreateCounters {
extend GameEvent {
optional Event_CreateCounters ext = 2002;
}
repeated ServerInfo_Counter counter_list = 1;
}

View file

@ -10,9 +10,9 @@ message GameEvent {
PLAYER_PROPERTIES_CHANGED = 1007;
PING = 1008;
GAME_SAY = 1009;
CREATE_ARROWS = 2000;
CREATE_ARROW = 2000;
DELETE_ARROW = 2001;
CREATE_COUNTERS = 2002;
CREATE_COUNTER = 2002;
SET_COUNTER = 2003;
DEL_COUNTER = 2004;
DRAW_CARDS = 2005;

View file

@ -0,0 +1,8 @@
import "response.proto";
message Response_DeckDownload {
extend Response {
optional Response_DeckDownload ext = 1007;
}
optional string deck = 1;
}

View file

@ -10,8 +10,10 @@ message ServerMessage {
GAME_EVENT_CONTAINER = 2;
ROOM_EVENT = 3;
}
optional Response response = 1;
optional SessionEvent session_event = 2;
optional GameEventContainer game_event_container = 3;
optional RoomEvent room_event = 4;
optional MessageType message_type = 1;
optional Response response = 2;
optional SessionEvent session_event = 3;
optional GameEventContainer game_event_container = 4;
optional RoomEvent room_event = 5;
}

View file

@ -1,10 +1,10 @@
import "serverinfo_cardcounter.proto";
message ServerInfo_Card {
optional sint32 id = 1;
optional sint32 id = 1 [default = -1];
optional string name = 2;
optional sint32 x = 3;
optional sint32 y = 4;
optional sint32 x = 3 [default = -1];
optional sint32 y = 4 [default = -1];
optional bool face_down = 5;
optional bool tapped = 6;
optional bool attacking = 7;
@ -14,7 +14,7 @@ message ServerInfo_Card {
optional bool destroy_on_zone_change = 11;
optional bool doesnt_untap = 12;
repeated ServerInfo_CardCounter counter_list = 13;
optional sint32 attach_player_id = 14;
optional sint32 attach_player_id = 14 [default = -1];
optional string attach_zone = 15;
optional sint32 attach_card_id = 16;
optional sint32 attach_card_id = 16 [default = -1];
}

View file

@ -2,6 +2,15 @@ import "serverinfo_card.proto";
message ServerInfo_Zone {
enum ZoneType {
// PrivateZone: Contents of the zone are always visible to the owner,
// but not to anyone else.
// PublicZone: Contents of the zone are always visible to anyone.
// HiddenZone: Contents of the zone are never visible to anyone.
// However, the owner of the zone can issue a dump_zone command,
// setting beingLookedAt to true.
// Cards in a zone with the type HiddenZone are referenced by their
// list index, whereas cards in any other zone are referenced by their ids.
PrivateZone = 0;
PublicZone = 1;
HiddenZone = 2;