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)); }
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)); }
public static BallInfo GetRootAsBallInfo(ByteBuffer _bb, BallInfo obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }