INNER CODE UNIT · Python

GameHandler

skarndev/umodel_tools · umodel_tools/game_profiles/__init__.py:16

class GameHandler(t.Protocol):
    """Modules adding support for specific games must implement this protocol.
    """

    # Name of the game
    GAME_NAME: str

    # Description of the game
    GAME_DESCRIPTION: str

    def process_material(mat: bpy.types.Material, desc_ast: lark.Tree, use_pbr: bool) -> None:
        """Does all sorts of unspecified processing on the material prior to texture imports.

        :param mat: Blender material we are processing.
        :desc_ast: Lark AST tree representing the corresponding material descriptor. Can be used to obtain
            any additional information required to implement game specifics.
        :use_pbr: True if material is imported in a PBR mode.
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…