Module: Api::ResponseRestartGame::Error
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
Constant Summary collapse
- ENUM_RESPONSE_RESTART_GAME_ERROR_UNSET =
0
- LAUNCH_ERROR =
1
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
14712 14713 14714 14715 14716 14717 14718 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 14712 def self.lookup(val) if val == 0 :ENUM_RESPONSE_RESTART_GAME_ERROR_UNSET elsif val == 1 :LAUNCH_ERROR end end |
.resolve(val) ⇒ Object
14720 14721 14722 14723 14724 14725 14726 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 14720 def self.resolve(val) if val == :ENUM_RESPONSE_RESTART_GAME_ERROR_UNSET 0 elsif val == :LAUNCH_ERROR 1 end end |