Skip to main content

Editor.Model.IEntityRegistry

Class

A registry of various entities.

Index

Example

// Get a list of abstract entities
const entityRegistry = pluginSystem.findInterface(Editor.Model.IEntityRegistry);
const abstractFilter = (entityType) => {
return entityRegistry.getMeta(entityType).isAbstract;
};

Extends

Properties

interfaceId

static interfaceId: InterfaceId

Unique identifier for the IEntityRegistry interface, used to look up this component via findInterface.

Methods

getMeta()

getMeta(entityType): Meta

Get the metadata of an entity.

Parameters

ParameterType
entityTypestring

Returns

Meta


getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

IPluginComponent.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

IPluginComponent.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

IPluginComponent.isOfType


isSame()

isSame(other): boolean

Returns true if this object refers to the same instance as the given object.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

IPluginComponent.isSame