@wayward/types 2.14.3-beta.dev.20241226.1 → 2.14.4-beta
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/IGlobal.d.ts +2 -9
- package/definitions/game/game/Game.d.ts +7 -7
- package/definitions/game/game/IGame.d.ts +18 -2
- package/definitions/game/game/ILoot.d.ts +1 -0
- package/definitions/game/game/IObject.d.ts +3 -2
- package/definitions/game/game/doodad/Doodad.d.ts +18 -9
- package/definitions/game/game/doodad/DoodadManager.d.ts +2 -0
- package/definitions/game/game/doodad/DoodadUtilities.d.ts +25 -0
- package/definitions/game/game/doodad/IDoodad.d.ts +30 -0
- package/definitions/game/game/entity/Entity.d.ts +11 -4
- package/definitions/game/game/entity/EntityManager.d.ts +10 -3
- package/definitions/game/game/entity/Human.d.ts +17 -4
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +9 -8
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +32 -30
- package/definitions/game/game/entity/action/IAction.d.ts +30 -23
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Alter.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Consecrate.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DiscoverRecipe.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DumpItems.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/EquipFromArmorStand.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ExcavateCollapse.d.ts +24 -0
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Exude.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Kneel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rotate.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Stack.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SwapWithArmorStand.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/TakeFromArmorStand.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmDumpDropItems.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +18 -1
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +2 -0
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/creature/Creature.d.ts +11 -2
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +2 -1
- package/definitions/game/game/entity/creature/ICreature.d.ts +25 -1
- package/definitions/game/game/entity/player/Player.d.ts +17 -2
- package/definitions/game/game/entity/player/quest/quest/IQuest.d.ts +1 -0
- package/definitions/game/game/inspection/InfoProvider.d.ts +0 -2
- package/definitions/game/game/inspection/infoProviders/LevelValue.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/MagicalDamageReduction.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/MagicalDamageRegeneration.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadScareRadius.d.ts +20 -0
- package/definitions/game/game/inspection/infoProviders/doodad/StillWater.d.ts +3 -5
- package/definitions/game/game/inspection/infoProviders/item/ItemInvoke.d.ts +20 -0
- package/definitions/game/game/inspection/infoProviders/item/MagicalSourceTooltip.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +4 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/GenericInfo.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/MagicInspection.d.ts +2 -2
- package/definitions/game/game/island/Island.d.ts +10 -3
- package/definitions/game/game/island/automation/IAutomation.d.ts +10 -0
- package/definitions/game/game/item/IItem.d.ts +28 -14
- package/definitions/game/game/item/IItemManager.d.ts +2 -2
- package/definitions/game/game/item/Item.d.ts +20 -8
- package/definitions/game/game/item/ItemFinder.d.ts +2 -1
- package/definitions/game/game/item/ItemManager.d.ts +7 -7
- package/definitions/game/game/item/ItemReference.d.ts +3 -3
- package/definitions/game/game/item/MagicalLoot.d.ts +21 -0
- package/definitions/game/game/magic/IMagicalProperty.d.ts +85 -0
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +7 -75
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +25 -6
- package/definitions/game/game/mapgen/IMapGen.d.ts +1 -1
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +1 -1
- package/definitions/game/game/meta/SaveLoad.d.ts +1 -1
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +111 -109
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -0
- package/definitions/game/game/milestones/Milestones.d.ts +2 -0
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +1 -1
- package/definitions/game/game/options/GameOptions.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +4 -0
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +126 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Afflicted.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Benevolent.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Boundless.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Crafter.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Curator.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Dedicated.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Diverse.d.ts +4 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Doctor.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/DragonSlayer.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Exsanguinated.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Exterminator.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Gardener.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Gatherer.d.ts +4 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Grandmaster.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Helmsman.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Hounded.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Hunter.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Huntsman.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Invoker.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Locksmith.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Malevolent.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/MasterOfAll.d.ts +4 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Merchant.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Multitasker.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Navigator.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Operator.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Rouseabout.d.ts +4 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/RunekeeperModifier.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Serene.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Statistician.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Talented.d.ts +3 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Thrower.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Traitor.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Trapper.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Treasurer.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Turbulent.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/StatBonusMilestoneModifier.d.ts +2 -0
- package/definitions/game/game/reference/IReferenceManager.d.ts +2 -1
- package/definitions/game/game/reference/ReferenceManager.d.ts +1 -1
- package/definitions/game/game/tile/ITileEvent.d.ts +2 -1
- package/definitions/game/game/tile/Tile.d.ts +37 -3
- package/definitions/game/game/tile/TileEvent.d.ts +0 -1
- package/definitions/game/game/tile/TileEventManager.d.ts +1 -1
- package/definitions/game/game/tile/events/Fire.d.ts +1 -1
- package/definitions/game/game/tile/events/MeltingTile.d.ts +1 -1
- package/definitions/game/game/tile/events/Puddles.d.ts +1 -1
- package/definitions/game/game/time/TimeManager.d.ts +8 -0
- package/definitions/game/language/Dictionary.d.ts +60 -58
- package/definitions/game/language/DictionaryMap.d.ts +122 -114
- package/definitions/game/language/ITranslation.d.ts +2 -0
- package/definitions/game/{multiplayer/packets/shared/DiscoverRecipePacket.d.ts → language/MagicAffix.d.ts} +5 -9
- package/definitions/game/language/Translation.d.ts +1 -2
- package/definitions/game/language/dictionary/Health.d.ts +2 -1
- package/definitions/game/language/dictionary/Message.d.ts +855 -830
- package/definitions/game/language/dictionary/Misc.d.ts +31 -26
- package/definitions/game/language/dictionary/UiTranslation.d.ts +931 -910
- package/definitions/game/language/english/item/MagicalPropertyAffixes.d.ts +13 -0
- package/definitions/game/language/english/item/MagicalSubPropertyAffixes.d.ts +13 -0
- package/definitions/game/language/impl/TranslationImpl.d.ts +8 -2
- package/definitions/game/mod/IMod.d.ts +1 -1
- package/definitions/game/multiplayer/IMultiplayer.d.ts +79 -76
- package/definitions/game/multiplayer/Multiplayer.d.ts +1 -1
- package/definitions/game/multiplayer/SyncRegion.d.ts +22 -0
- package/definitions/game/multiplayer/packets/IPacket.d.ts +3 -1
- package/definitions/game/renderer/IRenderer.d.ts +27 -26
- package/definitions/game/renderer/RenderersNotifiers.d.ts +2 -2
- package/definitions/game/renderer/notifier/INotifier.d.ts +51 -2
- package/definitions/game/renderer/notifier/Notifier.d.ts +2 -2
- package/definitions/game/renderer/world/WorldRenderer.d.ts +2 -1
- package/definitions/game/resource/IResourceLoader.d.ts +18 -18
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/SaveManager.d.ts +1 -1
- package/definitions/game/save/SaveMetadata.d.ts +1 -1
- package/definitions/game/save/data/ISaveData.d.ts +23 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +3 -0
- package/definitions/game/save/data/SaveData.d.ts +10 -1
- package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/serializer/ISerializer.d.ts +1 -1
- package/definitions/game/save/serializer/PropertiesToSerialize.d.ts +5 -1
- package/definitions/game/save/serializer/Serializer.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradePlayer.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradeSaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradeVersion.d.ts +18 -3
- package/definitions/game/save/upgrade/UpgradeVersionRegistry.d.ts +4 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/_beta.2.14.0-dev20240828.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev00000001.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev00000002.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240827.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240828.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240829.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240901.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240905.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241024.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241129.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.3/beta2.14.3-dev20241223.d.ts +1 -1
- package/definitions/game/save/upgrade/versions/beta2.14.4/beta.2.14.4-dev20250422.d.ts +12 -0
- package/definitions/game/save/upgrade/versions/beta2.14.4/beta2.14.4-dev20241231.d.ts +12 -0
- package/definitions/game/save/upgrade/versions/beta2.14.4/beta2.14.4-dev20250220.d.ts +12 -0
- package/definitions/game/steamworks/ISteamworks.d.ts +1 -6
- package/definitions/game/steamworks/Steamworks.d.ts +14 -5
- package/definitions/game/ui/{screen/screens/splash → component}/Notice.d.ts +4 -2
- package/definitions/game/ui/component/dropdown/IslandDropdown.d.ts +1 -1
- package/definitions/game/ui/component/dropdown/MagicalPropertyDropdown.d.ts +1 -2
- package/definitions/game/ui/input/Bindable.d.ts +143 -142
- package/definitions/game/ui/input/InputManager.d.ts +4 -2
- package/definitions/game/ui/input/Macros.d.ts +1 -1
- package/definitions/game/ui/screen/screens/SplashScreen.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/InspectionsTooltipHandler.d.ts +5 -1
- package/definitions/game/ui/screen/screens/game/ReferenceTooltipHandler.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +0 -1
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +6 -0
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +4 -0
- package/definitions/game/ui/screen/screens/game/component/item/ItemComponentEventBus.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/dialog/QuestDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/dialog/equipment/EquipmentSlotTooltip.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/unlockables/UnlockablesDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/static/messages/MessageLog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/util/item/ItemStylesheet.d.ts +12 -0
- package/definitions/game/ui/screen/screens/menu/menus/main/ChangelogMenu.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/ErrorReportingNotice.d.ts +14 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/TabDeveloper.d.ts +3 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/TabSaveData.d.ts +1 -0
- package/definitions/game/ui/screen/screens/splash/DevelopmentBranchNotice.d.ts +1 -1
- package/definitions/game/ui/tooltip/Tooltip.d.ts +2 -2
- package/definitions/game/ui/util/ComponentManipulator.d.ts +6 -5
- package/definitions/game/ui/util/Draggable.d.ts +8 -15
- package/definitions/game/ui/util/HighlightManager.d.ts +11 -1
- package/definitions/game/ui/util/IHighlight.d.ts +1 -0
- package/definitions/game/utilities/Observer.d.ts +1 -1
- package/definitions/game/utilities/VersionTranslation.d.ts +18 -0
- package/definitions/game/utilities/dev/Debug.d.ts +4 -0
- package/definitions/game/utilities/dev/Performance2.d.ts +1 -0
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +8 -2
- package/definitions/game/utilities/object/Merge.d.ts +3 -0
- package/definitions/game/utilities/object/PrettyJsonStringify.d.ts +23 -0
- package/definitions/game/utilities/trello/ITrello.d.ts +1 -1
- package/definitions/game/utilities/trello/Trello.d.ts +1 -1
- package/definitions/hosts/node/nodeLoader.d.ts +1 -0
- package/definitions/hosts/shared/globalTypes.d.ts +6 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/lint/condition-complexity.d.mts +31 -0
- package/definitions/{devserver/middleware/util → server/core}/Middleware.d.ts +1 -0
- package/definitions/{devserver → server/core}/middleware/E404.d.ts +1 -1
- package/definitions/server/core/middleware/Probe.d.ts +13 -0
- package/definitions/{devserver → server/core}/middleware/Static.d.ts +1 -1
- package/definitions/{devserver → server/core}/middleware/Validate.d.ts +1 -1
- package/definitions/{devserver/middleware → server/core}/util/SendFile.d.ts +1 -1
- package/definitions/{matchmakingserver → server/dev}/index.d.ts +1 -3
- package/definitions/{devserver → server/dev}/middleware/CustomInternalMods.d.ts +1 -1
- package/definitions/{devserver → server/dev}/middleware/SaveFolder.d.ts +1 -1
- package/definitions/server/error/Router.d.ts +13 -0
- package/definitions/server/error/index.d.ts +11 -0
- package/definitions/server/error/middleware/ReportError.d.ts +13 -0
- package/definitions/server/error/util/SendDiscordMessage.d.ts +19 -0
- package/definitions/{matchmakingserver → server/matchmaking}/dedicatedServer.d.ts +1 -1
- package/definitions/test/core/applicationDom.d.ts +4 -2
- package/definitions/test/core/applicationInteractions.d.ts +4 -0
- package/definitions/test/suite/functionalTests/singleplayer/ui/DialogLeak.d.ts +13 -0
- package/definitions/{devserver/index.d.ts → utilities/ApplyTsConfigPaths.d.ts} +1 -1
- package/definitions/utilities/Errors.d.ts +4 -0
- package/definitions/utilities/Functions.d.ts +1 -1
- package/definitions/utilities/Log.d.ts +35 -3
- package/definitions/{game/utilities → utilities}/Version.d.ts +5 -9
- package/definitions/utilities/dev/DebugShared.d.ts +23 -0
- package/definitions/utilities/event/EventEmitter.d.ts +39 -7
- package/definitions/utilities/memory/ILifetime.d.ts +5 -1
- package/definitions/utilities/object/Objects.d.ts +9 -0
- package/definitions/utilities/prototype/Array.d.ts +2 -1
- package/definitions/utilities/prototype/Define.d.ts +2 -0
- package/definitions/utilities/random/IRandom.d.ts +1 -1
- package/definitions/utilities/random/Random.d.ts +1 -1
- package/definitions/utilities/random/RandomUtilities.d.ts +2 -2
- package/definitions/utilities/random/SeededGenerator.d.ts +1 -1
- package/definitions/utilities/{typesglobal → types}/Types.d.ts +3 -0
- package/definitions/utilities/types.d.ts +18 -0
- package/package.json +3 -3
- /package/definitions/game/game/entity/action/actions/helper/{ConfirmGatherHarvest.d.ts → ConfirmGatherHarvestButcher.d.ts} +0 -0
- /package/definitions/{devserver → server/core}/util/Log.d.ts +0 -0
- /package/definitions/{devserver → server/dev}/Router.d.ts +0 -0
- /package/definitions/{devserver/middleware → server/dev}/util/GameLogFilter.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/directoryConnection.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/globalMatchmaking.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/globalServerDirectory.d.ts +0 -0
- /package/definitions/{matchmakingserver/vps.d.ts → server/matchmaking/index.d.ts} +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/server.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/shared.d.ts +0 -0
- /package/definitions/utilities/{types → type}/Assert.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Class.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Descriptions.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Function.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Immutable.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Iterables.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Misc.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Objects.d.ts +0 -0
@@ -23,20 +23,13 @@ import "@wayward/game/typings/jquery";
|
|
23
23
|
import "@wayward/game/typings/jqueryui";
|
24
24
|
import type { Ui } from "@wayward/game/ui/Ui";
|
25
25
|
import type OldUi from "@wayward/game/ui/old/OldUi";
|
26
|
-
import type Version from "@wayward/
|
26
|
+
import type Version from "@wayward/utilities/Version";
|
27
27
|
import "@wayward/goodstream/apply";
|
28
28
|
import "@wayward/hosts/shared/globalTypes";
|
29
29
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
30
30
|
import "@wayward/utilities/IGlobal";
|
31
31
|
import "@wayward/utilities/prototype/Promise";
|
32
|
-
import "@wayward/utilities/
|
33
|
-
import "@wayward/utilities/typesglobal/Descriptions";
|
34
|
-
import "@wayward/utilities/typesglobal/Function";
|
35
|
-
import "@wayward/utilities/typesglobal/Immutable";
|
36
|
-
import "@wayward/utilities/typesglobal/Iterables";
|
37
|
-
import "@wayward/utilities/typesglobal/Misc";
|
38
|
-
import "@wayward/utilities/typesglobal/Objects";
|
39
|
-
import "@wayward/utilities/typesglobal/Types";
|
32
|
+
import "@wayward/utilities/types";
|
40
33
|
declare global {
|
41
34
|
let audio: WAudio | undefined;
|
42
35
|
let game: Game;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
*/
|
11
11
|
import { Uninit } from "@wayward/game/Uninit";
|
12
12
|
import CommandManager from "@wayward/game/command/CommandManager";
|
13
|
-
import type { IGameEvents, IMovementTime, IPlayOptions, ISynchronizeState } from "@wayward/game/game/IGame";
|
13
|
+
import type { IGameEvents, IGameUpgradeState, IMovementTime, IPlayOptions, ISynchronizeState } from "@wayward/game/game/IGame";
|
14
14
|
import { PauseSource, SaveType, TurnMode } from "@wayward/game/game/IGame";
|
15
15
|
import { TickHelper } from "@wayward/game/game/TickHelper";
|
16
16
|
import type { BiomeTypes } from "@wayward/game/game/biome/IBiome";
|
@@ -45,13 +45,12 @@ import type { IOptions } from "@wayward/game/save/data/ISaveDataGlobal";
|
|
45
45
|
import type { ISerializer } from "@wayward/game/save/serializer/ISerializer";
|
46
46
|
import type StringTokenizer from "@wayward/game/save/serializer/StringTokenizer";
|
47
47
|
import Steamworks from "@wayward/game/steamworks/Steamworks";
|
48
|
-
import type { IVersionInfo } from "@wayward/
|
49
|
-
import Version from "@wayward/
|
48
|
+
import type { IVersionInfo } from "@wayward/utilities/Version";
|
49
|
+
import Version from "@wayward/utilities/Version";
|
50
50
|
import type { IVector2 } from "@wayward/game/utilities/math/IVector";
|
51
51
|
import { WebWorkerManager } from "@wayward/game/webWorker/WebWorkerManager";
|
52
52
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
53
53
|
import type { Random } from "@wayward/utilities/random/Random";
|
54
|
-
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
55
54
|
export declare class Game extends EventEmitter.Host<IGameEvents> {
|
56
55
|
get isChallenge(): boolean;
|
57
56
|
private difficultyOptions;
|
@@ -71,9 +70,10 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
71
70
|
* The version the save was originally created on
|
72
71
|
*/
|
73
72
|
version: Version.String;
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
/**
|
74
|
+
* Set when a game save upgrade is running
|
75
|
+
*/
|
76
|
+
upgradeState?: IGameUpgradeState;
|
77
77
|
readonly interval = 16.6666;
|
78
78
|
readonly autoSave: AutoSave;
|
79
79
|
readonly commandManager: CommandManager;
|
@@ -29,8 +29,9 @@ import type { IMultiplayerOptions, IMultiplayerWorldData, ServerInfo } from "@wa
|
|
29
29
|
import type { Renderer } from "@wayward/game/renderer/Renderer";
|
30
30
|
import type { IReplayLogEntry } from "@wayward/game/replay/IReplayLogEntry";
|
31
31
|
import type { IHighscoreOld, IOptions } from "@wayward/game/save/data/ISaveDataGlobal";
|
32
|
-
import type Version from "@wayward/
|
32
|
+
import type Version from "@wayward/utilities/Version";
|
33
33
|
import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
34
|
+
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
34
35
|
import type { IRange } from "@wayward/utilities/math/Range";
|
35
36
|
export interface IGameEvents {
|
36
37
|
/**
|
@@ -217,7 +218,8 @@ export declare enum SaveType {
|
|
217
218
|
Quit = 2,
|
218
219
|
BackToMainMenu = 3,
|
219
220
|
Multiplayer = 4,
|
220
|
-
ReplayConvert = 5
|
221
|
+
ReplayConvert = 5,
|
222
|
+
AutoSave = 6
|
221
223
|
}
|
222
224
|
export declare enum TileUpdateType {
|
223
225
|
Batch = 0,
|
@@ -302,6 +304,20 @@ export interface IMovementTime {
|
|
302
304
|
start: number;
|
303
305
|
end: number;
|
304
306
|
}
|
307
|
+
export interface IGameUpgradeState {
|
308
|
+
/**
|
309
|
+
* Current state of the upgrade. Set based on what is upgrading at the time.
|
310
|
+
*/
|
311
|
+
state: GameUpgradeState;
|
312
|
+
readonly lastSaveVersion: Version.String;
|
313
|
+
readonly lastSaveBuildTime: number;
|
314
|
+
readonly lastSaveBuildId: IBuildId | undefined;
|
315
|
+
}
|
316
|
+
export declare enum GameUpgradeState {
|
317
|
+
None = 0,
|
318
|
+
Game = 1,
|
319
|
+
Island = 2
|
320
|
+
}
|
305
321
|
export declare const LINE_OF_SIGHT_RADIUS = 15;
|
306
322
|
export declare const LINE_OF_SIGHT_RADIUS_MAX = 20;
|
307
323
|
export declare const LINE_OF_SIGHT_DETAIL = 4;
|
@@ -10,6 +10,7 @@
|
|
10
10
|
*/
|
11
11
|
import type { BiomeType } from "@wayward/game/game/biome/IBiome";
|
12
12
|
import type { SkillType } from "@wayward/game/game/entity/IHuman";
|
13
|
+
import type { ItemType } from "@wayward/game/game/item/IItem";
|
13
14
|
import type { TerrainType } from "@wayward/game/game/tile/ITerrain";
|
14
15
|
import type { ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
15
16
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
@@ -21,9 +22,9 @@ export interface IObject<T> {
|
|
21
22
|
}
|
22
23
|
export interface IObjectDescription extends IHasImagePath {
|
23
24
|
/**
|
24
|
-
* Set to
|
25
|
+
* Set to an item type that will derive its decayMax from when its state is changed. This property is set on unlit torches for example where we want to store the decay, but not use it.
|
25
26
|
*/
|
26
|
-
storeDecay?:
|
27
|
+
storeDecay?: ItemType;
|
27
28
|
/**
|
28
29
|
* number of game ticks until decay
|
29
30
|
*/
|
@@ -11,7 +11,7 @@
|
|
11
11
|
import { TileUpdateType } from "@wayward/game/game/IGame";
|
12
12
|
import type { IHasQuality, IObject, IQualityEvents } from "@wayward/game/game/IObject";
|
13
13
|
import { Quality } from "@wayward/game/game/IObject";
|
14
|
-
import type { DisplayableDoodadType, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder, IHasWater } from "@wayward/game/game/doodad/IDoodad";
|
14
|
+
import type { DisplayableDoodadType, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadGetNameOptions, IDoodadOptions, IHasBuilder, IHasWater } from "@wayward/game/game/doodad/IDoodad";
|
15
15
|
import { DoodadTag, DoodadType, DoodadTypeGroup, GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
16
16
|
import type { IEntityMovableEvents } from "@wayward/game/game/entity/EntityMovable";
|
17
17
|
import EntityMovable from "@wayward/game/game/entity/EntityMovable";
|
@@ -19,7 +19,7 @@ import type Human from "@wayward/game/game/entity/Human";
|
|
19
19
|
import type { IEntityConstructorOptions } from "@wayward/game/game/entity/IEntity";
|
20
20
|
import { EntityType } from "@wayward/game/game/entity/IEntity";
|
21
21
|
import { SkillType } from "@wayward/game/game/entity/IHuman";
|
22
|
-
import { EquipType } from "@wayward/game/game/entity/IHuman";
|
22
|
+
import type { EquipType } from "@wayward/game/game/entity/IHuman";
|
23
23
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
24
24
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
25
25
|
import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
|
@@ -30,7 +30,7 @@ import { LiquidType } from "@wayward/game/game/island/IIsland";
|
|
30
30
|
import type { ContainerSort, DisplayableItemType, IContainer, IItemVehicle, ILiquidGather, IUncastableContainer, ItemTypeExtra } from "@wayward/game/game/item/IItem";
|
31
31
|
import { ItemType } from "@wayward/game/game/item/IItem";
|
32
32
|
import type Item from "@wayward/game/game/item/Item";
|
33
|
-
import type { IHasMagic } from "@wayward/game/game/magic/
|
33
|
+
import type { IHasMagic } from "@wayward/game/game/magic/IMagicalProperty";
|
34
34
|
import MagicalPropertyManager from "@wayward/game/game/magic/MagicalPropertyManager";
|
35
35
|
import type { Reference, ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
|
36
36
|
import type { IHasInsulation, TempType } from "@wayward/game/game/temperature/ITemperature";
|
@@ -126,7 +126,6 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
126
126
|
* Used to store protection status for built doodads
|
127
127
|
*/
|
128
128
|
protected?: boolean;
|
129
|
-
private _tileId?;
|
130
129
|
/**
|
131
130
|
* Separate property just for wells because isInGroup is still expensive for processWell()
|
132
131
|
*/
|
@@ -171,7 +170,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
171
170
|
* - `doodad.getName(Article.None)` // "stone furnace"
|
172
171
|
* - `doodad.getName(Article.None, 3)` // "stone furnaces"
|
173
172
|
*/
|
174
|
-
getName(article?: Article,
|
173
|
+
getName(article?: Article, options?: Partial<IDoodadGetNameOptions>): TranslationImpl;
|
175
174
|
protected getDescription(): IDoodadDescription | undefined;
|
176
175
|
protected updateTileWhenMoving(fromTile: Tile, toTile: Tile): boolean;
|
177
176
|
changeType(doodadType: DoodadType): void;
|
@@ -180,7 +179,6 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
180
179
|
updateGroupCache(doodadTypeGroup: DoodadTypeGroup): boolean;
|
181
180
|
get point(): IVector3;
|
182
181
|
get tile(): Tile;
|
183
|
-
getTileId(): number;
|
184
182
|
/**
|
185
183
|
* @deprecated This is the correct way to change quality, but it is not completely implemented.
|
186
184
|
* It does not perform any required changes due to the quality change, like durability, all it does is change the quality and emit an event.
|
@@ -212,7 +210,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
212
210
|
/**
|
213
211
|
* Returns whether the doodad can be trampled
|
214
212
|
*/
|
215
|
-
canTrample(): boolean
|
213
|
+
canTrample(): boolean;
|
216
214
|
/**
|
217
215
|
* Trampling growing things.
|
218
216
|
*/
|
@@ -234,7 +232,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
234
232
|
removeMagic(): void;
|
235
233
|
unhitch(): void;
|
236
234
|
damage(forceBreak?: boolean, skipDropAsItem?: boolean, skipSound?: boolean, skipResources?: boolean, damage?: number): void;
|
237
|
-
getDefaultDurability(random?: import("@wayward/utilities/random/Random").Random<import("@wayward/utilities/random/generators/
|
235
|
+
getDefaultDurability(random?: import("@wayward/utilities/random/Random").Random<import("@wayward/utilities/random/generators/LegacySeededGenerator").LegacySeededGenerator | import("@wayward/utilities/random/generators/PCGSeededGenerator").PCGSeededGenerator>): number;
|
238
236
|
/**
|
239
237
|
* Gets the container to use for doodad executed actions
|
240
238
|
*/
|
@@ -255,7 +253,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
255
253
|
setOffTrap(human?: Human, withMessage?: boolean, damage?: boolean): void;
|
256
254
|
getGrowthParticles(): IRGB | undefined;
|
257
255
|
/**
|
258
|
-
* Increased the fertility (spread) of a plant/growing doodad.
|
256
|
+
* Increased the fertility (spread) of a plant/growing doodad when its ripening.
|
259
257
|
* @param bypassChange Set to true if you just want to check if fertility can be increased.
|
260
258
|
* @returns True or false depending on if it increased in fertility or not.
|
261
259
|
*/
|
@@ -325,6 +323,11 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
325
323
|
* Regenerate (heal durability) over time
|
326
324
|
*/
|
327
325
|
private processRegeneration;
|
326
|
+
/**
|
327
|
+
* Process the magical properties of the doodad when updating
|
328
|
+
* @param ticks the number of ticks to process
|
329
|
+
*/
|
330
|
+
private processMagicalProperties;
|
328
331
|
/**
|
329
332
|
* Melt doodads (or things on doodads over time)
|
330
333
|
* @param description Doodad description
|
@@ -372,6 +375,11 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
372
375
|
* @returns number of score (or 0 if no civilization score is set).
|
373
376
|
*/
|
374
377
|
getCivilizationScore(excludeMagic?: boolean): number;
|
378
|
+
/**
|
379
|
+
* Gets the scarecrow radius based on quality.
|
380
|
+
* This also exists on items.
|
381
|
+
*/
|
382
|
+
getScareRadius(): number;
|
375
383
|
/**
|
376
384
|
* Gets a set of skill types and values from doodads that have "containedItemGroupProvidesSkill" set for items that provide adjacent skill bonuses.
|
377
385
|
* @returns Map of skill type and number (skill value).
|
@@ -404,4 +412,5 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
404
412
|
private processDripstone;
|
405
413
|
private postProcessDecay;
|
406
414
|
private randomAshSpawn;
|
415
|
+
private canGrowToBare;
|
407
416
|
}
|
@@ -38,6 +38,7 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
38
38
|
private static readonly cachedDoodadGroups;
|
39
39
|
static readonly cachedDoodadSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, DoodadType[]>>>;
|
40
40
|
private static readonly cachedDoodadsInGroup;
|
41
|
+
private static cachedMaximumGrowthTime;
|
41
42
|
private readonly scarecrows;
|
42
43
|
static getBestDoodadForTier(doodad: DoodadType | DoodadTypeGroup): DoodadType | undefined;
|
43
44
|
static generateLookups(): void;
|
@@ -46,6 +47,7 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
46
47
|
static isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
|
47
48
|
static getGroups(doodadType: DoodadType): DoodadTypeGroup[];
|
48
49
|
static getDoodadsInGroup(doodadTypeGroup: DoodadTypeGroup): DoodadType[];
|
50
|
+
static getMaximumGrowthTime(): number;
|
49
51
|
/**
|
50
52
|
* Checks if a number is a DoodadType or DoodadTypeExtra.
|
51
53
|
* @param type a number (DoodadType/DoodadTypeExtra enum).
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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 Doodad from "@wayward/game/game/doodad/Doodad";
|
12
|
+
import type { DoodadType } from "@wayward/game/game/doodad/IDoodad";
|
13
|
+
import { GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
14
|
+
import type Human from "@wayward/game/game/entity/Human";
|
15
|
+
declare namespace DoodadUtilities {
|
16
|
+
type DoodadIn = Doodad | DoodadType;
|
17
|
+
export function hasGrownEnoughIfCanGrow(doodad: Doodad, requiredGrowthStage: GrowingStage): boolean;
|
18
|
+
export function hasGrownEnoughIfCanGrow(doodad: DoodadIn, requiredGrowthStage: GrowingStage): undefined;
|
19
|
+
export function wouldWalkingOnDealFireDamage(doodad: DoodadIn, human?: Human): boolean;
|
20
|
+
export function wouldWalkingOnDealNormalDamage(doodad: DoodadIn, human?: Human): boolean;
|
21
|
+
export function isDangerous(doodad: DoodadIn, human?: Human): boolean;
|
22
|
+
export function canCauseStatus(doodad: DoodadIn): boolean;
|
23
|
+
export {};
|
24
|
+
}
|
25
|
+
export default DoodadUtilities;
|
@@ -242,6 +242,10 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
|
|
242
242
|
* The amount of turns it takes to purify the water.
|
243
243
|
*/
|
244
244
|
waterPurificationTurns?: number;
|
245
|
+
/**
|
246
|
+
* Radius around scarecrow that will attempt to scare away creatures based on `chanceOfScarecrowScare` property in `creatureDescriptions`.
|
247
|
+
*/
|
248
|
+
scareRadius?: number;
|
245
249
|
}
|
246
250
|
export interface IItemStackRegion {
|
247
251
|
xMin: number;
|
@@ -528,6 +532,12 @@ export declare enum GrowingStage {
|
|
528
532
|
Ripening = 5,
|
529
533
|
Bare = 6
|
530
534
|
}
|
535
|
+
export declare namespace Growth {
|
536
|
+
function isAtLeast(growth: GrowingStage | undefined, stage: GrowingStage): boolean;
|
537
|
+
function isAtMost(growth: GrowingStage | undefined, stage: GrowingStage): boolean;
|
538
|
+
function isMoreThan(growth: GrowingStage | undefined, stage: GrowingStage): boolean;
|
539
|
+
function isLessThan(growth: GrowingStage | undefined, stage: GrowingStage): boolean;
|
540
|
+
}
|
531
541
|
export interface IHasBuilder {
|
532
542
|
getBuilder(): Human | undefined;
|
533
543
|
}
|
@@ -535,4 +545,24 @@ export interface IHasWater {
|
|
535
545
|
top?: true;
|
536
546
|
bottom?: true;
|
537
547
|
}
|
548
|
+
export interface IDoodadGetNameOptions {
|
549
|
+
count: number;
|
550
|
+
showCount: boolean;
|
551
|
+
/**
|
552
|
+
* Defaults to true
|
553
|
+
*/
|
554
|
+
showQuality: boolean;
|
555
|
+
/**
|
556
|
+
* Defaults to true
|
557
|
+
*/
|
558
|
+
showRenamedQuotes: boolean;
|
559
|
+
/**
|
560
|
+
* Defaults to true
|
561
|
+
*/
|
562
|
+
showMagicalType: boolean;
|
563
|
+
/**
|
564
|
+
* Ignore discovery system when computing the name
|
565
|
+
*/
|
566
|
+
ignoreDiscovery: boolean;
|
567
|
+
}
|
538
568
|
export {};
|
@@ -35,7 +35,8 @@ import { type ISerializedTranslation } from "@wayward/game/language/ITranslation
|
|
35
35
|
import type Translation from "@wayward/game/language/Translation";
|
36
36
|
import type { RenderSource, UpdateRenderFlag } from "@wayward/game/renderer/IRenderer";
|
37
37
|
import type { Renderer } from "@wayward/game/renderer/Renderer";
|
38
|
-
import type { INotificationLocation, ItemNotifierType,
|
38
|
+
import type { INotificationLocation, ItemNotifierType, MarkerDescription, StatNotificationType } from "@wayward/game/renderer/notifier/INotifier";
|
39
|
+
import type { MarkerType } from "@wayward/game/renderer/notifier/INotifier";
|
39
40
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
40
41
|
import type { IVector4 } from "@wayward/game/utilities/math/Vector4";
|
41
42
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
@@ -48,6 +49,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
48
49
|
historicalActions?: PartialRecord<ActionType, number>;
|
49
50
|
referenceId?: number;
|
50
51
|
renamed?: string | ISerializedTranslation;
|
52
|
+
aestheticRandom: number;
|
51
53
|
x: number;
|
52
54
|
y: number;
|
53
55
|
z: WorldZ;
|
@@ -121,10 +123,15 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
121
123
|
* This is called clientside the first time the renderer seens the entity
|
122
124
|
*/
|
123
125
|
onFirstRender(renderer: Renderer): void;
|
124
|
-
|
126
|
+
getCurrentMarker(): Readonly<MarkerDescription> | undefined;
|
125
127
|
setMarkerIconHidden(hidden: boolean): void;
|
126
|
-
|
127
|
-
|
128
|
+
/**
|
129
|
+
* Adds a marker that shows up over the entity
|
130
|
+
* @param description The marker description
|
131
|
+
*/
|
132
|
+
addMarker(description: MappedOmit<MarkerDescription, "guid">): void;
|
133
|
+
removeMarker(...types: MarkerType[]): void;
|
134
|
+
getDynamicMarker(type: string): MarkerType | undefined;
|
128
135
|
getProducedTemperature(): number | undefined;
|
129
136
|
setName(renamed: string | ISerializedTranslation | undefined): void;
|
130
137
|
canInspect(human: Human): boolean;
|
@@ -24,7 +24,10 @@ export interface IEntityCanCreateOptions {
|
|
24
24
|
allowOverDooadsAndTileEvents?: boolean;
|
25
25
|
blockOnScarecrow?: boolean;
|
26
26
|
}
|
27
|
-
export
|
27
|
+
export interface IEntityRemoveOptions {
|
28
|
+
keepMarker?: boolean;
|
29
|
+
}
|
30
|
+
export default abstract class EntityManager<T extends Entity, RemoveOptions extends IEntityRemoveOptions = IEntityRemoveOptions> extends ObjectManager<T, IEntityManagerEvents<T>> implements IEntityManager<T> {
|
28
31
|
/**
|
29
32
|
* Indicates if objects should be re-registered to the memory leak detector after loading
|
30
33
|
*/
|
@@ -34,10 +37,14 @@ export default abstract class EntityManager<T extends Entity, IRemoveOptions = u
|
|
34
37
|
* @param entity Entity to remove
|
35
38
|
* @returns Return true if this method handled tile updates
|
36
39
|
*/
|
37
|
-
protected abstract onRemove(entity: T, options?:
|
40
|
+
protected abstract onRemove(entity: T, options?: RemoveOptions & IEntityRemoveOptions): boolean;
|
38
41
|
protected abstract loadEntity?(entity: T): void;
|
39
42
|
load(): void;
|
40
|
-
|
43
|
+
/**
|
44
|
+
* Restores a previous removed entity
|
45
|
+
*/
|
46
|
+
restore(entity: T): void;
|
47
|
+
remove(entity: T, options?: RemoveOptions): void;
|
41
48
|
updateFov(humanBounds: IHumanBound[]): void;
|
42
49
|
/**
|
43
50
|
* Checks if the target position is a good spot for a new entity
|
@@ -23,6 +23,7 @@ import type { IStat } from "@wayward/game/game/entity/IStats";
|
|
23
23
|
import { Stat } from "@wayward/game/game/entity/IStats";
|
24
24
|
import type { StatChangeTimerFactory } from "@wayward/game/game/entity/StatFactory";
|
25
25
|
import { StatChangeCurrentTimerStrategy } from "@wayward/game/game/entity/StatFactory";
|
26
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
26
27
|
import IActionContext from "@wayward/game/game/entity/action/IActionContext";
|
27
28
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
28
29
|
import type { CreatureType, IDamageInfo } from "@wayward/game/game/entity/creature/ICreature";
|
@@ -131,7 +132,10 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
131
132
|
cumulativeEvilCrafting: number;
|
132
133
|
/** @deprecated (use the entity itself) */
|
133
134
|
readonly inventory: IContainer;
|
134
|
-
|
135
|
+
/**
|
136
|
+
* Used for delays, which are calculated on the server
|
137
|
+
*/
|
138
|
+
private nextProcessInput;
|
135
139
|
containerType?: ContainerType;
|
136
140
|
nextMoveTime: number;
|
137
141
|
nextMoveDirection?: Direction.Cardinal | Direction.None;
|
@@ -185,6 +189,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
185
189
|
* Luck is a multiplier applied to some random chance calculations.
|
186
190
|
*/
|
187
191
|
get luck(): number;
|
192
|
+
protected get debug(): any;
|
188
193
|
updateDirection(tile: Tile | Direction.Cardinal, updateVehicleDirection?: boolean): Direction.Cardinal;
|
189
194
|
protected onMovementCompleted(movingData: IMovingData): void;
|
190
195
|
moveTowardsIsland(direction: Direction.Cardinal | Direction.None, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
@@ -234,6 +239,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
234
239
|
damage(damageInfo: IDamageInfo, causesBlood?: boolean): number | undefined;
|
235
240
|
/**
|
236
241
|
* Gets the use benefits for all equipped items.
|
242
|
+
* Stat.Hunger and Stat.Thirst get converted to check for Stat.Metabolism as the type for MagicalPropertyType.StatPotency_EquipmentImproveConsumableStats
|
237
243
|
* @param stat to check use benefits for.
|
238
244
|
* @returns number that is the bonus amount the player recieves when consuming.
|
239
245
|
*/
|
@@ -295,6 +301,9 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
295
301
|
*/
|
296
302
|
giveRune(deity: ArrayOr<DeityReal>, chance: number, domain: Runekeeper.DomainData, context: IActionContext): boolean;
|
297
303
|
private actuallyGiveRune;
|
304
|
+
/**
|
305
|
+
* All the milestones we need to check on game load.
|
306
|
+
*/
|
298
307
|
protected checkOnLoadMilestones(): void;
|
299
308
|
setVehicle(item: Item | undefined, extinguishTorches?: boolean): boolean;
|
300
309
|
getWeightStatus(): WeightStatus;
|
@@ -339,6 +348,11 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
339
348
|
hasDelay(): boolean;
|
340
349
|
addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean, cap?: number): void;
|
341
350
|
ensureDelay(delay: number): void;
|
351
|
+
/**
|
352
|
+
* Removese input processing delay (due to actions) and movement delays.
|
353
|
+
* This won't do much from clientside in a mp game since the server is in charge.
|
354
|
+
*/
|
355
|
+
removeDelays(): void;
|
342
356
|
/**
|
343
357
|
* Gets a stamina penalty delay to be used for slowed actions and movement.
|
344
358
|
* @param staminaToStartAddingDelayAt Stat value where delays start getting added from.
|
@@ -349,7 +363,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
349
363
|
getRangedSkillBonus(skillUse?: SkillType): number;
|
350
364
|
getQualityBonus(item: Item | undefined): number;
|
351
365
|
setTamedCreatureEnemy(enemy: Human | Creature): void;
|
352
|
-
checkForGatherFire(): Translation | undefined;
|
366
|
+
checkForGatherFire(action: ActionType): Translation | undefined;
|
353
367
|
/**
|
354
368
|
* Check if there is a still in front of the player.
|
355
369
|
* @param withWater Check if the still has water in it?
|
@@ -361,8 +375,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
361
375
|
calculateEquipmentStats(): void;
|
362
376
|
private recalculateInsulation;
|
363
377
|
private getEquipmentInsulation;
|
364
|
-
|
365
|
-
discoverRecipe(recipeType: ItemType, crafted?: ICrafted, discoveredClientSide?: boolean, emit?: boolean): void;
|
378
|
+
discoverRecipe(itemType: ItemType, crafted?: ICrafted): void;
|
366
379
|
incrementIslandTickCount(): void;
|
367
380
|
protected onPostMove(lastTile: Tile, tile: Tile, flags?: MoveFlag, skipExtinguishTorches?: boolean): void;
|
368
381
|
passTurn(turnType?: TurnTypeFlag): void;
|
@@ -51,17 +51,18 @@ export default class ActionExecutor<A extends ActionArguments, E extends Entity,
|
|
51
51
|
private executionStage;
|
52
52
|
private shouldSkipConfirmation;
|
53
53
|
targetTile?: Tile;
|
54
|
-
private
|
55
|
-
private updateTablesAndWeight;
|
56
|
-
private updateWeight;
|
57
|
-
private staminaReduction?;
|
58
|
-
private runeChance?;
|
54
|
+
private delay?;
|
59
55
|
private milestone?;
|
60
|
-
private skillGains?;
|
61
|
-
private sfx?;
|
62
56
|
private particle?;
|
63
|
-
private
|
57
|
+
private passTurn;
|
58
|
+
private runeChance?;
|
59
|
+
private sfx?;
|
60
|
+
private skillGains?;
|
61
|
+
private staminaReduction?;
|
64
62
|
private updateRender?;
|
63
|
+
private updateTablesAndWeight?;
|
64
|
+
private updateView?;
|
65
|
+
private updateWeight?;
|
65
66
|
private context?;
|
66
67
|
private readonly items;
|
67
68
|
private itemsUsed;
|