Module: Api::ResponseStartReplay::Error
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
Constant Summary collapse
- ENUM_RESPONSE_START_REPLAY_ERROR_UNSET =
0
- MISSING_REPLAY =
1
- INVALID_REPLAY_PATH =
2
- INVALID_REPLAY_DATA =
3
- INVALID_MAP_DATA =
4
- INVALID_OBSERVED_PLAYER_ID =
5
- MISSING_OPTIONS =
6
- LAUNCH_ERROR =
7
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 16667 def self.lookup(val) if val == 0 :ENUM_RESPONSE_START_REPLAY_ERROR_UNSET elsif val == 1 :MISSING_REPLAY elsif val == 2 :INVALID_REPLAY_PATH elsif val == 3 :INVALID_REPLAY_DATA elsif val == 4 :INVALID_MAP_DATA elsif val == 5 :INVALID_OBSERVED_PLAYER_ID elsif val == 6 :MISSING_OPTIONS elsif val == 7 :LAUNCH_ERROR end end |
.resolve(val) ⇒ Object
16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 16687 def self.resolve(val) if val == :ENUM_RESPONSE_START_REPLAY_ERROR_UNSET 0 elsif val == :MISSING_REPLAY 1 elsif val == :INVALID_REPLAY_PATH 2 elsif val == :INVALID_REPLAY_DATA 3 elsif val == :INVALID_MAP_DATA 4 elsif val == :INVALID_OBSERVED_PLAYER_ID 5 elsif val == :MISSING_OPTIONS 6 elsif val == :LAUNCH_ERROR 7 end end |