@wayward/types 2.13.3-beta.dev.20230623.8 → 2.13.3-beta.dev.20230624.2

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.
@@ -44,8 +44,8 @@ import TimeManager from "game/time/TimeManager";
44
44
  import Translation from "language/Translation";
45
45
  import World from "renderer/world/World";
46
46
  import type { IPostSerializeCallback, IPreSerializeCallback, ISerializer } from "save/serializer/ISerializer";
47
- import type Version from "utilities/Version";
48
47
  import type { IVersionInfo } from "utilities/Version";
48
+ import Version from "utilities/Version";
49
49
  import { Direction } from "utilities/math/Direction";
50
50
  import type { IVector2, IVector3 } from "utilities/math/IVector";
51
51
  import type { Random } from "utilities/random/Random";
@@ -83,6 +83,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
83
83
  * The version the mapgen for this island uses
84
84
  */
85
85
  mapGenVersion: Version.String;
86
+ mapGenBuildTime?: number;
86
87
  /**
87
88
  * The version this island was last loaded on
88
89
  */
@@ -104,6 +105,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
104
105
  tileContainers: ITileContainer[];
105
106
  tileData: SaferNumberIndexedObject<SaferNumberIndexedObject<SaferNumberIndexedObject<ITileData[]>>>;
106
107
  readonly seeds: ISeeds;
108
+ get mapGenVersionInfo(): Version.Info;
107
109
  readonly seededRandom: Random<LegacySeededGenerator | PCGSeededGenerator>;
108
110
  readonly game: Game;
109
111
  /**
@@ -43,8 +43,13 @@ export default abstract class Screen extends Component {
43
43
  setBackground(background: Background): this;
44
44
  removeBackground(): this;
45
45
  hasContextMenu(): boolean;
46
+ /**
47
+ * @deprecated Use {@link getContextMenuMacroMatches}
48
+ */
46
49
  getPartialContextMenuMacros(): Macros.IBindableMatch | undefined;
50
+ getContextMenuMacroMatches(): Macros.IBindableMatch | undefined;
47
51
  hasPartialContextMenuMacro(api?: Pick<IBindHandlerApi, "input">, macroMatch?: Macros.IBindableMatch): boolean;
52
+ hasContextMenuMacroPartialOrMatch(api?: Pick<IBindHandlerApi, "input">, macroMatch?: Macros.IBindableMatch): boolean;
48
53
  /**
49
54
  * Remove the context menu from this element
50
55
  */
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.13.3-beta.dev.20230623.8",
4
+ "version": "2.13.3-beta.dev.20230624.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",