@wayward/types 2.11.4-beta.dev.20220219.1 → 2.11.4-beta.dev.20220220.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.
- package/definitions/game/game/island/Island.d.ts +2 -2
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +1 -1
- package/definitions/game/game/reference/ReferenceManager.d.ts +1 -1
- package/definitions/game/game/tile/ITerrain.d.ts +1 -0
- package/definitions/game/renderer/RendererConstants.d.ts +2 -0
- package/definitions/game/utilities/game/TileHelpers.d.ts +2 -2
- package/package.json +1 -1
|
@@ -252,9 +252,9 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
252
252
|
*/
|
|
253
253
|
contaminateWater(point: IVector3): void;
|
|
254
254
|
/**
|
|
255
|
-
*
|
|
255
|
+
* Adds civilization score
|
|
256
256
|
*/
|
|
257
|
-
|
|
257
|
+
addCivilizationScore(score: number, source: string | undefined): void;
|
|
258
258
|
processTickFlags(tickFlag: TickFlag, ticks: number, realPlayers: Player[]): void;
|
|
259
259
|
processTickFlagsAsync(tickFlag: TickFlag, ticks: number, realPlayers: Player[], onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
260
260
|
private updateEntityFov;
|
|
@@ -47,7 +47,7 @@ export interface ITemplateOptions {
|
|
|
47
47
|
}
|
|
48
48
|
export declare function manipulateTemplates<T extends Array<string[] | undefined>>(island: Island, options: ITemplateOptions, ...templates: T): T;
|
|
49
49
|
export declare function spawnTemplate(island: Island, templateType: TileTemplateType, x: number, y: number, z: number, options?: ITemplateOptions): void;
|
|
50
|
-
export declare function setTileUnderDoodad(tile: ITile, x: number, y: number, doodadType: DoodadType, biomeType: BiomeType): void;
|
|
50
|
+
export declare function setTileUnderDoodad(island: Island, tile: ITile, x: number, y: number, z: number, doodadType: DoodadType, biomeType: BiomeType): void;
|
|
51
51
|
export declare function setupTiles(island: Island, tileGenArray: Uint16Array, tileGenQualityArray?: Uint16Array): void;
|
|
52
52
|
export declare function loadDifferences(island: Island): void;
|
|
53
53
|
export declare enum Pre240TerrainType {
|
|
@@ -44,7 +44,7 @@ interface IReferenceTypeMap {
|
|
|
44
44
|
export declare type Referenceable = IReferenceTypeMap[ReferenceableReferenceTypes];
|
|
45
45
|
export default class ReferenceManager {
|
|
46
46
|
static isEnumReference(type: ReferenceType): type is EnumReferenceTypes;
|
|
47
|
-
static getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | Player[] | readonly Milestone[] | readonly SkillType[] | readonly ItemType[] |
|
|
47
|
+
static getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | Player[] | readonly Milestone[] | readonly SkillType[] | readonly ItemType[] | readonly Stat[] | IterableIterator<Island>;
|
|
48
48
|
private referenceCursor;
|
|
49
49
|
create(): number;
|
|
50
50
|
get(thing: Referenceable): Reference | undefined;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import Vector2 from "utilities/math/Vector2";
|
|
11
12
|
export declare const emptyUint8Array: Uint8Array | null;
|
|
12
13
|
export declare const tileSize = 16;
|
|
13
14
|
export declare const inverseTileSize: number;
|
|
@@ -16,6 +17,7 @@ export declare const inverseSubTileSize: number;
|
|
|
16
17
|
export declare function getPixelOffset(pixels: number): number;
|
|
17
18
|
export declare const fourPixelOffset: number;
|
|
18
19
|
export declare const negativeFivePixelOffset: number;
|
|
20
|
+
export declare const cameraPositionOffset: Vector2;
|
|
19
21
|
export declare const defaultFadeInTime = 2000;
|
|
20
22
|
export declare const texCordsPerSprite = 6;
|
|
21
23
|
export declare function createTexCordArray(capacity: number): Float32Array;
|
|
@@ -89,9 +89,9 @@ declare module TileHelpers {
|
|
|
89
89
|
*/
|
|
90
90
|
function isOpenTile(island: Island, point: IVector3, tile?: ITile): boolean;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Refreshes the provided civ score for the given tile
|
|
93
93
|
*/
|
|
94
|
-
function
|
|
94
|
+
function refreshCivilizationScore(island: Island, x: number, y: number, z: number): void;
|
|
95
95
|
/**
|
|
96
96
|
* Check if a tile is a suitable spawn point
|
|
97
97
|
*/
|
package/package.json
CHANGED