Module: Api::ActionChat::Channel
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
Constant Summary collapse
- ENUM_CHANNEL_UNSET =
0
- BROADCAST =
1
- TEAM =
2
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
43976 43977 43978 43979 43980 43981 43982 43983 43984 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 43976 def self.lookup(val) if val == 0 :ENUM_CHANNEL_UNSET elsif val == 1 :BROADCAST elsif val == 2 :TEAM end end |
.resolve(val) ⇒ Object
43986 43987 43988 43989 43990 43991 43992 43993 43994 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 43986 def self.resolve(val) if val == :ENUM_CHANNEL_UNSET 0 elsif val == :BROADCAST 1 elsif val == :TEAM 2 end end |