Module: Api::Weapon::TargetType

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

Constant Summary collapse

ENUM_TARGET_TYPE_UNSET =
0
GROUND =
1
AIR =
2
ANY =
3

Class Method Summary collapse

Class Method Details

.lookup(val) ⇒ Object



2767
2768
2769
2770
2771
2772
# File 'lib/sc2ai/protocol/data_pb.rb', line 2767

def self.lookup(val)
  return :ENUM_TARGET_TYPE_UNSET if val == 0
  return :GROUND if val == 1
  return :AIR if val == 2
  return :ANY if val == 3
end

.resolve(val) ⇒ Object



2774
2775
2776
2777
2778
2779
# File 'lib/sc2ai/protocol/data_pb.rb', line 2774

def self.resolve(val)
  return 0 if val == :ENUM_TARGET_TYPE_UNSET
  return 1 if val == :GROUND
  return 2 if val == :AIR
  return 3 if val == :ANY
end