Module: Api::DebugSetUnitValue::UnitValue
- Defined in:
- lib/sc2ai/protocol/debug_pb.rb
Constant Summary collapse
- ENUM_UNIT_VALUE_UNSET =
0
- ENERGY =
1
- LIFE =
2
- SHIELDS =
3
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
10469 10470 10471 10472 10473 10474 |
# File 'lib/sc2ai/protocol/debug_pb.rb', line 10469 def self.lookup(val) return :ENUM_UNIT_VALUE_UNSET if val == 0 return :ENERGY if val == 1 return :LIFE if val == 2 return :SHIELDS if val == 3 end |
.resolve(val) ⇒ Object
10476 10477 10478 10479 10480 10481 |
# File 'lib/sc2ai/protocol/debug_pb.rb', line 10476 def self.resolve(val) return 0 if val == :ENUM_UNIT_VALUE_UNSET return 1 if val == :ENERGY return 2 if val == :LIFE return 3 if val == :SHIELDS end |