public static Offset <UdpMessages.ServerClientMessages.RoomEnteredMessage> CreateRoomEnteredMessage(FlatBufferBuilder builder, byte userIndex = 0, byte teamSize = 0, VectorOffset usersOffset = default(VectorOffset)) { builder.StartTable(3); RoomEnteredMessage.AddUsers(builder, usersOffset); RoomEnteredMessage.AddTeamSize(builder, teamSize); RoomEnteredMessage.AddUserIndex(builder, userIndex); return(RoomEnteredMessage.EndRoomEnteredMessage(builder)); }
public static RoomEnteredMessage GetRootAsRoomEnteredMessage(ByteBuffer _bb, RoomEnteredMessage obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }