예제 #1
0
 public static Offset <UdpMessages.ServerClientMessages.RoomCreatedMessage> CreateRoomCreatedMessage(FlatBufferBuilder builder,
                                                                                                     byte teamSize   = 0,
                                                                                                     ulong roomToken = 0)
 {
     builder.StartTable(2);
     RoomCreatedMessage.AddRoomToken(builder, roomToken);
     RoomCreatedMessage.AddTeamSize(builder, teamSize);
     return(RoomCreatedMessage.EndRoomCreatedMessage(builder));
 }
예제 #2
0
 public static RoomCreatedMessage GetRootAsRoomCreatedMessage(ByteBuffer _bb, RoomCreatedMessage obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }