omega-game-engine
    Preparing search index...
    Index

    Constructors

    Methods

    • Adds a class constructor or factory function as a dependency for instantiation.

      Parameters

      • className: string

        The name of the class. *

      • func: Function

        The constructor or factory function to be called for instantiation. *

      • Optionalmetadata: ClassMetadata

      Returns void

    • Adds a class constructor or factory function as a dependency for instantiation.

      Parameters

      • className: string

        The name of the class. *

      Returns Function

    • Instantiates an object from a registered class name.

      Type Parameters

      • T

      Parameters

      • className: string

        The name of the class to instantiate. *

      • Optionalargs: any[]

        Optional arguments to pass to the constructor/factory function. *

      Returns undefined | T

      • A new instance of the specified class, or null if the class is not found.