Method: Api::ActionSpatialUnitSelectionPoint#initialize

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

#initialize(selection_screen_coord: nil, type: nil) ⇒ ActionSpatialUnitSelectionPoint

END writers for optional fields



11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
# File 'lib/sc2ai/protocol/spatial_pb.rb', line 11563

def initialize(selection_screen_coord: nil, type: nil)
  @_bitmask = 0

  if selection_screen_coord == nil
    @selection_screen_coord = nil
  else
    @_bitmask |= 0x0000000000000001
    @selection_screen_coord = selection_screen_coord
  end

  if type == nil
    @type = 0
  else
    @_bitmask |= 0x0000000000000002
    @type = Api::ActionSpatialUnitSelectionPoint::Type.resolve(type) || type
  end
end