converted SetCardAttr attr_name to enum

This commit is contained in:
Max-Wilhelm Bruker 2012-01-02 20:20:31 +01:00
parent 4634787b00
commit 609e3fc41d
12 changed files with 83 additions and 68 deletions

View file

@ -0,0 +1,9 @@
enum CardAttribute {
AttrTapped = 1;
AttrAttacking = 2;
AttrFaceDown = 3;
AttrColor = 4;
AttrPT = 5;
AttrAnnotation = 6;
AttrDoesntUntap = 7;
}

View file

@ -1,10 +1,12 @@
import "game_commands.proto";
import "card_attributes.proto";
message Command_SetCardAttr {
extend GameCommand {
optional Command_SetCardAttr ext = 1013;
}
optional string zone = 1;
optional sint32 card_id = 2 [default = -1];
optional string attr_name = 3;
optional CardAttribute attribute = 3;
optional string attr_value = 4;
}

View file

@ -1,4 +1,5 @@
import "game_event.proto";
import "card_attributes.proto";
message Event_SetCardAttr {
extend GameEvent {
@ -6,6 +7,6 @@ message Event_SetCardAttr {
}
optional string zone_name = 1;
optional sint32 card_id = 2;
optional string attr_name = 3;
optional CardAttribute attribute = 3;
optional string attr_value = 4;
}