Exemple #1
0
 public static Offset <mainServer.schemas.FWaitingRoom.FWaitingRoom> CreateFWaitingRoom(FlatBufferBuilder builder,
                                                                                        int id = 0,
                                                                                        VectorOffset teamsOffset = default(VectorOffset),
                                                                                        StringOffset cityOffset  = default(StringOffset),
                                                                                        int host       = 0,
                                                                                        int clientsMax = 0)
 {
     builder.StartTable(5);
     FWaitingRoom.AddClientsMax(builder, clientsMax);
     FWaitingRoom.AddHost(builder, host);
     FWaitingRoom.AddCity(builder, cityOffset);
     FWaitingRoom.AddTeams(builder, teamsOffset);
     FWaitingRoom.AddId(builder, id);
     return(FWaitingRoom.EndFWaitingRoom(builder));
 }
Exemple #2
0
 public static FWaitingRoom GetRootAsFWaitingRoom(ByteBuffer _bb, FWaitingRoom obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }