Method: Api::ActionSelectWarpGates#_encode

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

#_encode(buff) ⇒ Object



11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
# File 'lib/sc2ai/protocol/ui_pb.rb', line 11233

def _encode(buff)
  if has_selection_add?
    val = @selection_add
    buff << 0x08

    if val == true
      buff << 1
    elsif val == false
      buff << 0
    end
  end
  buff << @_unknown_fields if @_unknown_fields
  buff
end