@wayward/types 2.15.0-beta.dev.20250925.1 → 2.15.0-beta.dev.20250926.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/event/EventBuses.d.ts +58 -54
- package/definitions/game/event/EventManager.d.ts +28 -27
- package/definitions/game/game/biome/coastal/mapGen/2.15.0.d.ts +12 -0
- package/definitions/game/game/doodad/Doodad.d.ts +4 -4
- package/definitions/game/game/doodad/DoodadManager.d.ts +2 -1
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +1 -20
- package/definitions/game/game/entity/ICombatStrength.d.ts +30 -0
- package/definitions/game/game/entity/action/Action.d.ts +10 -7
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +2 -1
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +1 -189
- package/definitions/game/game/entity/action/IAction.d.ts +2 -0
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/AddFuel.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/AddItemDiscovered.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Alter.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Apply.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/AscendDescend.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Attack.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Build.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Butcher.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Cast.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Chop.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/ClearMessages.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Consecrate.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/CopyMap.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Craft.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/CreateControllableNPC.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Cure.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/DamageMap.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Dig.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/DiscoverRecipe.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/DisplayItem.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/DrawMap.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/DumpItems.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Eat.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Enchant.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Equip.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/EquipFromArmorStand.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/ExcavateCollapse.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Exude.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Fire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Gather.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Grasp.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Heal.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/HealOther.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Idle.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Invoke.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Jump.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Kneel.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Learn.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Lockpick.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Melee.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Mine.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Move.d.ts +3 -7
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/MoveTo.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Noclip.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Offer.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/PackGround.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Pet.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/PickUp.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Pour.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Preserve.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PromptResponse.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Read.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ReadMap.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Refine.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Reinforce.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Release.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Rename.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Repair.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ResetItemDiscovered.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Reshape.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Respawn.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/RestCancel.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Rotate.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SailToCivilization.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Shoot.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Squeeze.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Squish.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Stack.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/StokeFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Summon.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/SwapWithArmorStand.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/TakeFromArmorStand.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Tame.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Teleport.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/TellTime.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/TestDepth.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Throw.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Trade.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Unequip.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Unhitch.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/UpdateWalkTo.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/ViewItems.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/MoveUtilities.d.ts +17 -0
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemMerchant.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/creature/Creature.d.ts +2 -1
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +4 -3
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +1 -1
- package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +1 -1
- package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
- package/definitions/game/game/entity/npc/NPCManager.d.ts +1 -0
- package/definitions/game/game/entity/status/IStatus.d.ts +24 -1
- package/definitions/game/game/entity/status/IStatusContext.d.ts +1 -1
- package/definitions/game/game/entity/status/Status.d.ts +1 -23
- package/definitions/game/game/item/IItem.d.ts +13 -12
- package/definitions/game/game/item/Item.d.ts +2 -2
- package/definitions/game/game/item/ItemManager.d.ts +5 -3
- package/definitions/game/game/item/recipe/output/ItemOutput.d.ts +2 -0
- package/definitions/game/game/magic/IMagicalProperty.d.ts +1 -1
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +8 -1
- package/definitions/game/game/mapgen/version/2.15.0.d.ts +19 -0
- package/definitions/game/game/options/modifiers/island/IIslandModifier.d.ts +13 -0
- package/definitions/game/game/options/modifiers/island/IslandModifier.d.ts +1 -3
- package/definitions/game/game/options/modifiers/island/IslandModifiers.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/IMilestoneModifier.d.ts +24 -0
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +1 -14
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Abnormalizer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Afflicted.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Apocryphal.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Artificer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Boundless.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Chef.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Collector.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Contender.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Crafter.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Curator.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Dedicated.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/DestroyerOfMagi.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Diverse.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Doctor.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/DragonSlayer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Explorer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Exsanguinated.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Exterminator.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Gardener.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Gatherer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Grandmaster.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Helmsman.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Hounded.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Hunter.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Huntsman.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Invoker.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Locksmith.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/MasterOfAll.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Merchant.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Multitasker.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Murderer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Navigator.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Notekeeper.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Operator.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Prepared.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Pulchritudinous.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/ReaperOfSouls.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Rouseabout.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/RunekeeperModifier.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Seafarer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Serene.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Statistician.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Talented.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Thaumaturgic.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Thrower.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Traitor.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Trapper.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/TreasureHunter.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Treasurer.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/DeityInvokeMilestoneModifier.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/StatBonusMilestoneModifier.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -1
- package/definitions/game/game/reference/IReferenceManager.d.ts +1 -0
- package/definitions/game/game/temperature/TemperatureManager.d.ts +1 -1
- package/definitions/game/game/tile/ITileEvent.d.ts +7 -1
- package/definitions/game/game/tile/Tile.d.ts +2 -1
- package/definitions/game/game/tile/TileEvent.d.ts +6 -2
- package/definitions/game/game/tile/TileEventManager.d.ts +2 -1
- package/definitions/game/game/tile/events/PileOfLeaves.d.ts +12 -0
- package/definitions/game/game/tile/events/{IFire.d.ts → fire/FireHelper.d.ts} +2 -17
- package/definitions/game/game/tile/events/fire/FireStage.d.ts +27 -0
- package/definitions/game/language/DictionaryMap.d.ts +9 -4
- package/definitions/game/language/ITranslation.d.ts +18 -0
- package/definitions/game/language/Translation.d.ts +5 -23
- package/definitions/game/language/english/game/CombatDangerLevels.d.ts +1 -1
- package/definitions/game/language/english/game/CombatStrengths.d.ts +1 -1
- package/definitions/game/language/english/game/FireStages.d.ts +1 -1
- package/definitions/game/language/english/game/IslandModifiers.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameModifierDescriptors.d.ts +1 -1
- package/definitions/game/language/english/ui/MilestoneModifierGroups.d.ts +1 -1
- package/definitions/game/language/utility/TranslationListBuilder.d.ts +7 -4
- package/definitions/game/language/utility/TranslationSorter.d.ts +22 -11
- package/definitions/game/language/utility/TranslationUtility.d.ts +15 -0
- package/definitions/game/mod/ModInformation.d.ts +2 -2
- package/definitions/game/multiplayer/packets/shared/ActionPacketBase.d.ts +1 -0
- package/definitions/game/ui/Ui.d.ts +3 -0
- package/definitions/game/ui/component/GameIcons.d.ts +1 -1
- package/definitions/game/ui/input/Bind.d.ts +1 -1
- package/definitions/game/ui/input/BindableManager.d.ts +4 -1
- package/definitions/game/ui/input/Bindables.d.ts +1 -0
- package/definitions/game/ui/input/Defaults.d.ts +12 -2
- package/definitions/game/ui/input/InputInfo.d.ts +34 -0
- package/definitions/game/ui/input/InputManager.d.ts +1 -22
- package/definitions/game/ui/input/Macros.d.ts +4 -1
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +5 -1
- package/definitions/game/ui/screen/screens/game/component/ContainerBucket.d.ts +5 -42
- package/definitions/game/ui/screen/screens/game/component/GameDetails.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -23
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +4 -1
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketManager.d.ts +42 -0
- package/definitions/game/ui/screen/screens/game/component/container/IContainerBucket.d.ts +25 -0
- package/definitions/game/ui/screen/screens/game/component/item/IItemComponent.d.ts +23 -0
- package/definitions/game/ui/screen/screens/game/component/item/ItemComponentEventBus.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/item/ItemComponentTradeManager.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/ContainerDialog.d.ts +1 -2
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/dialog/TradeDialog.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +0 -18
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +18 -0
- package/definitions/game/ui/screen/screens/game/static/stats/component/IStatuses.d.ts +29 -0
- package/definitions/game/ui/screen/screens/game/static/stats/component/Statuses.d.ts +0 -19
- package/definitions/game/ui/screen/screens/menu/menus/HelpArticleMenu.d.ts +3 -0
- package/definitions/game/ui/screen/screens/menu/menus/help/HelpArticleDescriptions.d.ts +0 -2
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModRow.d.ts +3 -0
- package/definitions/game/utilities/collection/map/DefaultMap.d.ts +5 -1
- package/definitions/game/utilities/object/Merge.d.ts +5 -2
- package/definitions/hosts/shared/globalTypes.d.ts +15 -13
- package/definitions/utilities/Log.d.ts +0 -14
- package/definitions/utilities/log/ErrorReporting.d.ts +28 -0
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ import type { EnumReferenceTypes, Reference, Referenceable } from "@wayward/game
|
|
|
29
29
|
import Dictionary from "@wayward/game/language/Dictionary";
|
|
30
30
|
import type { DictionaryEntryEnums } from "@wayward/game/language/DictionaryMap";
|
|
31
31
|
import type { ListEnder, TranslationArg } from "@wayward/game/language/ITranslation";
|
|
32
|
-
import { ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
|
32
|
+
import { Article, ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
|
33
33
|
import Message from "@wayward/game/language/dictionary/Message";
|
|
34
34
|
import type { Term } from "@wayward/game/language/dictionary/Misc";
|
|
35
35
|
import { EquipSlotTranslation, MiscTranslation } from "@wayward/game/language/dictionary/Misc";
|
|
@@ -37,28 +37,10 @@ import type UiTranslation from "@wayward/game/language/dictionary/UiTranslation"
|
|
|
37
37
|
import type { TranslationReformatter } from "@wayward/game/language/impl/TranslationImpl";
|
|
38
38
|
import TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
39
39
|
import { formatListTranslation } from "@wayward/game/language/segment/FormatListSegment";
|
|
40
|
-
import
|
|
41
|
-
import
|
|
40
|
+
import TranslationListBuilder from "@wayward/game/language/utility/TranslationListBuilder";
|
|
41
|
+
import TranslationSorter from "@wayward/game/language/utility/TranslationSorter";
|
|
42
42
|
import { IStringSection } from "@wayward/game/utilities/string/Interpolator";
|
|
43
43
|
import { IRange } from "@wayward/utilities/math/Range";
|
|
44
|
-
export declare enum Article {
|
|
45
|
-
/**
|
|
46
|
-
* Use no article.
|
|
47
|
-
*/
|
|
48
|
-
None = "",
|
|
49
|
-
/**
|
|
50
|
-
* In English, this is "a" or "an" in front of the text, assuming the "count" is one.
|
|
51
|
-
*/
|
|
52
|
-
Indefinite = "indefinite",
|
|
53
|
-
/**
|
|
54
|
-
* In English, this is "the" in front of the text.
|
|
55
|
-
*/
|
|
56
|
-
Definite = "definite",
|
|
57
|
-
/**
|
|
58
|
-
* Uses "indefinite" if the user hasn't opted out of articles in titles.
|
|
59
|
-
*/
|
|
60
|
-
Title = "title"
|
|
61
|
-
}
|
|
62
44
|
type Translation = TranslationImpl;
|
|
63
45
|
declare namespace Translation {
|
|
64
46
|
export function is(value: unknown): value is Translation;
|
|
@@ -66,7 +48,7 @@ declare namespace Translation {
|
|
|
66
48
|
export const RANDOM = "random";
|
|
67
49
|
export const getString: typeof TranslationImpl.getString;
|
|
68
50
|
export const resolve: typeof TranslationImpl.resolve;
|
|
69
|
-
export const sorter: typeof
|
|
51
|
+
export const sorter: typeof TranslationSorter.create;
|
|
70
52
|
/**
|
|
71
53
|
* Gets a translation given a dictionary, entry, and translation index.
|
|
72
54
|
* @param dictionary The dictionary to get a translation from, for instance, `Dictionary.Item`.
|
|
@@ -192,7 +174,7 @@ declare namespace Translation {
|
|
|
192
174
|
export function colorizeImportance(importance: "primary" | "secondary", text: IStringSection[]): Translation;
|
|
193
175
|
export function classes(...classes: string[]): Translation;
|
|
194
176
|
export const formatList: typeof formatListTranslation;
|
|
195
|
-
export const listBuilder: typeof
|
|
177
|
+
export const listBuilder: typeof TranslationListBuilder;
|
|
196
178
|
export function reformatSingularNoun(): Translation;
|
|
197
179
|
export function reformatSingularNoun(count: number): Translation;
|
|
198
180
|
export function reformatSingularNoun(article: Article): Translation;
|
|
@@ -8,6 +8,6 @@
|
|
|
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 { CombatDangerLevel } from "@wayward/game/game/entity/
|
|
11
|
+
import { CombatDangerLevel } from "@wayward/game/game/entity/ICombatStrength";
|
|
12
12
|
declare const combatDangerLevels: Record<CombatDangerLevel, string>;
|
|
13
13
|
export default combatDangerLevels;
|
|
@@ -8,6 +8,6 @@
|
|
|
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 { CombatStrength } from "@wayward/game/game/entity/
|
|
11
|
+
import { CombatStrength } from "@wayward/game/game/entity/ICombatStrength";
|
|
12
12
|
declare const combatStrengths: Record<CombatStrength, string>;
|
|
13
13
|
export default combatStrengths;
|
|
@@ -8,6 +8,6 @@
|
|
|
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
|
|
11
|
+
import FireStage from "@wayward/game/game/tile/events/fire/FireStage";
|
|
12
12
|
declare const fireStages: Record<FireStage, string>;
|
|
13
13
|
export default fireStages;
|
|
@@ -8,6 +8,6 @@
|
|
|
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 { IslandModifierType } from "@wayward/game/game/options/modifiers/island/
|
|
11
|
+
import { IslandModifierType } from "@wayward/game/game/options/modifiers/island/IIslandModifier";
|
|
12
12
|
declare const islandModifiers: Descriptions<IslandModifierType, string>;
|
|
13
13
|
export default islandModifiers;
|
package/definitions/game/language/english/game/islandName/IslandNameModifierDescriptors.d.ts
CHANGED
|
@@ -8,6 +8,6 @@
|
|
|
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 { IslandModifierType } from "@wayward/game/game/options/modifiers/island/
|
|
11
|
+
import { IslandModifierType } from "@wayward/game/game/options/modifiers/island/IIslandModifier";
|
|
12
12
|
declare const islandNameModifierDescriptors: Descriptions<IslandModifierType, [adjective: string, noun: string]>;
|
|
13
13
|
export default islandNameModifierDescriptors;
|
|
@@ -8,6 +8,6 @@
|
|
|
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 { MilestoneModifierGroup } from "@wayward/game/game/options/modifiers/milestone/
|
|
11
|
+
import { MilestoneModifierGroup } from "@wayward/game/game/options/modifiers/milestone/IMilestoneModifier";
|
|
12
12
|
declare const milestoneModifierGroups: Descriptions<MilestoneModifierGroup, string>;
|
|
13
13
|
export default milestoneModifierGroups;
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { ListEnder } from "@wayward/game/language/ITranslation";
|
|
12
|
-
import Translation from "@wayward/game/language/Translation";
|
|
13
|
-
|
|
12
|
+
import type Translation from "@wayward/game/language/Translation";
|
|
13
|
+
import TranslationUtility from "@wayward/game/language/utility/TranslationUtility";
|
|
14
|
+
export interface TranslationListBuilderDefinition<T, GROUP, AFFIX> {
|
|
14
15
|
getGroup(item: T): GROUP;
|
|
15
16
|
onGroups?(groups: Array<[GROUP, T[]]>): void;
|
|
16
17
|
getAffix(item: T): AFFIX;
|
|
@@ -19,7 +20,9 @@ export interface ITranslationListBuilderDefinition<T, GROUP, AFFIX> {
|
|
|
19
20
|
translateItem(group: GROUP, lastAffix: Translation | undefined, items: T[]): Translation;
|
|
20
21
|
translateItemSingleAffix?(group: GROUP, affix: AFFIX, items: T[]): Translation | undefined;
|
|
21
22
|
}
|
|
22
|
-
export
|
|
23
|
+
export declare class TranslationListBuilder<T, GROUP, AFFIX> extends TranslationUtility {
|
|
24
|
+
protected readonly definition: TranslationListBuilderDefinition<T, GROUP, AFFIX>;
|
|
25
|
+
constructor(definition: TranslationListBuilderDefinition<T, GROUP, AFFIX>);
|
|
23
26
|
translate(items: T[], listEnder?: ListEnder | false): Translation;
|
|
24
27
|
}
|
|
25
|
-
export default function
|
|
28
|
+
export default function <T, GROUP, AFFIX>(definition: TranslationListBuilderDefinition<T, GROUP, AFFIX>): TranslationListBuilder<T, GROUP, AFFIX>;
|
|
@@ -9,9 +9,20 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Dictionary from "@wayward/game/language/Dictionary";
|
|
12
|
-
import Translation from "@wayward/game/language/Translation";
|
|
13
|
-
|
|
12
|
+
import type Translation from "@wayward/game/language/Translation";
|
|
13
|
+
import TranslationUtility from "@wayward/game/language/utility/TranslationUtility";
|
|
14
|
+
interface TranslationSorter<T = number> {
|
|
14
15
|
(a: T, b: T): number;
|
|
16
|
+
}
|
|
17
|
+
declare class TranslationSorter<T = number> extends TranslationUtility {
|
|
18
|
+
private mapper?;
|
|
19
|
+
private fallback?;
|
|
20
|
+
private reverse?;
|
|
21
|
+
private customSorter?;
|
|
22
|
+
private customSorterArgs?;
|
|
23
|
+
private translator?;
|
|
24
|
+
private translationCache?;
|
|
25
|
+
constructor(dictionary?: Dictionary, index?: number, mapper?: TranslationSorter.EntryMapper);
|
|
15
26
|
/**
|
|
16
27
|
* Sets this sort to be reversed
|
|
17
28
|
*/
|
|
@@ -19,31 +30,31 @@ export interface ITranslationSorter<T = number> {
|
|
|
19
30
|
/**
|
|
20
31
|
* Sets whether this sort should be reversed
|
|
21
32
|
*/
|
|
22
|
-
setReverse(
|
|
33
|
+
setReverse(r: boolean): this;
|
|
23
34
|
/**
|
|
24
35
|
* Sets this translation sorter to be getting the entry with the given mapper
|
|
25
36
|
*/
|
|
26
|
-
setEntryMapper<T2>(mapper:
|
|
37
|
+
setEntryMapper<T2>(mapper: TranslationSorter.EntryMapper<T2>): TranslationSorter<T2>;
|
|
27
38
|
/**
|
|
28
39
|
* Sets a fallback sorter for when two translations are in the same position
|
|
29
40
|
*/
|
|
30
|
-
setFallback(fallback?:
|
|
41
|
+
setFallback(fallback?: TranslationSorter.SortFallback<T>): this;
|
|
31
42
|
/**
|
|
32
43
|
* Sets a custom sorter to override the default sort functionality
|
|
33
44
|
*
|
|
34
45
|
* Note: When a custom sorter is used, fallbacks registered in `setFallback` will not be.
|
|
35
46
|
*/
|
|
36
|
-
setSorter<A extends any[]>(sorter?:
|
|
47
|
+
setSorter<A extends any[]>(sorter?: TranslationSorter.SortFallback<T, A>, ...args: A): this;
|
|
37
48
|
/**
|
|
38
49
|
* Sets a custom translator, which takes each value to sort and makes a string from it. These strings are cached by the sorter
|
|
39
50
|
*/
|
|
40
|
-
setTranslator<T2 = T>(translator:
|
|
51
|
+
setTranslator<T2 = T>(translator: TranslationSorter.Translator<T2>): TranslationSorter<T2>;
|
|
41
52
|
}
|
|
42
|
-
declare namespace
|
|
53
|
+
declare namespace TranslationSorter {
|
|
43
54
|
type EntryMapper<T = any> = (v: T) => number;
|
|
44
55
|
type SortFallback<T = any, A extends any[] = any[]> = (a: T, b: T, entryA: T extends Translation ? undefined : number, entryB: T extends Translation ? undefined : number, stringA: string, stringB: string, ...args: A) => number;
|
|
45
56
|
type Translator<T = any> = (v: T, entry?: number, dictionary?: Dictionary, index?: number) => Translation | string | undefined;
|
|
46
|
-
function create():
|
|
47
|
-
function create<T = number>(dictionary: Dictionary, index?: number):
|
|
57
|
+
function create(): TranslationSorter<Translation>;
|
|
58
|
+
function create<T = number>(dictionary: Dictionary, index?: number): TranslationSorter<T>;
|
|
48
59
|
}
|
|
49
|
-
export default
|
|
60
|
+
export default TranslationSorter;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2025 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 TranslationClass from "@wayward/game/language/Translation";
|
|
12
|
+
export default class TranslationUtility {
|
|
13
|
+
private static Translation;
|
|
14
|
+
protected readonly Translation: typeof TranslationClass;
|
|
15
|
+
}
|
|
@@ -15,9 +15,9 @@ import { ModState, ModType } from "@wayward/game/mod/IModInformation";
|
|
|
15
15
|
import { CanLoadState } from "@wayward/game/mod/IModManager";
|
|
16
16
|
import type Mod from "@wayward/game/mod/Mod";
|
|
17
17
|
import type { IModPath } from "@wayward/game/steamworks/ISteamworks";
|
|
18
|
-
import type { IRequireJs } from "@wayward/hosts/shared/globalTypes";
|
|
19
18
|
import type { IWorkshopItem } from "@wayward/hosts/shared/interfaces";
|
|
20
19
|
import Log from "@wayward/utilities/Log";
|
|
20
|
+
import type { ModuleLoader } from "@wayward/hosts/shared/globalTypes";
|
|
21
21
|
export declare class ModInformation implements IModInformation {
|
|
22
22
|
private readonly game;
|
|
23
23
|
readonly config: Readonly<IModConfig>;
|
|
@@ -119,5 +119,5 @@ export declare class ModInformation implements IModInformation {
|
|
|
119
119
|
* Called when ModManager setups up the mod
|
|
120
120
|
* @param scriptFileName javascript file name without ".js"
|
|
121
121
|
*/
|
|
122
|
-
loadScript(
|
|
122
|
+
loadScript(loader: ModuleLoader | undefined, modPath: IModPath, scriptFileName: string, reloading: boolean): Promise<void>;
|
|
123
123
|
}
|
|
@@ -13,6 +13,7 @@ import { ActionArgument } from "@wayward/game/game/entity/action/IAction";
|
|
|
13
13
|
import type Entity from "@wayward/game/game/entity/Entity";
|
|
14
14
|
import { Packet } from "@wayward/game/multiplayer/packets/Packet";
|
|
15
15
|
export default abstract class ActionPacketBase extends Packet {
|
|
16
|
+
readonly isActionPacket = true;
|
|
16
17
|
abstract entity: Entity | undefined;
|
|
17
18
|
protected writeArgument(expectedType: ActionArgumentCustom<any> | ActionArgument, value: any): void;
|
|
18
19
|
protected readArgument(expectedType: ActionArgumentCustom<any> | ActionArgument): unknown;
|
|
@@ -24,6 +24,7 @@ import SaveDropHandler from "@wayward/game/ui/SaveDropHandler";
|
|
|
24
24
|
import ServerJoinHandler from "@wayward/game/ui/ServerJoinHandler";
|
|
25
25
|
import Component from "@wayward/game/ui/component/Component";
|
|
26
26
|
import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
|
|
27
|
+
import InputManager from "@wayward/game/ui/input/InputManager";
|
|
27
28
|
import { ScreenId } from "@wayward/game/ui/screen/IScreen";
|
|
28
29
|
import ScreenManager from "@wayward/game/ui/screen/ScreenManager";
|
|
29
30
|
import ItemStylesheetHandler from "@wayward/game/ui/screen/screens/game/util/item/ItemStylesheet";
|
|
@@ -65,6 +66,8 @@ export declare class Ui extends EventEmitter.Host<IUiEvents> {
|
|
|
65
66
|
readonly promptsBridge: PromptsBridge;
|
|
66
67
|
private storage;
|
|
67
68
|
private readonly dataHosts;
|
|
69
|
+
get input(): typeof InputManager;
|
|
70
|
+
get components(): typeof Component;
|
|
68
71
|
constructor();
|
|
69
72
|
/**
|
|
70
73
|
* @param elements The elements to refresh translations inside
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
|
|
12
12
|
import { GameMode } from "@wayward/game/game/options/IGameOptions";
|
|
13
13
|
import type { Challenge } from "@wayward/game/game/options/modifiers/challenge/IChallenge";
|
|
14
|
-
import type { IslandModifierType } from "@wayward/game/game/options/modifiers/island/
|
|
14
|
+
import type { IslandModifierType } from "@wayward/game/game/options/modifiers/island/IIslandModifier";
|
|
15
15
|
import Component from "@wayward/game/ui/component/Component";
|
|
16
16
|
import type { IRefreshable } from "@wayward/game/ui/component/Refreshable";
|
|
17
17
|
import type { GameOptionsIcon, IGameOptionsIcon } from "@wayward/game/ui/screen/screens/menu/menus/pause/GameOptionsIcons";
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
12
12
|
import { IInput } from "@wayward/game/ui/input/IInput";
|
|
13
|
+
import InputInfo from "@wayward/game/ui/input/InputInfo";
|
|
13
14
|
import type { GlobalInputInfo, GlobalMouseInfo } from "@wayward/game/ui/input/InputManager";
|
|
14
|
-
import { InputInfo } from "@wayward/game/ui/input/InputManager";
|
|
15
15
|
import type { Macro } from "@wayward/game/ui/input/Macros";
|
|
16
16
|
import type { TypedPropertyDescriptorFunctionAnyNOfParams } from "@wayward/utilities/event/EventManager";
|
|
17
17
|
export interface IBindHandlerApi {
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { BindableTranslation } from "@wayward/game/language/dictionary/Misc";
|
|
12
|
-
import Translation from "@wayward/game/language/Translation";
|
|
12
|
+
import type Translation from "@wayward/game/language/Translation";
|
|
13
13
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
14
14
|
import type { Binding } from "@wayward/game/ui/input/Bindings";
|
|
15
|
+
export declare const defaultBindings: Record<Bindable, Binding[]>;
|
|
15
16
|
export interface IManagedBindable {
|
|
16
17
|
position: number;
|
|
17
18
|
translation: Translation;
|
|
@@ -23,6 +24,8 @@ export default abstract class BindableManager {
|
|
|
23
24
|
static registerManager(name: string, manager: BindableManager): boolean;
|
|
24
25
|
static deregisterManager(name: string): boolean;
|
|
25
26
|
static setNeedsUpdate(markBindingsCacheInvalid?: boolean): void;
|
|
27
|
+
private static readonly cacheInvalidatedCallbacks;
|
|
28
|
+
static onCacheInvalidated(callback: () => unknown): void;
|
|
26
29
|
private static BINDABLES;
|
|
27
30
|
private static BINDABLES_BY_VALUE;
|
|
28
31
|
private static needsUpdate;
|
|
@@ -12,6 +12,7 @@ import type Bindable from "@wayward/game/ui/input/Bindable";
|
|
|
12
12
|
import { BindableMouseTargetingContext, BindableType, BindableTypeContext } from "@wayward/game/ui/input/Bindable";
|
|
13
13
|
import type { Binding } from "@wayward/game/ui/input/Bindings";
|
|
14
14
|
declare namespace Bindables {
|
|
15
|
+
function onRegistrationsChanged(callback: () => unknown): void;
|
|
15
16
|
function register(index: number, defaultBinding: Binding[]): void;
|
|
16
17
|
function deregister(index: number): void;
|
|
17
18
|
function getType(bindable: Bindable): BindableType | undefined;
|
|
@@ -10,5 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
12
12
|
import type { Binding } from "@wayward/game/ui/input/Bindings";
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import type { IInput } from "@wayward/game/ui/input/IInput";
|
|
14
|
+
import type { Macro } from "@wayward/game/ui/input/Macros";
|
|
15
|
+
interface BindingGenerationContext {
|
|
16
|
+
mouse: typeof IInput.mouseButton;
|
|
17
|
+
touch: typeof IInput.touch;
|
|
18
|
+
key: typeof IInput.key;
|
|
19
|
+
scroll: typeof IInput.scroll;
|
|
20
|
+
macro(...inputs: IInput[]): Macro;
|
|
21
|
+
doublePress(input: IInput): Macro;
|
|
22
|
+
}
|
|
23
|
+
export default function generateDefaultBindings(context: BindingGenerationContext): Record<Bindable, Binding[]>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2025 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 Component from "@wayward/game/ui/component/Component";
|
|
12
|
+
import type { InputCatalyst } from "@wayward/game/ui/input/IInput";
|
|
13
|
+
export default class InputInfo {
|
|
14
|
+
readonly catalyst: InputCatalyst;
|
|
15
|
+
/**
|
|
16
|
+
* The component that this input began in.
|
|
17
|
+
*/
|
|
18
|
+
readonly startTarget: Component;
|
|
19
|
+
/**
|
|
20
|
+
* The unix timestamp representing when this input began. If this is a `"down"` event, the value will be `Date.now()`,
|
|
21
|
+
* whereas if this is a `"holding"` or `"up"` event, the value will be when the `"down"` event fired.
|
|
22
|
+
*/
|
|
23
|
+
readonly startTime: number;
|
|
24
|
+
/**
|
|
25
|
+
* Whether this input was a touch input
|
|
26
|
+
*/
|
|
27
|
+
readonly touch: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The number of milliseconds that have elapsed since `startTime`. Calculated on the fly.
|
|
30
|
+
*/
|
|
31
|
+
get duration(): number;
|
|
32
|
+
constructor(evt: Event, catalyst: InputCatalyst);
|
|
33
|
+
startWasWithin(component?: Component): boolean | undefined;
|
|
34
|
+
}
|
|
@@ -11,31 +11,10 @@
|
|
|
11
11
|
import Component from "@wayward/game/ui/component/Component";
|
|
12
12
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
13
13
|
import { IInput, InputCatalyst, Modifier } from "@wayward/game/ui/input/IInput";
|
|
14
|
+
import InputInfo from "@wayward/game/ui/input/InputInfo";
|
|
14
15
|
import Vector2 from "@wayward/game/utilities/math/Vector2";
|
|
15
16
|
import HashMap from "@wayward/utilities/collection/map/HashMap";
|
|
16
17
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
|
17
|
-
export declare class InputInfo {
|
|
18
|
-
readonly catalyst: InputCatalyst;
|
|
19
|
-
/**
|
|
20
|
-
* The component that this input began in.
|
|
21
|
-
*/
|
|
22
|
-
readonly startTarget: Component;
|
|
23
|
-
/**
|
|
24
|
-
* The unix timestamp representing when this input began. If this is a `"down"` event, the value will be `Date.now()`,
|
|
25
|
-
* whereas if this is a `"holding"` or `"up"` event, the value will be when the `"down"` event fired.
|
|
26
|
-
*/
|
|
27
|
-
readonly startTime: number;
|
|
28
|
-
/**
|
|
29
|
-
* Whether this input was a touch input
|
|
30
|
-
*/
|
|
31
|
-
readonly touch: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The number of milliseconds that have elapsed since `startTime`. Calculated on the fly.
|
|
34
|
-
*/
|
|
35
|
-
get duration(): number;
|
|
36
|
-
constructor(evt: Event, catalyst: InputCatalyst);
|
|
37
|
-
startWasWithin(component?: Component): boolean | undefined;
|
|
38
|
-
}
|
|
39
18
|
export interface IGlobalMouseInfoEvents {
|
|
40
19
|
move(position: Vector2): any;
|
|
41
20
|
invalidateTarget(): any;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
12
12
|
import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
|
|
13
13
|
import type Bindable from "@wayward/game/ui/input/Bindable";
|
|
14
|
-
import { Binding } from "@wayward/game/ui/input/Bindings";
|
|
14
|
+
import type { Binding } from "@wayward/game/ui/input/Bindings";
|
|
15
15
|
import { IInput } from "@wayward/game/ui/input/IInput";
|
|
16
16
|
import type { IStringSection } from "@wayward/game/utilities/string/Interpolator";
|
|
17
17
|
export interface IMacroSection extends IStringSection {
|
|
@@ -42,11 +42,14 @@ declare namespace Macros {
|
|
|
42
42
|
function didRequestIsolation(): boolean;
|
|
43
43
|
function handleInput(input: IInput, api: IBindHandlerApi): Macro | undefined;
|
|
44
44
|
function currentMatch(bindables?: readonly Bindable[], extraInputs?: IInput[]): IBindableMatch | undefined;
|
|
45
|
+
function setBindablesSupplier(get: () => readonly Bindable[]): void;
|
|
45
46
|
interface IBindableMatch {
|
|
46
47
|
matches?: Set<Bindable>;
|
|
47
48
|
mayMatch?: Set<Bindable>;
|
|
48
49
|
}
|
|
49
50
|
function match(binding: Binding, ...bindables: Bindable[]): IBindableMatch | undefined;
|
|
51
|
+
function setBindingsResolver(get: (bindable: Bindable) => readonly Binding[]): void;
|
|
52
|
+
function setBindingsHashFunction(hashFunction: (binding: Binding) => string): void;
|
|
50
53
|
function mergeMatches(...matches: Array<IBindableMatch | undefined>): IBindableMatch | undefined;
|
|
51
54
|
}
|
|
52
55
|
export default Macros;
|
|
@@ -15,6 +15,7 @@ import type Human from "@wayward/game/game/entity/Human";
|
|
|
15
15
|
import type { ActionId, IUsableActionExecutionContext, UsableActionUsability } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
16
16
|
import { IUsableActionPossibleUsing, UsableActionExecutionContext } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
17
17
|
import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAction";
|
|
18
|
+
import type UsableActionRegistrar from "@wayward/game/game/entity/action/usable/UsableActionRegistrar";
|
|
18
19
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
19
20
|
import type { IIslandTickOptions } from "@wayward/game/game/island/IIsland";
|
|
20
21
|
import type Island from "@wayward/game/game/island/Island";
|
|
@@ -30,9 +31,10 @@ import { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
|
|
|
30
31
|
import type { IUsableActionExecutionOptions } from "@wayward/game/ui/screen/screens/game/IGameScreenApi";
|
|
31
32
|
import { QuadrantComponentId, UsableActionExecutionResult } from "@wayward/game/ui/screen/screens/game/IGameScreenApi";
|
|
32
33
|
import WorldTooltipHandler from "@wayward/game/ui/screen/screens/game/WorldTooltipHandler";
|
|
33
|
-
import ContainerBucket from "@wayward/game/ui/screen/screens/game/component/ContainerBucket";
|
|
34
|
+
import type ContainerBucket from "@wayward/game/ui/screen/screens/game/component/ContainerBucket";
|
|
34
35
|
import { Quadrant } from "@wayward/game/ui/screen/screens/game/component/IQuadrantComponent";
|
|
35
36
|
import type QuadrantComponent from "@wayward/game/ui/screen/screens/game/component/QuadrantComponent";
|
|
37
|
+
import ContainerBucketManager from "@wayward/game/ui/screen/screens/game/component/container/ContainerBucketManager";
|
|
36
38
|
import ContainerDialog from "@wayward/game/ui/screen/screens/game/dialog/ContainerDialog";
|
|
37
39
|
import type ActionBar from "@wayward/game/ui/screen/screens/game/static/ActionBar";
|
|
38
40
|
import MenuBar from "@wayward/game/ui/screen/screens/game/static/MenuBar";
|
|
@@ -81,6 +83,8 @@ export default class GameScreen extends Screen {
|
|
|
81
83
|
private readonly nightPopupOverlay;
|
|
82
84
|
private readonly buttonRespawn;
|
|
83
85
|
private readonly buttonPause;
|
|
86
|
+
get buckets(): ContainerBucketManager;
|
|
87
|
+
get actions(): UsableActionRegistrar;
|
|
84
88
|
constructor();
|
|
85
89
|
get isTwoColumn(): boolean;
|
|
86
90
|
private get gameCanvasComponent();
|
|
@@ -8,9 +8,8 @@
|
|
|
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 type { ItemType } from "@wayward/game/game/item/IItem";
|
|
12
11
|
import { ContainerSort, type IContainer } from "@wayward/game/game/item/IItem";
|
|
13
|
-
import Item from "@wayward/game/game/item/Item";
|
|
12
|
+
import type Item from "@wayward/game/game/item/Item";
|
|
14
13
|
import type ItemManager from "@wayward/game/game/item/ItemManager";
|
|
15
14
|
import Button from "@wayward/game/ui/component/Button";
|
|
16
15
|
import { CheckButton } from "@wayward/game/ui/component/CheckButton";
|
|
@@ -19,52 +18,14 @@ import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
|
|
|
19
18
|
import { GlobalMouseInfo } from "@wayward/game/ui/input/InputManager";
|
|
20
19
|
import Dialog from "@wayward/game/ui/screen/screens/game/component/Dialog";
|
|
21
20
|
import DialogSortFilter from "@wayward/game/ui/screen/screens/game/component/DialogSortFilter";
|
|
22
|
-
import type ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
|
|
23
21
|
import ContainerBucketItemList from "@wayward/game/ui/screen/screens/game/component/container/ContainerBucketItemList";
|
|
22
|
+
import type ContainerBucketManager from "@wayward/game/ui/screen/screens/game/component/container/ContainerBucketManager";
|
|
24
23
|
import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
25
|
-
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
|
26
|
-
export declare enum ContainerBucketClasses {
|
|
27
|
-
__ShowQuickMoveTargetButtons = "--show-container-bucket-quick-move-target-buttons",
|
|
28
|
-
__ShowQuickMoveTarget_HoveredAction = "--show-container-bucket-quick-move-target--hovered-action",
|
|
29
|
-
__ShowQuickMoveTarget_BindableModifiers = "--show-container-bucket-quick-move-target--bindable-modifiers",
|
|
30
|
-
Main = "container-bucket",
|
|
31
|
-
TabButton = "container-bucket-tab-button",
|
|
32
|
-
TabButton_PrefersRight = "container-bucket-tab-button--prefers-right",
|
|
33
|
-
TabButton_Reverse = "container-bucket-tab-button--reverse",
|
|
34
|
-
TabButton_Hover = "container-bucket-tab-button--hover",
|
|
35
|
-
TabButton_HoverOrderEligible = "container-bucket-tab-button--hover-order-eligible",
|
|
36
|
-
TabButtonQuickMoveTarget = "container-bucket-tab-button-quick-move-target",
|
|
37
|
-
TabButtonQuickMoveTarget_Targeted = "container-bucket-tab-button-quick-move-target--targeted",
|
|
38
|
-
TabButtonMoveAll = "container-bucket-tab-button-move-all",
|
|
39
|
-
TabButtonAction = "container-bucket-tab-button-action"
|
|
40
|
-
}
|
|
41
|
-
export interface IContainerBucketsEvents {
|
|
42
|
-
register(bucket: ContainerBucket): any;
|
|
43
|
-
deregister(bucket: ContainerBucket): any;
|
|
44
|
-
}
|
|
45
24
|
export interface IContainerBucketEvents extends Events<Component> {
|
|
46
25
|
addItem(item: Item): any;
|
|
47
26
|
removeItem(item: Item): any;
|
|
48
27
|
}
|
|
49
28
|
export default class ContainerBucket extends Component {
|
|
50
|
-
static readonly event: EventEmitter<null, IContainerBucketsEvents>;
|
|
51
|
-
static readonly buckets: ContainerBucket[];
|
|
52
|
-
private static register;
|
|
53
|
-
private static deregister;
|
|
54
|
-
private static reregister;
|
|
55
|
-
static of(container?: IContainer): ContainerBucket | undefined;
|
|
56
|
-
static containing(item?: Item): ContainerBucket | undefined;
|
|
57
|
-
static hasAncestorsOpen(container?: IContainer): boolean;
|
|
58
|
-
private static activeRef?;
|
|
59
|
-
static getActive(): ContainerBucket | undefined;
|
|
60
|
-
static getLastInteracted(filter?: (bucket: ContainerBucket) => any): ContainerBucket | undefined;
|
|
61
|
-
static getSorting(): ItemComponent | undefined;
|
|
62
|
-
static cancelSorting(): void;
|
|
63
|
-
static getTransferDestination(transferFrom?: IContainer, item?: Item | ItemType, filter?: (bucket: ContainerBucket) => any): ContainerBucket | undefined;
|
|
64
|
-
private static readonly transferDestinationHolds;
|
|
65
|
-
static addTransferDestinationHoldFor(id: string, transferFrom: ContainerBucket): void;
|
|
66
|
-
static removeTransferDestinationHoldFor(id: string): void;
|
|
67
|
-
static updateTransferDestination(): void;
|
|
68
29
|
private readonly instanceId;
|
|
69
30
|
private settingContainer;
|
|
70
31
|
readonly itemList: ContainerBucketItemList;
|
|
@@ -77,7 +38,9 @@ export default class ContainerBucket extends Component {
|
|
|
77
38
|
get dialog(): Dialog | undefined;
|
|
78
39
|
event: IEventEmitter<this, IContainerBucketEvents>;
|
|
79
40
|
tabButtons: Button[];
|
|
80
|
-
|
|
41
|
+
private readonly managerRef;
|
|
42
|
+
get manager(): ContainerBucketManager;
|
|
43
|
+
constructor(manager: ContainerBucketManager, container?: IContainer);
|
|
81
44
|
deregisterAsDestination(): this;
|
|
82
45
|
hideSortFilterRow(): this;
|
|
83
46
|
setContainer(container?: IContainer): this;
|
|
@@ -12,7 +12,7 @@ import type Island from "@wayward/game/game/island/Island";
|
|
|
12
12
|
import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
|
|
13
13
|
import type { GameMode } from "@wayward/game/game/options/IGameOptions";
|
|
14
14
|
import type { Challenge } from "@wayward/game/game/options/modifiers/challenge/IChallenge";
|
|
15
|
-
import type { IslandModifierType } from "@wayward/game/game/options/modifiers/island/
|
|
15
|
+
import type { IslandModifierType } from "@wayward/game/game/options/modifiers/island/IIslandModifier";
|
|
16
16
|
import Component from "@wayward/game/ui/component/Component";
|
|
17
17
|
import type { IGameIconsHost, IGameModifiersHost } from "@wayward/game/ui/component/GameIcons";
|
|
18
18
|
import GameIcons, { GameModifiers } from "@wayward/game/ui/component/GameIcons";
|
|
@@ -16,6 +16,7 @@ import type MagicalPropertyManager from "@wayward/game/game/magic/MagicalPropert
|
|
|
16
16
|
import Component from "@wayward/game/ui/component/Component";
|
|
17
17
|
import type ContextMenu from "@wayward/game/ui/component/ContextMenu";
|
|
18
18
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
19
|
+
import { ItemRefreshType } from "@wayward/game/ui/screen/screens/game/component/item/IItemComponent";
|
|
19
20
|
import { ItemComponentHandler } from "@wayward/game/ui/screen/screens/game/component/item/ItemComponentHandler";
|
|
20
21
|
import type ActionBar from "@wayward/game/ui/screen/screens/game/static/ActionBar";
|
|
21
22
|
import type { ActionSlot } from "@wayward/game/ui/screen/screens/game/static/actions/ActionSlot";
|
|
@@ -43,29 +44,6 @@ export interface IItemDropApi {
|
|
|
43
44
|
bindable?: Bindable;
|
|
44
45
|
handler?: ItemComponentHandler;
|
|
45
46
|
}
|
|
46
|
-
export declare enum ItemTradeType {
|
|
47
|
-
None = "",
|
|
48
|
-
ToMerchant = "To",
|
|
49
|
-
FromMerchant = "From"
|
|
50
|
-
}
|
|
51
|
-
export declare enum ItemRefreshType {
|
|
52
|
-
None = 0,
|
|
53
|
-
ItemType = 1,
|
|
54
|
-
Durability = 2,
|
|
55
|
-
Decay = 4,
|
|
56
|
-
Quality = 8,
|
|
57
|
-
Magic = 16,
|
|
58
|
-
Protected = 32,
|
|
59
|
-
EquipSlot = 64,
|
|
60
|
-
MaybeSlottedInActionSlot = 128,
|
|
61
|
-
Action = 256,
|
|
62
|
-
Stack = 512,
|
|
63
|
-
Stacked = 1024,
|
|
64
|
-
Trading = 2048,
|
|
65
|
-
ContainerChange = 4096,
|
|
66
|
-
Cooldown = 8192,
|
|
67
|
-
All = 16383
|
|
68
|
-
}
|
|
69
47
|
export interface IItemComponentEvents extends Events<Component>, IDraggableEvents, IItemSlotEvents, ISortableDraggableEvents {
|
|
70
48
|
deregisterHighlights(): any;
|
|
71
49
|
refresh(type: ItemRefreshType): any;
|
package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type Tile from "@wayward/game/game/tile/Tile";
|
|
|
18
18
|
import Component from "@wayward/game/ui/component/Component";
|
|
19
19
|
import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
|
|
20
20
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
21
|
+
import type ContainerBucket from "@wayward/game/ui/screen/screens/game/component/ContainerBucket";
|
|
21
22
|
import ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
|
|
22
23
|
import type { IDraggableComponentSubscriber, ISortableComponent, WithSortableEvents } from "@wayward/game/ui/util/Sortable";
|
|
23
24
|
import Sortable from "@wayward/game/ui/util/Sortable";
|
|
@@ -84,7 +85,9 @@ export default class ContainerBucketItemList extends Component implements ISorta
|
|
|
84
85
|
isStacked(item?: Item): boolean;
|
|
85
86
|
getStackedItems(type?: ItemType, excluding?: Item): Item[];
|
|
86
87
|
getStackIndex(type?: ItemType): number | undefined;
|
|
87
|
-
|
|
88
|
+
private readonly bucketRef;
|
|
89
|
+
get bucket(): ContainerBucket;
|
|
90
|
+
constructor(bucket: ContainerBucket, container?: IContainer);
|
|
88
91
|
private readonly activeReasons;
|
|
89
92
|
toggleActive(reason: string, active: boolean): void;
|
|
90
93
|
getSortableID(child: Component & Partial<ItemComponent>): number | undefined;
|