@wayward/types 2.11.4-beta.dev.20220219.1 → 2.11.4-beta.dev.20220223.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/IIsland.d.ts +0 -1
- package/definitions/game/game/island/Island.d.ts +2 -7
- 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/multiplayer/IMultiplayer.d.ts +26 -24
- package/definitions/game/renderer/RendererConstants.d.ts +2 -0
- package/definitions/game/renderer/world/WorldRenderer.d.ts +1 -1
- package/definitions/game/utilities/game/TileHelpers.d.ts +2 -2
- package/package.json +1 -1
|
@@ -87,11 +87,6 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
87
87
|
loadCount: number;
|
|
88
88
|
seeds: ISeeds;
|
|
89
89
|
readonly seededRandom: Random<SeededGenerator>;
|
|
90
|
-
/**
|
|
91
|
-
* Random for milestone modifiers. You should only use the one in the default island
|
|
92
|
-
* todo: remove since this is no longer used
|
|
93
|
-
*/
|
|
94
|
-
readonly seededMilestoneModifiersRandom: Random<SeededGenerator>;
|
|
95
90
|
/**
|
|
96
91
|
* Set of players on this island
|
|
97
92
|
*/
|
|
@@ -252,9 +247,9 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
252
247
|
*/
|
|
253
248
|
contaminateWater(point: IVector3): void;
|
|
254
249
|
/**
|
|
255
|
-
*
|
|
250
|
+
* Adds civilization score
|
|
256
251
|
*/
|
|
257
|
-
|
|
252
|
+
addCivilizationScore(score: number, source: string | undefined): void;
|
|
258
253
|
processTickFlags(tickFlag: TickFlag, ticks: number, realPlayers: Player[]): void;
|
|
259
254
|
processTickFlagsAsync(tickFlag: TickFlag, ticks: number, realPlayers: Player[], onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
260
255
|
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;
|
|
@@ -78,30 +78,31 @@ export declare enum MultiplayerSyncCheck {
|
|
|
78
78
|
Misc = 39,
|
|
79
79
|
Modifier = 40,
|
|
80
80
|
MoveToTile = 41,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
81
|
+
Option = 42,
|
|
82
|
+
PenaltyFieldHashCode = 43,
|
|
83
|
+
PlaceOnTile = 44,
|
|
84
|
+
PlayerManager = 45,
|
|
85
|
+
PlayerPositions = 46,
|
|
86
|
+
Players = 47,
|
|
87
|
+
PlayerSetup = 48,
|
|
88
|
+
Random = 49,
|
|
89
|
+
Reputation = 50,
|
|
90
|
+
Seed = 51,
|
|
91
|
+
SeededGenerator = 52,
|
|
92
|
+
SkillGain = 53,
|
|
93
|
+
StaminaChanges = 54,
|
|
94
|
+
StatChange = 55,
|
|
95
|
+
Stats = 56,
|
|
96
|
+
StatusChange = 57,
|
|
97
|
+
StatusEffect = 58,
|
|
98
|
+
SyncChecks = 59,
|
|
99
|
+
TemperatureManager = 60,
|
|
100
|
+
Temporary = 61,
|
|
101
|
+
Tick = 62,
|
|
102
|
+
TileEvent = 63,
|
|
103
|
+
Time = 64,
|
|
104
|
+
UpdateDirection = 65,
|
|
105
|
+
Weight = 66
|
|
105
106
|
}
|
|
106
107
|
export declare const maxPlayers = 32;
|
|
107
108
|
export declare const packetTickRate = 16;
|
|
@@ -110,6 +111,7 @@ export declare const defaultSshServerPort = 38742;
|
|
|
110
111
|
export declare const defaultSshServerUsername = "wayward";
|
|
111
112
|
export declare const steamLobbyPrefix = "steam:";
|
|
112
113
|
export declare const checkConnectionMatchmakingId = "check";
|
|
114
|
+
export declare const syncCheckWaitingResetTime = 5000;
|
|
113
115
|
export declare const defaultSyncChecks: MultiplayerSyncCheck[];
|
|
114
116
|
export declare const networkingOptions: IMultiplayerNetworkingOptions;
|
|
115
117
|
export declare function getDefaultMultiplayerOptions(): IMultiplayerOptions;
|
|
@@ -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;
|
|
@@ -167,7 +167,7 @@ export default class WorldRenderer extends EventEmitter.Host<IWorldRendererEvent
|
|
|
167
167
|
getPixelSize(): number;
|
|
168
168
|
getZoom(): number;
|
|
169
169
|
getTileScale(): number;
|
|
170
|
-
setTileScale
|
|
170
|
+
private setTileScale;
|
|
171
171
|
setZoom(zoom: number): void;
|
|
172
172
|
setViewport(view: Vector2): void;
|
|
173
173
|
getViewport(): Vector2;
|
|
@@ -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