@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.
@@ -79,7 +79,6 @@ export interface IIslandEvents {
79
79
  export interface ISeeds {
80
80
  base: number;
81
81
  saved: number;
82
- milestoneModifierSaved: number;
83
82
  }
84
83
  export interface IIslandLoadOptions {
85
84
  isNewSave: boolean;
@@ -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
- * Gives civilization score based on how much is defined for this tile's terrain.
250
+ * Adds civilization score
256
251
  */
257
- changeCivilizationScore(score: number, source: string): void;
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[] | IterableIterator<Island> | readonly Stat[];
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;
@@ -126,6 +126,7 @@ export interface ITile extends Partial<ITileContainer> {
126
126
  npc?: NPC;
127
127
  overlays?: IOverlayInfo[];
128
128
  quality?: Quality;
129
+ civScore?: number;
129
130
  }
130
131
  export interface ITileOld {
131
132
  event?: TileEvent[];
@@ -78,30 +78,31 @@ export declare enum MultiplayerSyncCheck {
78
78
  Misc = 39,
79
79
  Modifier = 40,
80
80
  MoveToTile = 41,
81
- PenaltyFieldHashCode = 42,
82
- PlaceOnTile = 43,
83
- PlayerManager = 44,
84
- PlayerPositions = 45,
85
- Players = 46,
86
- PlayerSetup = 47,
87
- Random = 48,
88
- Reputation = 49,
89
- Seed = 50,
90
- SeededGenerator = 51,
91
- SkillGain = 52,
92
- StaminaChanges = 53,
93
- StatChange = 54,
94
- Stats = 55,
95
- StatusChange = 56,
96
- StatusEffect = 57,
97
- SyncChecks = 58,
98
- TemperatureManager = 59,
99
- Temporary = 60,
100
- Tick = 61,
101
- TileEvent = 62,
102
- Time = 63,
103
- UpdateDirection = 64,
104
- Weight = 65
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(tileScale: number): void;
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
- * Gives civilization score based on how much is defined for this tile's terrain.
92
+ * Refreshes the provided civ score for the given tile
93
93
  */
94
- function changeCivilizationScore(island: Island, x: number, y: number, z: number, add: boolean): void;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.11.4-beta.dev.20220219.1",
4
+ "version": "2.11.4-beta.dev.20220223.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",