@wayward/types 2.14.4-beta.dev.20250304.1 → 2.14.4-beta.dev.20250307.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,7 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
38
38
|
private static readonly cachedDoodadGroups;
|
39
39
|
static readonly cachedDoodadSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, DoodadType[]>>>;
|
40
40
|
private static readonly cachedDoodadsInGroup;
|
41
|
+
private static cachedMaximumGrowthTime;
|
41
42
|
private readonly scarecrows;
|
42
43
|
static getBestDoodadForTier(doodad: DoodadType | DoodadTypeGroup): DoodadType | undefined;
|
43
44
|
static generateLookups(): void;
|
@@ -46,6 +47,7 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
46
47
|
static isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
|
47
48
|
static getGroups(doodadType: DoodadType): DoodadTypeGroup[];
|
48
49
|
static getDoodadsInGroup(doodadTypeGroup: DoodadTypeGroup): DoodadType[];
|
50
|
+
static getMaximumGrowthTime(): number;
|
49
51
|
/**
|
50
52
|
* Checks if a number is a DoodadType or DoodadTypeExtra.
|
51
53
|
* @param type a number (DoodadType/DoodadTypeExtra enum).
|
@@ -330,4 +330,9 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
330
330
|
* Returns the type of liquid that can be gathered from the tile
|
331
331
|
*/
|
332
332
|
getLiquidGatherType(terrainType: TerrainType, terrainDescription: ITerrainDescription): keyof ILiquidGather | undefined;
|
333
|
+
/**
|
334
|
+
* Calculate the maximum travel time (derived currently from the maximum growth time of doodads - we don't need to simulate past that value).
|
335
|
+
* @returns number equal to the maximum travel time.
|
336
|
+
*/
|
337
|
+
getMaximumTravelTime(): number;
|
333
338
|
}
|
package/package.json
CHANGED