Hierarchy

Implements

Constructors

  • Parameters

    Returns default

Properties

encodedCalculatedCache: Map<number, Map<number, Uint32Array>> = ...
encodedGuaranteedCorrectCache: Map<number, Map<number, Uint32Array>> = ...
encodedProducedCache: Map<number, Map<number, Uint32Array>> = ...
event: IEventEmitter<default, ITemperatureManagerEvents>
temperatureBoundaryMaxVector: default

Methods

  • Parameters

    • z: WorldZ

    Returns void

  • Returns void

  • Clears temperature caching for the container

    Parameters

    Returns void

  • Clears temperature caching for the container

    Parameters

    • containerHash: string

    Returns void

  • Clears all container caches

    Returns void

  • Returns void

  • Returns the current overall temperature for the given tile.

    Parameters

    • tile: default
    • serverSideSource: undefined | GetterOfOr<string>

    Returns number

  • Returns the base temperature.

    Returns number

  • Returns Readonly<IRange>

  • Returns the temperature modifier at the given time.

    Parameters

    Returns number

  • Returns the cached calculated temperature for a tile. If a tile has not been calculated yet, this will return TEMPERATURE_INVALID.

    Parameters

    Returns number

  • Returns the cached produced temperature on a tile. If the production of a tile has not been calculated yet, this will return TEMPERATURE_INVALID.

    Parameters

    Returns number

  • Returns the current temperature for a container, calculated by combining the tile temperature and the combined temperature of the items inside

    Parameters

    • container: IContainer
    • serverSideSource: undefined | GetterOfOr<string>

    Returns number

  • Get the combined temperature of the items in the container.

    Returns

    temperature or undefined if the container/contained items do not produce temperatures

    Parameters

    • container: IContainer
    • containerHash: string = ...

    Returns undefined | number

  • Returns the produced temperature for this container, calculated by combining the min and max temperatures of the items inside.

    Returns

    temperature or undefined if the container/contained items do not produce temperatures

    Parameters

    • container: IContainer
    • containerHash: string = ...
    • applyInsulation: boolean = true

      Whether to apply the container's insulation to the produced temperature value. For example, containers with no insulation return the exact temperature they produce, while containers with maximum insulation return Temperature.Neutral

    Returns undefined | number

  • Returns the temperature modifier of the given layer, at the given time.

    Parameters

    Returns number

  • Parameters

    • z: WorldZ

    Returns number

  • Parameters

    • z: WorldZ

    Returns IRange

  • Parameters

    Returns number

  • Parameters

    • tile: default
    • serverSideSource: undefined | GetterOfOr<string>

    Returns IRange

  • Returns the temperature of the given tile, produced by combining the temperatures of each type.

    Parameters

    • tile: default
    • serverSideSource: undefined | GetterOfOr<string>

    Returns number

  • Called after the island map size is configured

    Returns void

  • Run inventory updates when human changes Z

    Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • invalidateContainers: boolean = true
    • source: GetterOfOr<string>

    Returns void

Generated using TypeDoc