Module: Api::ResponseJoinGame::Error
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
Constant Summary collapse
- ENUM_RESPONSE_JOIN_GAME_ERROR_UNSET =
0
- MISSING_PARTICIPATION =
1
- INVALID_OBSERVED_PLAYER_ID =
2
- MISSING_OPTIONS =
3
- MISSING_PORTS =
4
- GAME_FULL =
5
- LAUNCH_ERROR =
6
- FEATURE_UNSUPPORTED =
7
- NO_SPACE_FOR_USER =
8
- MAP_DOES_NOT_EXIST =
9
- CANNOT_OPEN_MAP =
10
- CHECKSUM_ERROR =
11
- NETWORK_ERROR =
12
- OTHER_ERROR =
13
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 13790 def self.lookup(val) if val == 0 :ENUM_RESPONSE_JOIN_GAME_ERROR_UNSET elsif val == 1 :MISSING_PARTICIPATION elsif val == 2 :INVALID_OBSERVED_PLAYER_ID elsif val == 3 :MISSING_OPTIONS elsif val == 4 :MISSING_PORTS elsif val == 5 :GAME_FULL elsif val == 6 :LAUNCH_ERROR elsif val == 7 :FEATURE_UNSUPPORTED elsif val == 8 :NO_SPACE_FOR_USER elsif val == 9 :MAP_DOES_NOT_EXIST elsif val == 10 :CANNOT_OPEN_MAP elsif val == 11 :CHECKSUM_ERROR elsif val == 12 :NETWORK_ERROR elsif val == 13 :OTHER_ERROR end end |
.resolve(val) ⇒ Object
13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 13822 def self.resolve(val) if val == :ENUM_RESPONSE_JOIN_GAME_ERROR_UNSET 0 elsif val == :MISSING_PARTICIPATION 1 elsif val == :INVALID_OBSERVED_PLAYER_ID 2 elsif val == :MISSING_OPTIONS 3 elsif val == :MISSING_PORTS 4 elsif val == :GAME_FULL 5 elsif val == :LAUNCH_ERROR 6 elsif val == :FEATURE_UNSUPPORTED 7 elsif val == :NO_SPACE_FOR_USER 8 elsif val == :MAP_DOES_NOT_EXIST 9 elsif val == :CANNOT_OPEN_MAP 10 elsif val == :CHECKSUM_ERROR 11 elsif val == :NETWORK_ERROR 12 elsif val == :OTHER_ERROR 13 end end |