@kognifai/cogsengine
    Preparing search index...

    Interface RuntimeEntity

    Small Interface to support: runtime.Entity. factory methods

    interface RuntimeEntity {
        createRuntimeFactory(type: string): void;
        loadDefinitions(jsonDef: string): void;
        wrap(entityId: number): Entity;
    }
    Index

    Methods

    • Add runtime support for creating/wrapping entity of given type.

      Parameters

      • type: string

        Entity type, e.g. "Cube", "Group" etc.

      Returns void

    • Load definitions of new Entities Stored in asset scene format. "templates".

      Parameters

      • jsonDef: string

        Entity definition(s).

      Returns void

    • Returns entity filled in with components defined using runtime reflection. Entity ids normally not used by applications.

      Parameters

      • entityId: number

        ID to wrap.

      Returns Entity

      Wrapped entity if valid ID