Module: Api::ActionSelectIdleWorker::Type
- Defined in:
- lib/sc2ai/protocol/ui_pb.rb
Constant Summary collapse
- ENUM_ACTION_SELECT_IDLE_WORKER_TYPE_UNSET =
0
- SET =
1
- ADD =
2
- ALL =
3
- ADD_ALL =
4
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 |
# File 'lib/sc2ai/protocol/ui_pb.rb', line 10748 def self.lookup(val) if val == 0 :ENUM_ACTION_SELECT_IDLE_WORKER_TYPE_UNSET elsif val == 1 :SET elsif val == 2 :ADD elsif val == 3 :ALL elsif val == 4 :ADD_ALL end end |
.resolve(val) ⇒ Object
10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 |
# File 'lib/sc2ai/protocol/ui_pb.rb', line 10762 def self.resolve(val) if val == :ENUM_ACTION_SELECT_IDLE_WORKER_TYPE_UNSET 0 elsif val == :SET 1 elsif val == :ADD 2 elsif val == :ALL 3 elsif val == :ADD_ALL 4 end end |