Module: Api::ActionControlGroup::ControlGroupAction

Defined in:
lib/sc2ai/protocol/ui_pb.rb

Constant Summary collapse

ENUM_CONTROL_GROUP_ACTION_UNSET =
0
RECALL =
1
SET =
2
APPEND =
3
SET_AND_STEAL =
4
APPEND_AND_STEAL =
5

Class Method Summary collapse

Class Method Details

.lookup(val) ⇒ Object



9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
# File 'lib/sc2ai/protocol/ui_pb.rb', line 9351

def self.lookup(val)
  if val == 0
    :ENUM_CONTROL_GROUP_ACTION_UNSET
  elsif val == 1
    :RECALL
  elsif val == 2
    :SET
  elsif val == 3
    :APPEND
  elsif val == 4
    :SET_AND_STEAL
  elsif val == 5
    :APPEND_AND_STEAL
  end
end

.resolve(val) ⇒ Object



9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
# File 'lib/sc2ai/protocol/ui_pb.rb', line 9367

def self.resolve(val)
  if val == :ENUM_CONTROL_GROUP_ACTION_UNSET
    0
  elsif val == :RECALL
    1
  elsif val == :SET
    2
  elsif val == :APPEND
    3
  elsif val == :SET_AND_STEAL
    4
  elsif val == :APPEND_AND_STEAL
    5
  end
end