dacha
    Preparing search index...

    Class TemplateCollection

    The actor templates of the game. Systems get it in options.templateCollection.

    Index
    • Returns a template by its id. Child templates can be found by id too.

      Parameters

      • id: string

      Returns TemplateConfig

      Error If there is no template with this id.

    • Returns all templates.

      Parameters

      • OptionalonlyRoots: boolean

        Returns only the top-level templates, without their children.

      Returns TemplateConfig[]