@wayward/types 2.13.0-beta.dev.20230422.1 → 2.13.0-beta.dev.20230424.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.
Files changed (71) hide show
  1. package/definitions/game/audio/Music.d.ts +1 -2
  2. package/definitions/game/audio/SoundEffects.d.ts +1 -1
  3. package/definitions/game/game/Game.d.ts +1 -0
  4. package/definitions/game/game/doodad/Doodad.d.ts +1 -1
  5. package/definitions/game/game/doodad/DoodadManager.d.ts +3 -4
  6. package/definitions/game/game/doodad/IDoodad.d.ts +2 -2
  7. package/definitions/game/game/entity/Entity.d.ts +4 -1
  8. package/definitions/game/game/entity/IHuman.d.ts +10 -10
  9. package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +4 -1
  10. package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +1 -1
  11. package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +2 -1
  12. package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
  13. package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +7 -0
  14. package/definitions/game/game/entity/player/Customizations.d.ts +4 -4
  15. package/definitions/game/game/entity/player/IMessageManager.d.ts +2 -0
  16. package/definitions/game/game/entity/player/MessageManager.d.ts +3 -0
  17. package/definitions/game/game/entity/player/note/NoteManager.d.ts +1 -1
  18. package/definitions/game/game/entity/player/quest/Quests.d.ts +1 -2
  19. package/definitions/game/game/entity/player/quest/quest/Challenge.d.ts +2 -1
  20. package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +1 -1
  21. package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +1 -1
  22. package/definitions/game/game/inspection/infoProviders/CivilizationScore.d.ts +1 -1
  23. package/definitions/game/game/inspection/infoProviders/ContainedItems.d.ts +1 -1
  24. package/definitions/game/game/inspection/infoProviders/DoodadSkill.d.ts +1 -1
  25. package/definitions/game/game/island/IIsland.d.ts +2 -3
  26. package/definitions/game/game/island/Island.d.ts +5 -6
  27. package/definitions/game/game/island/IslandManager.d.ts +1 -1
  28. package/definitions/game/game/island/Port.d.ts +43 -0
  29. package/definitions/game/game/item/IItem.d.ts +13 -5
  30. package/definitions/game/game/item/IItemManager.d.ts +16 -2
  31. package/definitions/game/game/item/ItemDescriptions.d.ts +2 -2
  32. package/definitions/game/game/item/ItemFinder.d.ts +2 -2
  33. package/definitions/game/game/item/ItemManager.d.ts +52 -30
  34. package/definitions/game/game/mapping/IRegion.d.ts +22 -0
  35. package/definitions/game/game/temperature/TemperatureManager.d.ts +2 -2
  36. package/definitions/game/language/Dictionary.d.ts +2 -1
  37. package/definitions/game/language/DictionaryMap.d.ts +17 -15
  38. package/definitions/game/language/Translation.d.ts +4 -1
  39. package/definitions/game/language/TranslationsProvider.d.ts +1 -1
  40. package/definitions/game/language/dictionary/Message.d.ts +333 -329
  41. package/definitions/game/language/dictionary/Misc.d.ts +5 -4
  42. package/definitions/game/language/dictionary/UiTranslation.d.ts +791 -786
  43. package/definitions/game/language/english/creature/AiTypes.d.ts +1 -1
  44. package/definitions/game/language/english/creature/Corpses.d.ts +1 -1
  45. package/definitions/game/language/english/game/Regions.d.ts +13 -0
  46. package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
  47. package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +1 -1
  48. package/definitions/game/language/english/game/islandName/IslandNameOverrunWithCreatureDescriptors.d.ts +1 -1
  49. package/definitions/game/language/english/ui/ModLoadErrors.d.ts +1 -1
  50. package/definitions/game/language/english/ui/UsableActionTypes.d.ts +2 -2
  51. package/definitions/game/language/utility/TranslationSorter.d.ts +3 -3
  52. package/definitions/game/renderer/Overlays.d.ts +1 -1
  53. package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +15 -14
  54. package/definitions/game/resource/IResourcePath.d.ts +1 -1
  55. package/definitions/game/save/serializer/Serializer.d.ts +1 -1
  56. package/definitions/game/ui/IUi.d.ts +2 -1
  57. package/definitions/game/ui/component/dropdown/IslandPortsDropdown.d.ts +1 -1
  58. package/definitions/game/ui/old/OldUi.d.ts +0 -2
  59. package/definitions/game/ui/old/screens/InGameScreen.d.ts +11 -4
  60. package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +2 -2
  61. package/definitions/game/ui/screen/screens/game/dialog/CraftingDialog.d.ts +4 -4
  62. package/definitions/game/ui/screen/screens/game/dialog/IslandsShippingDialog.d.ts +5 -0
  63. package/definitions/game/ui/screen/screens/game/dialog/MapDialog.d.ts +3 -3
  64. package/definitions/game/ui/screen/screens/game/dialog/islands/IslandsDialog.d.ts +5 -1
  65. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +1 -1
  66. package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts +1 -2
  67. package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +1 -2
  68. package/definitions/game/ui/screen/screens/menu/menus/character/Swatch.d.ts +1 -1
  69. package/definitions/game/utilities/Version.d.ts +15 -9
  70. package/definitions/game/utilities/enum/Enums.d.ts +1 -1
  71. package/package.json +1 -1
@@ -16,9 +16,9 @@ import Human from "game/entity/Human";
16
16
  import type NPC from "game/entity/npc/NPC";
17
17
  import type Player from "game/entity/player/Player";
18
18
  import { Quality } from "game/IObject";
19
- import type { ContainerReference, IContainable, IContainer, IItemDescription, IItemWeightComponent, IMoveToTileOptions, IRecipe } from "game/item/IItem";
19
+ import type { ContainerReference, IContainable, IContainer, IItemDescription, IItemWeightComponent, IRecipe } from "game/item/IItem";
20
20
  import { ContainerType, CraftResult, ItemType, ItemTypeExtra, ItemTypeGroup } from "game/item/IItem";
21
- import type { IAddToContainerOptions, IDoodadsUsed, IGetBestItemsOptions, IGetItemOptions, IGetItemsOptions, IRequirementInfo } from "game/item/IItemManager";
21
+ import type { IAddToContainerResult, IDoodadsUsed, IGetBestItemsOptions, IGetItemOptions, IGetItemsOptions, IMoveItemOptions, IRequirementInfo } from "game/item/IItemManager";
22
22
  import { ContainerReferenceSource, CraftStatus, ICraftResultChances, WeightType } from "game/item/IItemManager";
23
23
  import Item from "game/item/Item";
24
24
  import { ObjectManager } from "game/ObjectManager";
@@ -34,29 +34,32 @@ import type { Random } from "utilities/random/Random";
34
34
  export interface IItemManagerEvents {
35
35
  create(item: Item): any;
36
36
  remove(item: Item): any;
37
- canMoveItem(human: Human | undefined, item: Item, toContainer: IContainer): boolean | undefined;
38
- canMoveItems(human: Human | undefined, fromContainer: IContainer, toContainer: IContainer, itemType: ItemType | undefined, ofQuality: Quality | undefined): boolean | undefined;
39
37
  /**
40
- * Called when an item is removed from a container.
41
- * @param item The item object.
38
+ * Called before moving items to another container
39
+ */
40
+ canMoveItems(human: Human | undefined, itemsToMove: Item[], fromContainer: IContainer | undefined, toContainer: IContainer, options?: IMoveItemOptions): boolean | undefined;
41
+ /**
42
+ * Called when items are removed from a container.
43
+ * @param items The items.
42
44
  * @param container The container object the item was removed from.
43
45
  * @param containerTile The tile of that container when the remove occurred.
44
46
  */
45
- containerItemRemove(item: Item, container: IContainer | undefined, containerTile: Tile | undefined): any;
47
+ containerItemRemove(items: Item[], container: IContainer | undefined, containerTile: Tile | undefined): any;
46
48
  /**
47
- * Called when an item is moved from one container to another.
48
- * @param item The item object.
49
- * @param containerFrom The container object the item was moved from. This container might be inventory or a container within the inventory.
49
+ * Called when items are moved from one container to another.
50
+ * @param items The items.
51
+ * @param containerFrom The container object the items were moved from. This container might be inventory or a container within the inventory.
50
52
  * @param containerFromTile The tile of containerFrom when the update occurred.
51
- * @param containerTo The container object the item was moved to. This container might be inventory or a container within the inventory.
53
+ * @param containerTo The container object the items were moved to. This container might be inventory or a container within the inventory.
52
54
  */
53
- containerItemUpdate(item: Item, containerFrom: IContainer | undefined, containerFromTile: Tile | undefined, containerTo: IContainer): any;
55
+ containerItemUpdate(items: Item[], containerFrom: IContainer | undefined, containerFromTile: Tile | undefined, containerTo: IContainer): any;
54
56
  /**
55
- * Called when an item is added to a container.
56
- * @param item The item object.
57
- * @param container The container object the item was added to. This container might be inventory or a container within the inventory.
57
+ * Called when items are added to a container.
58
+ * @param items The items.
59
+ * @param container The container object the items were added to. This container might be inventory or a container within the inventory.
60
+ * @param options Move item options.
58
61
  */
59
- containerItemAdd(item: Item, container: IContainer): any;
62
+ containerItemAdd(items: Item[], container: IContainer, options?: IMoveItemOptions): any;
60
63
  /**
61
64
  * Called when an item is crafted
62
65
  * @param human The human object
@@ -81,7 +84,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
81
84
  private static readonly cachedItemsThatAreUsedForGrowingPlants;
82
85
  private static readonly cachedItemsThatAreUsedInRecipes;
83
86
  private static readonly cachedWeights;
84
- static readonly cachedItemSpawns: Map<BiomeType, OptionalDescriptions<WorldZ, OptionalDescriptions<TerrainType, ItemType[]>>>;
87
+ static readonly cachedItemSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, Set<ItemType>>>>;
85
88
  static getItemTypes(): readonly ItemType[];
86
89
  static getItemsWithRecipes(): readonly ItemType[];
87
90
  static getBestItemForTier(item: ItemType | ItemTypeGroup): ItemType | undefined;
@@ -95,7 +98,10 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
95
98
  static isInGroup(itemType: ItemType, itemGroup: ItemTypeGroup | ItemType): boolean;
96
99
  static isItemExtra(type: number): type is ItemTypeExtra;
97
100
  static getGroupItems(itemGroup: ItemType | ItemTypeGroup): Set<ItemType>;
98
- private static getGroupItemsWithoutCache;
101
+ /**
102
+ * Gets a set of additional item types that belong to the specified group
103
+ */
104
+ private static getAdditionalGroupItemsWithoutCache;
99
105
  static getItemTypeGroupName(itemType: ItemType | ItemTypeGroup, article?: Article, count?: number): Translation;
100
106
  static getGroupDefault(itemGroup: ItemTypeGroup, weightType?: WeightType, ancestorGroups?: ItemTypeGroup[]): ItemType;
101
107
  /**
@@ -130,7 +136,34 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
130
136
  hashContainer(containable: IContainable, containerReferenceSource?: ContainerReferenceSource): string;
131
137
  hashContainerReference(containerReference: ContainerReference): string;
132
138
  updateContainedWithin(containable: IContainable, containedWithin: IContainer | undefined): void;
133
- addToContainerInternal(item: Item, container: IContainer, options?: IAddToContainerOptions): boolean;
139
+ /**
140
+ * Moves an item into a container
141
+ * @param human Human causing the item movement
142
+ * @param item Item to move
143
+ * @param toContainer Container to move the item to
144
+ * @param options Item move options
145
+ * @returns Result that tells you what moved
146
+ */
147
+ moveItemToContainer(human: Human | undefined, item: Item, toContainer: IContainer, options?: IMoveItemOptions): IAddToContainerResult;
148
+ /**
149
+ * Moves items from one container into another container
150
+ * @param human Human causing the item movement
151
+ * @param fromContainer Source container
152
+ * @param toContainer Destination container
153
+ * @param options Item move options
154
+ * @returns Result that tells you what moved
155
+ */
156
+ moveItemsFromContainer(human: Human | undefined, fromContainer: IContainer, toContainer: IContainer, options?: IMoveItemOptions): IAddToContainerResult;
157
+ /**
158
+ * Moves items to a container.
159
+ * Note: All the items must be contained within the same container.
160
+ * @param human Human causing the item movement
161
+ * @param item Items to move
162
+ * @param toContainer Destination container
163
+ * @param options Item move options
164
+ * @returns Result that tells you what moved
165
+ */
166
+ moveItemsToContainer(human: Human | undefined, items: Item[], toContainer: IContainer, options?: IMoveItemOptions): IAddToContainerResult;
134
167
  removeContainerItems(container: IContainer, removeContainedItems?: boolean): void;
135
168
  exists(item: Item): boolean;
136
169
  remove(item: Item, removeContainedItems?: boolean, extinguishTorches?: boolean): void;
@@ -140,19 +173,8 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
140
173
  create(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, container: IContainer | undefined, quality?: Quality, human?: Human, updateTables?: boolean): Item;
141
174
  createFake(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, human?: Human): Item;
142
175
  getContainedContainers(container: IContainer): IContainer[];
143
- moveAllFromContainerToInventory(human: Human, container: IContainer, ofQuality?: Quality): Item[];
144
176
  computeContainerWeight(container: IContainer): number;
145
177
  getMagicalWeightCapacity(container: IContainer): number;
146
- moveAllFromContainerToContainer(human: Human | undefined, fromContainer: IContainer, toContainer: IContainer, itemType?: ItemType | undefined, ofQuality?: Quality | undefined, checkWeight?: boolean, filterText?: string | undefined, onMoveItem?: (item: Item) => void, moveToTileOptions?: IMoveToTileOptions): Item[];
147
- /**
148
- * Moves an item into a container when the container has enough room for it
149
- * @param human Human causing the item movement
150
- * @param item Item to move
151
- * @param container Container to move the item to
152
- * @param moveToTileOptions When set, the movement will be animated
153
- * @returns True if the item was moved, false if it wasn't
154
- */
155
- moveToContainer(human: Human | undefined, item: Item, container: IContainer, moveToTileOptions?: IMoveToTileOptions): boolean;
156
178
  hasRoomInContainer(targetContainer: IContainer, itemToMove: Item): boolean;
157
179
  /**
158
180
  * Gets the name of a container
@@ -0,0 +1,22 @@
1
+ /*!
2
+ * Copyright 2011-2021 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
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
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import type Island from "game/island/Island";
12
+ import Translation from "language/Translation";
13
+ import { Direction } from "utilities/math/Direction";
14
+ interface IRegion extends Record<Uppercase<Direction.CardinalNames>, boolean> {
15
+ CENTER: boolean;
16
+ DIRECTION: Direction;
17
+ REGION: Translation;
18
+ }
19
+ declare namespace IRegion {
20
+ function get(island: Island, x: number, y: number): IRegion;
21
+ }
22
+ export default IRegion;
@@ -150,8 +150,8 @@ export default class TemperatureManager extends EventEmitter.Host<ITemperatureMa
150
150
  protected onCreateOrRemoveObject(_: any, object: Doodad | TileEvent | Creature | NPC): void;
151
151
  protected onEntityMove(object: EntityMovable, lastTile: Tile, tile: Tile): void;
152
152
  protected onUpdateTile(island: Island, tile: Tile, oldType: TerrainType): void;
153
- protected onItemContainerAdd(itemManager: ItemManager, item: Item, container?: IContainer): void;
154
- protected onItemContainerRemove(itemManager: ItemManager, item: Item, container: IContainer | undefined, containerTile: Tile | undefined): void;
153
+ protected onItemContainerAdd(itemManager: ItemManager, items: Item[], container?: IContainer): void;
154
+ protected onItemContainerRemove(itemManager: ItemManager, items: Item[], container: IContainer | undefined, containerTile: Tile | undefined): void;
155
155
  protected onItemFireUpdate(item: Item): void;
156
156
  protected onPlay(): void;
157
157
  protected onTickStart(island: Island): void;
@@ -118,6 +118,7 @@ declare enum Dictionary {
118
118
  UsableActionType = 106,
119
119
  Website = 107,
120
120
  WeightStatus = 108,
121
- WorldLayer = 109
121
+ WorldLayer = 109,
122
+ Region = 110
122
123
  }
123
124
  export default Dictionary;
@@ -8,19 +8,19 @@
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 { MilestoneSort } from "ui/screen/screens/game/dialog/IMilestonesDialog";
12
- import { SkillSort } from "ui/screen/screens/game/dialog/ISkillsDialog";
13
11
  import { Command } from "command/ICommand";
12
+ import { Quality } from "game/IObject";
13
+ import { WorldZ } from "game/WorldZ";
14
14
  import { BiomeType } from "game/biome/IBiome";
15
15
  import { DoodadType, DoodadTypeExtra, DoodadTypeGroup, GrowingStage } from "game/doodad/IDoodad";
16
- import { MapQuality } from "game/entity/action/actions/map/MapQuality";
17
- import { ActionType } from "game/entity/action/IAction";
18
- import { UsableActionType } from "game/entity/action/usable/UsableActionType";
19
16
  import { CombatDangerLevel, CombatStrength } from "game/entity/CombatStrengthManager";
20
- import { CreatureType } from "game/entity/creature/ICreature";
21
17
  import { AiType, DamageType, StatusType } from "game/entity/IEntity";
22
18
  import { EquipType, SkillType } from "game/entity/IHuman";
23
19
  import { Stat } from "game/entity/IStats";
20
+ import { ActionType } from "game/entity/action/IAction";
21
+ import { MapQuality } from "game/entity/action/actions/map/MapQuality";
22
+ import { UsableActionType } from "game/entity/action/usable/UsableActionType";
23
+ import { CreatureType } from "game/entity/creature/ICreature";
24
24
  import { NPCType } from "game/entity/npc/INPCs";
25
25
  import { Source } from "game/entity/player/IMessageManager";
26
26
  import { WeightStatus } from "game/entity/player/IPlayer";
@@ -31,9 +31,8 @@ import { BleedLevel } from "game/entity/status/handler/IBleeding";
31
31
  import { ExhaustionLevel } from "game/entity/status/handler/IExhausted";
32
32
  import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
33
33
  import { InspectType } from "game/inspection/IInspection";
34
- import { DurabilityLevel } from "game/inspection/infoProviders/doodad/IDurability";
35
34
  import { Level } from "game/inspection/infoProviders/ILevel";
36
- import { Quality } from "game/IObject";
35
+ import { DurabilityLevel } from "game/inspection/infoProviders/doodad/IDurability";
37
36
  import { BookType, EquipEffect, ItemType, ItemTypeExtra, ItemTypeGroup, RecipeLevel } from "game/item/IItem";
38
37
  import { CraftEfficacy } from "game/item/recipe/Crafter";
39
38
  import { MagicalPropertyType } from "game/magic/MagicalPropertyType";
@@ -48,11 +47,10 @@ import { IslandModifierType } from "game/options/modifiers/island/IslandModifier
48
47
  import { MilestoneModifierGroup } from "game/options/modifiers/milestone/MilestoneModifier";
49
48
  import Riddle from "game/riddle/Riddle";
50
49
  import { TempType } from "game/temperature/ITemperature";
51
- import { FireStage } from "game/tile/events/IFire";
52
50
  import { TerrainType } from "game/tile/ITerrain";
53
51
  import { TileEventType } from "game/tile/ITileEvent";
52
+ import { FireStage } from "game/tile/events/IFire";
54
53
  import { PartOfDay } from "game/time/ITimeManager";
55
- import { WorldZ } from "game/WorldZ";
56
54
  import Dictionary from "language/Dictionary";
57
55
  import { GameEndMessage } from "language/dictionary/GameEndMessage";
58
56
  import { Health, HealthAccuracy } from "language/dictionary/Health";
@@ -63,27 +61,29 @@ import { MiscTranslation } from "language/dictionary/Misc";
63
61
  import { MultiplayerCompatibility } from "language/dictionary/MultiplayerCompatibility";
64
62
  import Note from "language/dictionary/Note";
65
63
  import UiTranslation from "language/dictionary/UiTranslation";
66
- import { IslandName } from "language/english/game/islandName/IslandName";
67
64
  import { LighthouseName } from "language/english/game/LighthouseName";
65
+ import { IslandName } from "language/english/game/islandName/IslandName";
68
66
  import { ModProvide, ModType } from "mod/IModInfo";
69
67
  import { CanLoadState, ModLoadFailureReason } from "mod/IModManager";
70
68
  import { DisconnectReason, JoinServerRetryReason, UnableToJoinReason } from "multiplayer/IMultiplayer";
71
- import { MusicPlaylist, TooltipVisibilityOption } from "save/data/ISaveDataGlobal";
72
69
  import { SaveImportErrorReason, SaveSort } from "save/ISaveManager";
73
- import Bindable, { BindableType } from "ui/input/Bindable";
70
+ import { MusicPlaylist, TooltipVisibilityOption } from "save/data/ISaveDataGlobal";
74
71
  import { FontStyle } from "ui/IUi";
72
+ import Bindable, { BindableType } from "ui/input/Bindable";
75
73
  import { SortType } from "ui/old/IOldUi";
76
- import { Quadrant, QuadrantComponentContextMenuAction } from "ui/screen/screens/game/component/IQuadrantComponent";
77
74
  import { DialogId } from "ui/screen/screens/game/Dialogs";
78
75
  import { MessageTimestamp, QuadrantComponentId } from "ui/screen/screens/game/IGameScreenApi";
79
76
  import { MessageFilterDefault } from "ui/screen/screens/game/IMessages";
77
+ import { Quadrant, QuadrantComponentContextMenuAction } from "ui/screen/screens/game/component/IQuadrantComponent";
78
+ import { MilestoneSort } from "ui/screen/screens/game/dialog/IMilestonesDialog";
79
+ import { SkillSort } from "ui/screen/screens/game/dialog/ISkillsDialog";
80
80
  import { ActionSort } from "ui/screen/screens/game/static/actions/IActionsDrawer";
81
81
  import { MenuBarButtonType } from "ui/screen/screens/game/static/menubar/IMenuBarButton";
82
82
  import { CharacterSort } from "ui/screen/screens/menu/menus/character/Character";
83
83
  import { HelpArticle } from "ui/screen/screens/menu/menus/help/HelpArticleDescriptions";
84
84
  import { HighscoreSort } from "ui/screen/screens/menu/menus/highscores/IHighscoresMenu";
85
- import { Website } from "ui/screen/screens/menu/menus/main/component/IWebsite";
86
85
  import { Responsibility } from "ui/screen/screens/menu/menus/main/IAbout";
86
+ import { Website } from "ui/screen/screens/menu/menus/main/component/IWebsite";
87
87
  import { ModSort } from "ui/screen/screens/menu/menus/mods/IModsMenu";
88
88
  import { Direction } from "utilities/math/Direction";
89
89
  import { ChangeType } from "utilities/trello/ITrello";
@@ -112,6 +112,7 @@ declare const dictionaryMap: {
112
112
  19: typeof DamageType;
113
113
  20: typeof DialogId;
114
114
  21: typeof Direction;
115
+ 110: typeof Direction;
115
116
  22: typeof InfoDisplayLevel;
116
117
  23: typeof DoodadType;
117
118
  24: typeof DoodadTypeExtra;
@@ -224,6 +225,7 @@ export declare const strictDictionaries: {
224
225
  19: typeof DamageType;
225
226
  20: typeof DialogId;
226
227
  21: typeof Direction;
228
+ 110: typeof Direction;
227
229
  22: typeof InfoDisplayLevel;
228
230
  23: typeof DoodadType;
229
231
  24: typeof DoodadTypeExtra;
@@ -21,7 +21,7 @@ import { EquipSlotTranslation, MiscTranslation } from "language/dictionary/Misc"
21
21
  import type UiTranslation from "language/dictionary/UiTranslation";
22
22
  import type { DictionaryEntryEnums } from "language/DictionaryMap";
23
23
  import TranslationImpl from "language/impl/TranslationImpl";
24
- import type { ISerializedTranslation } from "language/ITranslation";
24
+ import type { ISerializedTranslation, TranslationArg } from "language/ITranslation";
25
25
  import { formatListTranslation } from "language/segment/FormatListSegment";
26
26
  import ITranslationSorter from "language/utility/TranslationSorter";
27
27
  import type { IStringSection } from "utilities/string/Interpolator";
@@ -117,6 +117,8 @@ declare module Translation {
117
117
  const damage: (damageTypes: ArrayOr<DamageType>, colorize?: boolean, reformatter?: TranslationImpl | ((type: DamageType) => Translation) | undefined) => TranslationImpl;
118
118
  function growthStage(stage: GrowingStage, spores?: boolean): TranslationImpl;
119
119
  function growthStage(stage?: GrowingStage, spores?: boolean): TranslationImpl | undefined;
120
+ function merge(...content: TranslationArg[]): TranslationImpl;
121
+ function mergeSpaced(...content: TranslationArg[]): TranslationImpl;
120
122
  const getString: typeof TranslationImpl.getString;
121
123
  const resolve: typeof TranslationImpl.resolve;
122
124
  function colorizeQuality(quality: Quality | string | undefined): Translation;
@@ -147,5 +149,6 @@ declare module Translation {
147
149
  function reformatSingularNoun(article: Article): Translation;
148
150
  function reformatSingularNoun(count: number, article: Article): Translation;
149
151
  function reformatSingularNoun(count?: number | Article, article?: Article): Translation;
152
+ function upgrade(translation: ISerializedTranslation, id: `${keyof typeof Dictionary}:${string}`, dictionary: Dictionary, entry: number): void;
150
153
  }
151
154
  export default Translation;
@@ -43,7 +43,7 @@ export default abstract class TranslationsProvider {
43
43
  readonly contextRules: IContextRules;
44
44
  constructor(language: string);
45
45
  getTranslation(dictionaryName: string, entry: string): string[] | undefined;
46
- setDictionary(dictionary: string, translations: Record<string, string | string[]>): this;
46
+ setDictionary(dictionary: string, translations: Record<string, string | string[]> | Map<any, string | string[]>): this;
47
47
  setIrregularRules(...rules: Array<[string, string]>): this;
48
48
  setPluralizationRules(...rules: Array<PluralRule | [string, string]>): this;
49
49
  setSingularizationRules(...rules: Array<SingularRule | [string, string]>): this;