|
|
(7 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | package erind;
| + | [[Image:rpfreeze1.png]] |
− | | + | [[Image:rpfreeze2.png]] |
− | message BoxAction {
| |
− | enum BoxActionType {
| |
− | REREAD = 0;
| |
− | REFRESH = 1;
| |
− | PINMENU = 2;
| |
− | TEXTINPUT = 3;
| |
− | CHOOSE = 4;
| |
− | CLOSE = 5;
| |
− | SCROLLDOWN = 6;
| |
− | SCROLLUP = 7;
| |
− | DRAG = 8;
| |
− | SUBSCRIBE = 9;
| |
− | };
| |
− | required BoxActionType type = 1;
| |
− | required int32 BoxId = 2;
| |
− | optional string text = 3;
| |
− | optional int32 toX = 4;
| |
− | optional int32 toY = 5;
| |
− | }
| |
− | | |
− | message ClickAction {
| |
− | required int32 X = 1;
| |
− | required int32 Y = 2;
| |
− | required int32 Button = 3;
| |
− | }
| |
− | | |
− | message Request {
| |
− | required int32 id = 1;
| |
− | optional BoxAction boxAction = 2;
| |
− | optional ClickAction clickAction = 3;
| |
− | }
| |
− | | |
− | message BatchRequest {
| |
− | repeated Request requests = 1;
| |
− | }
| |
− | | |
− | message Reply {
| |
− | required int32 id = 1;
| |
− | required string text = 2;
| |
− | }
| |
− | | |
− | message Rectangle {
| |
− | required int32 x = 1;
| |
− | required int32 y = 2;
| |
− | required int32 width = 3;
| |
− | required int32 height = 4;
| |
− | }
| |
− | | |
− | message BoxText {
| |
− | repeated string line = 1;
| |
− | }
| |
− | | |
− | message Box {
| |
− | enum BoxType {
| |
− | ROOT = 0;
| |
− | MENU = 1;
| |
− | POPUP = 2;
| |
− | QUANT = 3;
| |
− | FRIENDS = 4;
| |
− | CONFIRM = 5;
| |
− | LOC = 6;
| |
− | OTHER = 7;
| |
− | };
| |
− | | |
− | required int32 BoxId = 1;
| |
− | required BoxType type = 2;
| |
− | required Rectangle rect = 3;
| |
− | optional BoxText text = 4;
| |
− | optional bool haspin = 5;
| |
− | optional bool ispinned = 6;
| |
− | optional int32 scrollpct = 7;
| |
− | }
| |
− | | |
− | message CharStat {
| |
− | enum StatType {
| |
− | STR = 0;
| |
− | DEX = 1;
| |
− | END = 2;
| |
− | SPD = 3;
| |
− | CON = 4;
| |
− | FOC = 5;
| |
− | PER = 6;
| |
− | };
| |
− | required int32 stat = 1;
| |
− | required int32 value = 2;
| |
− | required int32 base = 3;
| |
− | required int32 redness = 4;
| |
− | }
| |
− | | |
− | message Update {
| |
− | repeated Box boxes = 1;
| |
− | repeated Reply replies = 2;
| |
− | repeated bytes keyrows = 3;
| |
− | repeated CharStat stats = 4;
| |
− | }
| |