dot big bang

Developer API
Menu

Class VoxelObjectRef<T>

All
  • Public
  • Public/Protected
  • All

Type parameters

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

id

  • get id(): string
  • Returns the id of the Resource this ResourceRef points to. If this ResourceRef not set to anything, the id is the empty string.

    Returns string

type

  • Returns the type of Resource that this ResourceRef can point to.

    Returns ResourceType

Methods

clone

  • Returns a new ResourceRef object that's a copy of this one. Note that what gets cloned here is just the ResourceRef object (i.e. the indirection to a Resource). The underlying Resource, if any, isn't duplicated/cloned.

    Returns VoxelObjectRef<T>

copy

exists

get

  • get(): T
  • Returns the Resource pointed to by this ResourceRef or null if it wasn't set.

    Returns T

set

  • Sets this ResourceRef to point to the provided Resource. If it is set to null, this ResourceRef is cleared and won't point to anything.

    Parameters

    Returns void