public static Offset <GameOverPacket> CreateGameOverPacket(FlatBufferBuilder builder,
                                                            short opcode        = 0,
                                                            bool gameSuccessful = false)
 {
     builder.StartObject(2);
     GameOverPacket.AddOpcode(builder, opcode);
     GameOverPacket.AddGameSuccessful(builder, gameSuccessful);
     return(GameOverPacket.EndGameOverPacket(builder));
 }
 public static GameOverPacket GetRootAsGameOverPacket(ByteBuffer _bb, GameOverPacket obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }