public static Offset <PingPong.PlayerAction> CreatePlayerAction(FlatBufferBuilder builder, PingPong.MoveDirection move_direction = PingPong.MoveDirection.Up) { builder.StartTable(1); PlayerAction.AddMoveDirection(builder, move_direction); return(PlayerAction.EndPlayerAction(builder)); }
public static void AddMoveDirection(FlatBufferBuilder builder, PingPong.MoveDirection moveDirection) { builder.AddSbyte(0, (sbyte)moveDirection, 0); }