Пример #1
0
 public static Offset <LoadoutPaint> CreateLoadoutPaint(FlatBufferBuilder builder,
                                                        int carPaintId           = 0,
                                                        int decalPaintId         = 0,
                                                        int wheelsPaintId        = 0,
                                                        int boostPaintId         = 0,
                                                        int antennaPaintId       = 0,
                                                        int hatPaintId           = 0,
                                                        int trailsPaintId        = 0,
                                                        int goalExplosionPaintId = 0)
 {
     builder.StartObject(8);
     LoadoutPaint.AddGoalExplosionPaintId(builder, goalExplosionPaintId);
     LoadoutPaint.AddTrailsPaintId(builder, trailsPaintId);
     LoadoutPaint.AddHatPaintId(builder, hatPaintId);
     LoadoutPaint.AddAntennaPaintId(builder, antennaPaintId);
     LoadoutPaint.AddBoostPaintId(builder, boostPaintId);
     LoadoutPaint.AddWheelsPaintId(builder, wheelsPaintId);
     LoadoutPaint.AddDecalPaintId(builder, decalPaintId);
     LoadoutPaint.AddCarPaintId(builder, carPaintId);
     return(LoadoutPaint.EndLoadoutPaint(builder));
 }
Пример #2
0
 public static LoadoutPaint GetRootAsLoadoutPaint(ByteBuffer _bb, LoadoutPaint obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }