Method: Api::ResponseCreateGame#initialize

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

#initialize(error: nil, error_details: nil) ⇒ ResponseCreateGame

END writers for optional fields



11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 11604

def initialize(error: nil, error_details: nil)
  @_bitmask = 0

  if error == nil
    @error = 0
  else
    @_bitmask |= 0x0000000000000001
    @error = Api::ResponseCreateGame::Error.resolve(error) || error
  end

  if error_details == nil
    @error_details = ""
  else
    @_bitmask |= 0x0000000000000002
    @error_details = error_details
  end
end