Options
All
  • Public
  • Public/Protected
  • All
Menu

List of all SharedObjects with current game. Can be used to get references to objets with certain tags or types.

Hierarchy

  • SharedObjectCache

Index

Constructors

constructor

Properties

Private _cache

_cache: SharedObject[]

Accessors

CachedObjects

  • All currently cached SharedObjects.

    Returns SharedObject[]

Methods

CacheObject

  • Add an object to the cache.

    Parameters

    Returns void

FindObjectWithId

  • Returns the cached object with given id. Returns null if no object with given id is cached.

    Parameters

    • id: number

      Id to be used to identify object to return.

    Returns SharedObject

FindObjectWithTag

  • Returns the first cached object that has the given tag. Returns null if no object with given tag is cached.

    Parameters

    • tag: string

      Tag used to identify object to return.

    Returns SharedObject

FindObjectsWithTag

  • Returns all cached obhects that have the given tag.

    Parameters

    • tag: string

      Tag used to identify objects to return.

    Returns SharedObject[]

UnCacheObject

  • Remove an object from the cache.

    Parameters

    Returns void

UnCacheObjectWithId

  • UnCacheObjectWithId(id: number): void
  • Removes an object with given id.

    Parameters

    • id: number

      Id to be used to identify object to remove.

    Returns void

Generated using TypeDoc