Home Reference Source
public class | source

Entity

Extends:

events~EventEmitterConfigBase → Entity

Direct Subclass:

Park

A super-class that Parks/Resorts/etc. inherit from.
Handles general logic for objects that are a place/entity.

Constructor Summary

Public Constructor
public

constructor(options: object)

Construct a new Entity

Member Summary

Public Members
public get

Get entity's human-friendly fastpass support string

public get

Get entity's human-friendly FastPassReturnTimes support string

public get

Get entity's human-friendly language string

public get

Get entity's human-friendly location string

public get

Name: string: *

Get entity's human-friendly name string

public get

Now: string: *

Get entity's human-friendly moment now string

public get

Get entity's human-friendly openingtimes support string

public get

Get entity's human-friendly ride openingtimes support string

public get

Get entity's human-friendly waittimes support string

public get

Get entity's human-friendly timezone string

Method Summary

Public Methods
public

Return the current time for this entity in its local timezone

public

getTimeNowMoment(): moment

Return the current time for this entity in its local timezone

public

Get a globally unique ID for this entity

public

log(args: ...any)

Debug log

Inherited Summary

From class ConfigBase
public

config: *

Parse the config of a specific park as object

Public Constructors

public constructor(options: object) source

Construct a new Entity

Override:

ConfigBase#constructor

Params:

NameTypeAttributeDescription
options object

Public Members

public get FastPass: string: * source

Get entity's human-friendly fastpass support string

Return:

string

public get FastPassReturnTimes: string: * source

Get entity's human-friendly FastPassReturnTimes support string

Return:

string

public get LangOptions: string: * source

Get entity's human-friendly language string

Return:

string

public get LocationString: string: string source

Get entity's human-friendly location string

Return:

string

public get Name: string: * source

Get entity's human-friendly name string

Return:

string

public get Now: string: * source

Get entity's human-friendly moment now string

Return:

string

public get SupportsOpeningTimes: string: * source

Get entity's human-friendly openingtimes support string

Return:

string

public get SupportsRideSchedules: string: * source

Get entity's human-friendly ride openingtimes support string

Return:

string

public get SupportsWaitTimes: string: * source

Get entity's human-friendly waittimes support string

Return:

string

public get Timezone: string: * source

Get entity's human-friendly timezone string

Return:

string

Public Methods

public getTimeNow(): string source

Return the current time for this entity in its local timezone

Return:

string

public getTimeNowMoment(): moment source

Return the current time for this entity in its local timezone

Return:

moment

public getUniqueID(): string source

Get a globally unique ID for this entity

Return:

string

public log(args: ...any) source

Debug log

Params:

NameTypeAttributeDescription
args ...any

Message to debug log