Method: Api::ChatReceived#initialize
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
#initialize(player_id: nil, message: nil) ⇒ ChatReceived
END writers for optional fields
24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 24320 def initialize(player_id: nil, message: nil) @_bitmask = 0 if player_id == nil @player_id = 0 else unless 0 <= player_id && player_id <= 4_294_967_295 raise RangeError, "Value (#{player_id}) for field player_id is out of bounds (0..4294967295)" end @_bitmask |= 0x0000000000000001 @player_id = player_id end if == nil @message = "" else @_bitmask |= 0x0000000000000002 @message = end end |