lib/templates/new/api/ui.proto in sc2ai-0.2.0 vs lib/templates/new/api/ui.proto in sc2ai-0.3.0

- old
+ new

@@ -1,7 +1,7 @@ -syntax = "proto2"; +syntax = "proto3"; package Api; // // Observation @@ -88,15 +88,16 @@ } } message ActionControlGroup { enum ControlGroupAction { - Recall = 1; // Equivalent to number hotkey. Replaces current selection with control group. - Set = 2; // Equivalent to Control + number hotkey. Sets control group to current selection. - Append = 3; // Equivalent to Shift + number hotkey. Adds current selection into control group. - SetAndSteal = 4; // Equivalent to Control + Alt + number hotkey. Sets control group to current selection. Units are removed from other control groups. - AppendAndSteal = 5; // Equivalent to Shift + Alt + number hotkey. Adds current selection into control group. Units are removed from other control groups. + ENUM_CONTROL_GROUP_ACTION_UNSET = 0; // PROTO3 COMPAT + RECALL = 1; // EQUIVALENT TO NUMBER HOTKEY. REPLACES CURRENT SELECTION WITH CONTROL GROUP. + SET = 2; // EQUIVALENT TO CONTROL + NUMBER HOTKEY. SETS CONTROL GROUP TO CURRENT SELECTION. + APPEND = 3; // EQUIVALENT TO SHIFT + NUMBER HOTKEY. ADDS CURRENT SELECTION INTO CONTROL GROUP. + SET_AND_STEAL = 4; // EQUIVALENT TO CONTROL + ALT + NUMBER HOTKEY. SETS CONTROL GROUP TO CURRENT SELECTION. UNITS ARE REMOVED FROM OTHER CONTROL GROUPS. + APPEND_AND_STEAL = 5; // EQUIVALENT TO SHIFT + ALT + NUMBER HOTKEY. ADDS CURRENT SELECTION INTO CONTROL GROUP. UNITS ARE REMOVED FROM OTHER CONTROL GROUPS. } optional ControlGroupAction action = 1; optional uint32 control_group_index = 2; } @@ -111,23 +112,25 @@ message ActionSelectLarva { } message ActionSelectIdleWorker { enum Type { - Set = 1; // Equivalent to click with no modifiers. Replaces selection with single idle worker. - Add = 2; // Equivalent to shift+click. Adds single idle worker to current selection. - All = 3; // Equivalent to control+click. Selects all idle workers. - AddAll = 4; // Equivalent to shift+control+click. Adds all idle workers to current selection. + ENUM_ACTION_SELECT_IDLE_WORKER_TYPE_UNSET = 0; // PROTO3 COMPAT + SET = 1; // EQUIVALENT TO CLICK WITH NO MODIFIERS. REPLACES SELECTION WITH SINGLE IDLE WORKER. + ADD = 2; // EQUIVALENT TO SHIFT+CLICK. ADDS SINGLE IDLE WORKER TO CURRENT SELECTION. + ALL = 3; // EQUIVALENT TO CONTROL+CLICK. SELECTS ALL IDLE WORKERS. + ADD_ALL = 4; // EQUIVALENT TO SHIFT+CONTROL+CLICK. ADDS ALL IDLE WORKERS TO CURRENT SELECTION. } optional Type type = 1; } message ActionMultiPanel { enum Type { - SingleSelect = 1; // Click on icon - DeselectUnit = 2; // Shift Click on icon - SelectAllOfType = 3; // Control Click on icon. - DeselectAllOfType = 4; // Control+Shift Click on icon. + ENUM_ACTION_MULTI_PANEL_TYPE_UNSET = 0; // PROTO3 COMPAT + SINGLE_SELECT = 1; // CLICK ON ICON + DESELECT_UNIT = 2; // SHIFT CLICK ON ICON + SELECT_ALL_OF_TYPE = 3; // CONTROL CLICK ON ICON. + DESELECT_ALL_OF_TYPE = 4; // CONTROL+SHIFT CLICK ON ICON. } optional Type type = 1; optional int32 unit_index = 2; }