Пример #1
0
 public static Offset <mainServer.schemas.FWaitingRoom.FVehicle> CreateFVehicle(FlatBufferBuilder builder,
                                                                                mainServer.schemas.FWaitingRoom.FVehicleType vehicleType = mainServer.schemas.FWaitingRoom.FVehicleType.Pedestrian,
                                                                                int velocity = 0)
 {
     builder.StartTable(2);
     FVehicle.AddVelocity(builder, velocity);
     FVehicle.AddVehicleType(builder, vehicleType);
     return(FVehicle.EndFVehicle(builder));
 }
Пример #2
0
 public static FVehicle GetRootAsFVehicle(ByteBuffer _bb, FVehicle obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }