Class default<DescriptionType, TypeType, TagType, CounterType>Abstract

Type Parameters

  • DescriptionType = unknown

  • TypeType extends number = number

  • TagType = unknown

  • CounterType = unknown

Hierarchy

Implements

Constructors

  • Type Parameters

    • DescriptionType = unknown

    • TypeType extends number = number

    • TagType = unknown

    • CounterType = unknown

    Parameters

    Returns default<DescriptionType, TypeType, TagType, CounterType>

Properties

_description?: DescriptionType
entityType: EntityType
event: IEventEmitter<default<DescriptionType, TypeType, TagType, CounterType>, IEntityEvents> = ...
id: number
islandId: `${number},${number}`
preventRendering?: boolean
referenceId?: number

Do not use this property directly, instead use `game.references.getReference()

renamed?: string | ISerializedTranslation
tileUpdateType: TileUpdateType
type: TypeType
x: number
y: number

Accessors

  • get asCorpse(): undefined | default
  • Returns undefined | default

  • get asDoodad(): undefined | default
  • Returns undefined | default

  • get asEntity(): default<DescriptionType, TypeType, TagType, unknown>
  • Returns default<DescriptionType, TypeType, TagType, unknown>

  • get asEntityMovable(): undefined | default<DescriptionType, TypeType, TagType, unknown>
  • Returns undefined | default<DescriptionType, TypeType, TagType, unknown>

  • get asEntityWithStats(): undefined | default<DescriptionType, TypeType, TagType>
  • Returns undefined | default<DescriptionType, TypeType, TagType>

  • get asHuman(): undefined | default<number>
  • Returns undefined | default<number>

  • get asItem(): undefined | default
  • Returns undefined | default

  • get asLocalPlayer(): undefined | default
  • Returns undefined | default

  • get asTileEvent(): undefined | default
  • Returns undefined | default

  • get description(): undefined | DescriptionType
  • Get the entities description

    Returns undefined | DescriptionType

  • get island(): default
  • Returns default

  • get point(): undefined | IVector3
  • Location of the entity on the world. Parent classes will probably mark this as always defined

    Returns undefined | IVector3

  • get reference(): undefined | Reference
  • Returns undefined | Reference

  • get tile(): undefined | default
  • Tile the entity is on in the world. Parent classes will probably mark this as always defined

    Returns undefined | default

  • get tilesAround(): undefined | default[]
  • Returns undefined | default[]

Methods

  • Adds a referenceId to the entity if it doesn't already have one

    Returns void

  • Parameters

    • tag: TagType

    Returns void

  • Parameters

    Returns boolean

  • Returns void

  • Gets a data

    Returns

    Data value or undefined if it wasn't found

    Type Parameters

    • T

    Parameters

    • key: string

      Data key

    Returns undefined | T

  • Called when filling out the entities description for the first time

    Returns undefined | DescriptionType

  • Returns string

  • Returns default

  • Gets the temperature produced by this object. Positive values are "heat", negative values are "cold". Refer to the values of the Temperature enum to see the possible range. If this method is not implemented, or it returns undefined, Temperature.Neutral is used.

    Returns undefined | number

  • Check if a data was set

    Returns

    True if the data exists, false if it doesn't

    Parameters

    • key: string

      Data key

    Returns boolean

  • Parameters

    • tag: TagType

    Returns boolean

  • Returns default<number>[]

  • Parameters

    • entity: default<DescriptionType, number, unknown, unknown>

    Returns boolean

  • Returns FireType

  • Returns boolean

  • Checks if the entity is within the viewport bounds of one or more humans

    Returns boolean

  • Parameters

    • type: SfxType
    • Optional delay: number
    • Optional speed: number

    Returns void

  • Removes a data

    Returns

    True when the data is removed. False if the key wasn't set

    Parameters

    • key: string

      Data key

    Returns boolean

  • Parameters

    • tag: TagType

    Returns void

  • Parameters

    Returns void

  • Sets a data

    Rturns

    The value

    Type Parameters

    • T

    Parameters

    • key: string

      Data key

    • value: T

      Data value

    Returns T

  • Parameters

    Returns void

  • Returns string

Generated using TypeDoc