Module: Api::DebugEndGame::EndResult
- Defined in:
- lib/sc2ai/protocol/debug_pb.rb
Constant Summary collapse
- ENUM_END_RESULT_UNSET =
0
- SURRENDER =
1
- DECLARE_VICTORY =
2
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
9400 9401 9402 9403 9404 9405 9406 9407 9408 |
# File 'lib/sc2ai/protocol/debug_pb.rb', line 9400 def self.lookup(val) if val == 0 :ENUM_END_RESULT_UNSET elsif val == 1 :SURRENDER elsif val == 2 :DECLARE_VICTORY end end |
.resolve(val) ⇒ Object
9410 9411 9412 9413 9414 9415 9416 9417 9418 |
# File 'lib/sc2ai/protocol/debug_pb.rb', line 9410 def self.resolve(val) if val == :ENUM_END_RESULT_UNSET 0 elsif val == :SURRENDER 1 elsif val == :DECLARE_VICTORY 2 end end |