Module: Api::ResponseSaveMap::Error

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

Constant Summary collapse

ENUM_RESPONSE_SAVE_MAP_ERROR_UNSET =
0
INVALID_MAP_DATA =
1

Class Method Summary collapse

Class Method Details

.lookup(val) ⇒ Object



32511
32512
32513
32514
32515
32516
32517
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 32511

def self.lookup(val)
  if val == 0
    :ENUM_RESPONSE_SAVE_MAP_ERROR_UNSET
  elsif val == 1
    :INVALID_MAP_DATA
  end
end

.resolve(val) ⇒ Object



32519
32520
32521
32522
32523
32524
32525
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 32519

def self.resolve(val)
  if val == :ENUM_RESPONSE_SAVE_MAP_ERROR_UNSET
    0
  elsif val == :INVALID_MAP_DATA
    1
  end
end