(cls, filename=None, version=DEFAULT_VERSION)
return g
Create an empty game.

        Args:
          filename: An optional filename to use with error messages.
          version: The version ID of the empty game.

        Returns:
          A Game instance with valid but empty data regions.
Create an empty game.
Create an empty game .
def make_empty_game(cls, filename=None, version=DEFAULT_VERSION):
        """Create an empty game.

        Args:
          filename: An optional filename to use with error messages.
          version: The version ID of the empty game.

        Returns:
          A Game instance with valid but empty data regions.
        """
        g = cls(filename=filename)

        g.lua = Lua(version=version)
        g.lua.update_from_lines([])
        g.gfx = Gfx.empty(version=version)
        g.gff = Gff.empty(version=version)
        g.map = Map.empty(version=version, gfx=g.gfx)
        g.sfx = Sfx.empty(version=version)
        g.music = Music.empty(version=version)
        g.label = Gfx.empty(version=version)
        g.version = version

        return g
def make_empty_game ( cls , filename = None , version = DEFAULT_VERSION ) : g = cls ( filename = filename ) g . lua = Lua ( version = version ) g . lua . update_from_lines ( [ ] ) g . gfx = Gfx . empty ( version = version ) g . gff = Gff . empty ( version = version ) g . map = Map . empty ( version = version , gfx = g . gfx ) g . sfx = Sfx . empty ( version = version ) g . music = Music . empty ( version = version ) g . label = Gfx . empty ( version = version ) g . version = version return g