Beispiel #1
0
 public static Offset <BallInfo> CreateBallInfo(FlatBufferBuilder builder,
                                                Offset <Physics> physicsOffset               = default(Offset <Physics>),
                                                Offset <Touch> latestTouchOffset             = default(Offset <Touch>),
                                                Offset <DropShotBallInfo> dropShotInfoOffset = default(Offset <DropShotBallInfo>))
 {
     builder.StartObject(3);
     BallInfo.AddDropShotInfo(builder, dropShotInfoOffset);
     BallInfo.AddLatestTouch(builder, latestTouchOffset);
     BallInfo.AddPhysics(builder, physicsOffset);
     return(BallInfo.EndBallInfo(builder));
 }
Beispiel #2
0
 public static Offset <BallInfo> CreateBallInfo(FlatBufferBuilder builder,
                                                Offset <Physics> physicsOffset               = default(Offset <Physics>),
                                                Offset <Touch> latestTouchOffset             = default(Offset <Touch>),
                                                Offset <DropShotBallInfo> dropShotInfoOffset = default(Offset <DropShotBallInfo>),
                                                CollisionShape shape_type = CollisionShape.NONE,
                                                int shapeOffset           = 0)
 {
     builder.StartObject(5);
     BallInfo.AddShape(builder, shapeOffset);
     BallInfo.AddDropShotInfo(builder, dropShotInfoOffset);
     BallInfo.AddLatestTouch(builder, latestTouchOffset);
     BallInfo.AddPhysics(builder, physicsOffset);
     BallInfo.AddShapeType(builder, shape_type);
     return(BallInfo.EndBallInfo(builder));
 }