public static Offset <UdpMessages.ClientServerMessages.CreateRoomMessage> CreateCreateRoomMessage(FlatBufferBuilder builder, byte teamSize = 0, StringOffset usernameOffset = default(StringOffset)) { builder.StartTable(2); CreateRoomMessage.AddUsername(builder, usernameOffset); CreateRoomMessage.AddTeamSize(builder, teamSize); return(CreateRoomMessage.EndCreateRoomMessage(builder)); }
public static CreateRoomMessage GetRootAsCreateRoomMessage(ByteBuffer _bb, CreateRoomMessage obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }