Module: Api::ResponseMapCommand::Error
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
Constant Summary collapse
- ENUM_RESPONSE_MAP_COMMAND_ERROR_UNSET =
0
- NO_TRIGGER_ERROR =
1
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
17621 17622 17623 17624 17625 17626 17627 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 17621 def self.lookup(val) if val == 0 :ENUM_RESPONSE_MAP_COMMAND_ERROR_UNSET elsif val == 1 :NO_TRIGGER_ERROR end end |
.resolve(val) ⇒ Object
17629 17630 17631 17632 17633 17634 17635 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 17629 def self.resolve(val) if val == :ENUM_RESPONSE_MAP_COMMAND_ERROR_UNSET 0 elsif val == :NO_TRIGGER_ERROR 1 end end |