@wayward/types 2.12.3-beta.dev.20230104.1 → 2.13.0-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/LICENSE +20 -20
- package/README.md +10 -10
- package/definitions/cplusplus/index.d.ts +5 -9
- package/definitions/game/IGlobal.d.ts +0 -12
- package/definitions/game/Uninit.d.ts +11 -5
- package/definitions/game/audio/Audio.d.ts +22 -12
- package/definitions/game/audio/IAudio.d.ts +32 -46
- package/definitions/game/audio/Music.d.ts +1 -2
- package/definitions/game/audio/SoundEffects.d.ts +1 -1
- package/definitions/game/command/ICommand.d.ts +7 -6
- package/definitions/game/{game/entity/npc/npcs/IMerchant.d.ts → command/commands/Noclip.d.ts} +3 -2
- package/definitions/game/event/EventBuses.d.ts +71 -61
- package/definitions/game/event/EventEmitter.d.ts +24 -16
- package/definitions/game/event/EventManager.d.ts +4 -1
- package/definitions/game/game/Game.d.ts +63 -32
- package/definitions/game/game/IGame.d.ts +40 -41
- package/definitions/game/game/IObject.d.ts +14 -4
- package/definitions/game/game/ObjectManager.d.ts +5 -4
- package/definitions/game/game/VotingManager.d.ts +3 -0
- package/definitions/game/game/biome/IBiome.d.ts +4 -2
- package/definitions/game/{utilities/game/TilePosition.d.ts → game/biome/arid/mapGen/2.13.0.d.ts} +2 -2
- package/definitions/game/{renderer/spriteBatch/SpriteBatch.d.ts → game/biome/coastal/mapGen/2.13.0.d.ts} +2 -3
- package/definitions/game/game/biome/iceCap/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/template/Template.d.ts +29 -0
- package/definitions/game/game/biome/template/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/template/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/volcanic/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/doodad/Doodad.d.ts +99 -53
- package/definitions/game/game/doodad/DoodadInfo.d.ts +5 -5
- package/definitions/game/game/doodad/DoodadManager.d.ts +39 -27
- package/definitions/game/game/doodad/Doodads.d.ts +0 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +67 -6
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +68 -0
- package/definitions/game/game/entity/Entity.d.ts +74 -122
- package/definitions/game/game/entity/EntityManager.d.ts +2 -9
- package/definitions/game/game/entity/EntityMovable.d.ts +121 -0
- package/definitions/game/game/entity/EntityWithStats.d.ts +73 -0
- package/definitions/game/game/entity/Human.d.ts +81 -38
- package/definitions/game/game/entity/IEntity.d.ts +109 -29
- package/definitions/game/game/entity/IHuman.d.ts +38 -23
- package/definitions/game/game/entity/Stats.d.ts +1 -1
- package/definitions/game/game/entity/action/Action.d.ts +9 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +6 -19
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +135 -113
- package/definitions/game/game/entity/action/IAction.d.ts +48 -11
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/AddFuel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Alter.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +7 -6
- package/definitions/game/game/entity/action/actions/Build.d.ts +3 -5
- package/definitions/game/game/entity/action/actions/Butcher.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Cast.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CopyMap.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/CreateControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DamageMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dig.d.ts +5 -6
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DrawMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enchant.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Equip.d.ts +5 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Exude.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Fire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +4 -7
- package/definitions/game/game/entity/action/actions/GrabAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Grasp.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/HealOther.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Idle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Jump.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Learn.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Lockpick.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Move.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveTo.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Noclip.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Offer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Pet.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUp.d.ts +4 -3
- package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Pour.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Preserve.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Read.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ReadMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Refine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Reinforce.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Release.d.ts +4 -1
- package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -2
- package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RestCancel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rub.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubCounterClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +23 -0
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +4 -5
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Shoot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Squeeze.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/StokeFire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Summon.d.ts +24 -0
- package/definitions/game/game/entity/action/actions/Tame.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Teleport.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/TellTime.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/TestDepth.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +5 -2
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +4 -6
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Trade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Unequip.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +3 -2
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateWalkPath.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmGatherHarvest.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmOnFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/Inventories.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +9 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionDrink.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCommands.d.ts +14 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCreatures.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsHidden.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +30 -26
- package/definitions/game/game/entity/action/usable/actions/UsableActionsUseNPC.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/doodad/IUsableActionsDoodad.d.ts +2 -2
- package/definitions/game/game/entity/creature/Creature.d.ts +86 -39
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +22 -23
- package/definitions/game/game/entity/creature/Creatures.d.ts +1 -4
- package/definitions/game/game/entity/creature/ICreature.d.ts +148 -9
- package/definitions/game/game/{inspection/infoProviders/creature/CreatureHealth.d.ts → entity/creature/SpecialAbilities.d.ts} +2 -6
- package/definitions/game/game/entity/creature/TileGroups.d.ts +13 -0
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +33 -26
- package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +6 -6
- package/definitions/game/game/entity/creature/corpse/Corpses.d.ts +0 -1
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +17 -0
- package/definitions/game/game/entity/flowfield/FlowField.d.ts +2 -2
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -2
- package/definitions/game/game/entity/flowfield/IFlowFieldManager.d.ts +4 -1
- package/definitions/game/game/entity/npc/INPC.d.ts +7 -0
- package/definitions/game/game/entity/npc/INPCs.d.ts +2 -1
- package/definitions/game/game/entity/npc/NPC.d.ts +96 -26
- package/definitions/game/game/entity/npc/NPCManager.d.ts +18 -7
- package/definitions/game/game/entity/npc/NPCS.d.ts +2 -2
- package/definitions/game/game/entity/npc/npcs/Controllable.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/DeathKnight.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +29 -30
- package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +66 -0
- package/definitions/game/game/entity/player/Customizations.d.ts +4 -4
- package/definitions/game/game/entity/player/IMessageManager.d.ts +7 -4
- package/definitions/game/game/entity/player/IPlayer.d.ts +8 -29
- package/definitions/game/game/entity/player/MessageManager.d.ts +8 -4
- package/definitions/game/game/entity/player/Player.d.ts +27 -16
- package/definitions/game/game/entity/player/PlayerManager.d.ts +23 -13
- package/definitions/game/game/entity/player/note/Corpse.d.ts +2 -2
- package/definitions/game/game/entity/player/note/NoteManager.d.ts +10 -4
- package/definitions/game/game/entity/player/quest/QuestManager.d.ts +3 -4
- package/definitions/game/game/entity/player/quest/Quests.d.ts +1 -2
- package/definitions/game/game/entity/player/quest/quest/Challenge.d.ts +8 -3
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +5 -5
- package/definitions/game/game/entity/skill/ISkills.d.ts +6 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffect.d.ts +4 -4
- package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
- package/definitions/game/game/inspection/IInfoProvider.d.ts +5 -3
- package/definitions/game/game/inspection/IInspection.d.ts +2 -1
- package/definitions/game/game/inspection/InfoProvider.d.ts +29 -3
- package/definitions/game/game/inspection/InfoProviderContext.d.ts +10 -6
- package/definitions/game/game/inspection/Inspection.d.ts +4 -4
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +4 -25
- package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +5 -8
- package/definitions/game/game/inspection/infoProviders/CivilizationScore.d.ts +30 -0
- package/definitions/game/game/inspection/infoProviders/ContainedItems.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/DoodadSkill.d.ts +29 -0
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +8 -8
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/creature/Aberrant.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +27 -0
- package/definitions/game/game/inspection/infoProviders/creature/{Happiness.d.ts → Difficulty.d.ts} +7 -4
- package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts +9 -3
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/doodad/GrowthStage.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/entity/Health.d.ts +5 -5
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +22 -17
- package/definitions/game/game/inspection/infoProviders/item/MagicalDamageType.d.ts +17 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +9 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +5 -6
- package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDismantleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemOfferInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemRangedInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemSetDownInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemShootInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemStokeInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTelescopyInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTrapDamageInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +3 -3
- package/definitions/game/game/inspection/infoProviders/skill/MagicalItemBonuses.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/DefenseInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CorpsesInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CreatureInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/EquipSlotInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/IslandInspection.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/ItemsInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +3 -1
- package/definitions/game/game/inspection/inspections/NPCInspection.d.ts +5 -2
- package/definitions/game/game/inspection/inspections/PlayerInspection.d.ts +4 -2
- package/definitions/game/game/inspection/inspections/RecipeInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/SelfInspection.d.ts +4 -5
- package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/StatInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/TileEventInspection.d.ts +4 -4
- package/definitions/game/game/inspection/inspections/TileInspection.d.ts +5 -6
- package/definitions/game/game/island/IIsland.d.ts +71 -17
- package/definitions/game/game/island/Island.d.ts +75 -148
- package/definitions/game/game/island/IslandManager.d.ts +11 -2
- package/definitions/game/game/island/Port.d.ts +43 -0
- package/definitions/game/game/island/TransientIsland.d.ts +33 -0
- package/definitions/game/game/item/IItem.d.ts +175 -25
- package/definitions/game/game/item/IItemManager.d.ts +21 -8
- package/definitions/game/game/item/Item.d.ts +95 -44
- package/definitions/game/game/item/ItemDescriptions.d.ts +2 -2
- package/definitions/game/game/item/ItemFinder.d.ts +2 -2
- package/definitions/game/game/item/ItemManager.d.ts +123 -94
- package/definitions/game/game/item/ItemMapManager.d.ts +3 -2
- package/definitions/game/game/item/WorldContainer.d.ts +16 -0
- package/definitions/game/game/item/recipe/Crafter.d.ts +3 -3
- package/definitions/game/game/item/recipe/RecipeRequirement.d.ts +2 -2
- package/definitions/game/game/item/recipe/requirement/FireRequirement.d.ts +2 -2
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -9
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +13 -1
- package/definitions/game/game/mapgen/IMapGen.d.ts +16 -5
- package/definitions/game/game/mapgen/MapGen.d.ts +2 -7
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +4 -5
- package/definitions/game/game/mapgen/version/2.12.0.d.ts +7 -3
- package/definitions/game/game/mapgen/version/2.12.1.d.ts +8 -4
- package/definitions/game/game/mapgen/version/2.13.0.d.ts +20 -0
- package/definitions/game/game/mapping/DrawnMap.d.ts +2 -2
- package/definitions/game/game/mapping/IMapTile.d.ts +2 -1
- package/definitions/game/game/mapping/IRegion.d.ts +22 -0
- package/definitions/game/game/meta/AutoSave.d.ts +12 -5
- package/definitions/game/game/meta/SaveLoad.d.ts +15 -9
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +88 -88
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
- package/definitions/game/game/meta/prompt/Prompts.d.ts +1 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +4 -1
- package/definitions/game/game/milestones/MilestoneManager.d.ts +12 -6
- package/definitions/game/game/options/IGameOptions.d.ts +6 -2
- package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +10 -6
- package/definitions/game/game/options/modifiers/GameplayModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -4
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +16 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +23 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +36 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -2
- package/definitions/game/game/reference/IReferenceManager.d.ts +4 -2
- package/definitions/game/game/reference/ReferenceManager.d.ts +8 -3
- package/definitions/game/game/temperature/TemperatureManager.d.ts +51 -26
- package/definitions/game/game/tile/ITerrain.d.ts +15 -27
- package/definitions/game/game/tile/ITileEvent.d.ts +3 -2
- package/definitions/game/game/tile/TerrainTemplates.d.ts +2 -2
- package/definitions/game/game/tile/Terrains.d.ts +1 -3
- package/definitions/game/game/tile/Tile.d.ts +311 -0
- package/definitions/game/game/tile/TileBits.d.ts +28 -0
- package/definitions/game/game/tile/TileEvent.d.ts +34 -31
- package/definitions/game/game/tile/TileEventManager.d.ts +21 -36
- package/definitions/game/game/tile/TileEvents.d.ts +1 -2
- package/definitions/game/game/tile/events/IFire.d.ts +4 -5
- package/definitions/game/game/tile/events/MeltingTile.d.ts +6 -6
- package/definitions/game/language/Dictionary.d.ts +109 -99
- package/definitions/game/language/DictionaryMap.d.ts +237 -314
- package/definitions/game/language/ITranslation.d.ts +6 -1
- package/definitions/game/language/LanguageManager.d.ts +12 -1
- package/definitions/game/language/Translation.d.ts +35 -8
- package/definitions/game/language/TranslationsProvider.d.ts +1 -1
- package/definitions/game/language/dictionary/Health.d.ts +24 -0
- package/definitions/game/language/dictionary/Message.d.ts +762 -917
- package/definitions/game/language/dictionary/Misc.d.ts +37 -32
- package/definitions/game/language/dictionary/UiTranslation.d.ts +842 -850
- package/definitions/game/language/english/Terrains.d.ts +2 -2
- package/definitions/game/language/english/creature/AiTypes.d.ts +13 -0
- package/definitions/game/language/english/creature/Corpses.d.ts +1 -1
- package/definitions/game/language/english/doodad/DoodadGroups.d.ts +1 -1
- package/definitions/game/language/english/game/Actions.d.ts +2 -2
- package/definitions/game/language/english/game/CombatDangerLevels.d.ts +13 -0
- package/definitions/game/language/english/game/CombatStrengths.d.ts +13 -0
- package/definitions/game/language/english/game/LighthouseName.d.ts +15 -0
- package/definitions/game/language/english/game/Regions.d.ts +13 -0
- package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameOverrunWithCreatureDescriptors.d.ts +1 -1
- package/definitions/game/language/english/item/DoodadsExtra.d.ts +13 -0
- package/definitions/game/language/english/item/ItemGroups.d.ts +2 -2
- package/definitions/game/language/english/item/Items.d.ts +2 -2
- package/definitions/game/language/english/living/HealthAccuracies.d.ts +13 -0
- package/definitions/game/language/english/living/Healths.d.ts +13 -0
- package/definitions/game/language/english/player/Milestones.d.ts +1 -1
- package/definitions/game/language/english/player/Skills.d.ts +2 -2
- package/definitions/game/language/english/ui/ModLoadErrors.d.ts +1 -1
- package/definitions/game/language/english/ui/UsableActionTypes.d.ts +2 -2
- package/definitions/game/language/english/ui/sort/MilestoneSorts.d.ts +13 -0
- package/definitions/game/language/english/ui/sort/SkillSorts.d.ts +13 -0
- package/definitions/game/language/impl/TranslationImpl.d.ts +7 -6
- package/definitions/game/language/segment/FormatListSegment.d.ts +1 -1
- package/definitions/game/language/utility/TranslationSorter.d.ts +3 -3
- package/definitions/game/mod/IMod.d.ts +1 -1
- package/definitions/game/mod/Mod.d.ts +2 -6
- package/definitions/game/mod/ModManager.d.ts +4 -0
- package/definitions/game/mod/ModRegistry.d.ts +96 -91
- package/definitions/game/multiplayer/IMultiplayer.d.ts +14 -1
- package/definitions/game/multiplayer/Multiplayer.d.ts +9 -4
- package/definitions/game/multiplayer/dedicatedServer/ssh/DefaultShell.d.ts +2 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/ISshShell.d.ts +2 -0
- package/definitions/game/multiplayer/dedicatedServer/ssh/Shell.d.ts +3 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/SshServer.d.ts +2 -1
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -0
- package/definitions/game/multiplayer/packets/BasePacket.d.ts +6 -1
- package/definitions/game/multiplayer/packets/IndexedPacket.d.ts +4 -1
- package/definitions/game/multiplayer/packets/Packets.d.ts +1 -1
- package/definitions/game/multiplayer/packets/client/LoadIslandPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/ConnectPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/UpdateActionBarPacket.d.ts +3 -2
- package/definitions/game/renderer/IRenderer.d.ts +81 -61
- package/definitions/game/renderer/Overlays.d.ts +1 -1
- package/definitions/game/renderer/Renderer.d.ts +54 -12
- package/definitions/game/renderer/Renderers.d.ts +20 -10
- package/definitions/game/renderer/WebGlContext.d.ts +2 -2
- package/definitions/game/renderer/context/BaseRendererContext.d.ts +8 -2
- package/definitions/game/renderer/context/RendererContext.d.ts +5 -1
- package/definitions/game/renderer/context/RendererOrigin.d.ts +6 -13
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +7 -6
- package/definitions/game/renderer/fieldOfView/IFieldOfView.d.ts +19 -9
- package/definitions/game/renderer/notifier/INotifier.d.ts +8 -6
- package/definitions/game/renderer/notifier/Notifier.d.ts +9 -8
- package/definitions/game/renderer/overlay/GenericOverlay.d.ts +26 -0
- package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleSystem.d.ts +4 -5
- package/definitions/game/renderer/spriteBatch/ISpriteBatch.d.ts +3 -1
- package/definitions/game/renderer/spriteBatch/PersistantSpriteBatch.d.ts +29 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +3 -26
- package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +5 -30
- package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +54 -0
- package/definitions/game/renderer/tile/TileLayer.d.ts +8 -0
- package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +15 -14
- package/definitions/game/renderer/world/IWorldLayer.d.ts +6 -2
- package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +26 -0
- package/definitions/game/renderer/world/IWorldRenderer.d.ts +8 -0
- package/definitions/game/renderer/world/World.d.ts +5 -5
- package/definitions/game/renderer/world/WorldLayer.d.ts +12 -7
- package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +22 -16
- package/definitions/game/renderer/world/WorldRenderer.d.ts +30 -25
- package/definitions/game/replay/IReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayManager.d.ts +3 -0
- package/definitions/game/resource/IResourcePath.d.ts +1 -1
- package/definitions/game/resource/ResourceLoader.d.ts +2 -1
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/SaveManager.d.ts +4 -2
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -5
- package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/datastorage/FileDataStorage.d.ts +3 -1
- package/definitions/game/save/datastorage/IndexedDbDataStorage.d.ts +2 -1
- package/definitions/game/save/serializer/ISerializer.d.ts +18 -4
- package/definitions/game/save/serializer/Serializer.d.ts +5 -3
- package/definitions/game/save/serializer/StringTokenizer.d.ts +4 -0
- package/definitions/game/save/upgrade/UpgradeGame.d.ts +2 -1
- package/definitions/game/save/upgrade/UpgradePlayer.d.ts +2 -1
- package/definitions/game/steamworks/Steamworks.d.ts +9 -1
- package/definitions/game/ui/IUi.d.ts +2 -1
- package/definitions/game/ui/Ui.d.ts +2 -0
- package/definitions/game/ui/component/ArticleComponent.d.ts +14 -0
- package/definitions/game/ui/component/Component.d.ts +4 -3
- package/definitions/game/ui/component/Dropdown.d.ts +21 -4
- package/definitions/game/ui/component/EnumContextMenu.d.ts +1 -3
- package/definitions/game/ui/component/GroupDropdown.d.ts +1 -1
- package/definitions/game/ui/component/IComponent.d.ts +1 -19
- package/definitions/game/ui/component/SortRow.d.ts +1 -1
- package/definitions/game/ui/component/Text.d.ts +6 -1
- package/definitions/game/ui/component/dropdown/EnumDropdown.d.ts +2 -2
- package/definitions/game/ui/component/dropdown/IslandPortsDropdown.d.ts +21 -0
- package/definitions/game/ui/component/dropdown/ItemDropdown.d.ts +3 -1
- package/definitions/game/ui/input/Bind.d.ts +7 -21
- package/definitions/game/ui/input/Bindable.d.ts +108 -97
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/InputManager.d.ts +1 -0
- package/definitions/game/ui/old/IOldUi.d.ts +5 -4
- package/definitions/game/ui/old/OldUi.d.ts +7 -11
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +56 -20
- package/definitions/game/ui/screen/Screen.d.ts +3 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -3
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +6 -5
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +4 -2
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/IMessages.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/CanvasDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +11 -7
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/CraftingDialog.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/dialog/IMilestonesDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/ISkillsDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/InspectDialog.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +31 -0
- package/definitions/game/ui/screen/screens/game/dialog/IslandsShippingDialog.d.ts +34 -0
- package/definitions/game/ui/screen/screens/game/dialog/MapDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/MessagesEditFiltersDialog.d.ts +7 -0
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/dialog/crafting/RecipeCache.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IIslandsDialog.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IslandsDialog.d.ts +95 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +9 -3
- package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts +1 -2
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +10 -9
- package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +7 -6
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusEffects.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/util/item/ItemStylesheet.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/MovementHandler.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/WalkToTileHandler.d.ts +3 -3
- package/definitions/game/ui/screen/screens/menu/menus/GameEndMenu.d.ts +4 -2
- package/definitions/game/ui/screen/screens/menu/menus/character/Swatch.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModInfoMenu.d.ts +2 -2
- package/definitions/game/ui/tooltip/Tooltip.d.ts +4 -17
- package/definitions/game/utilities/Files.d.ts +0 -1
- package/definitions/game/utilities/Log.d.ts +71 -67
- package/definitions/game/utilities/Version.d.ts +15 -9
- package/definitions/game/utilities/WebWorkerHelpers.d.ts +3 -6
- package/definitions/game/utilities/class/Inject.d.ts +2 -6
- package/definitions/game/utilities/collection/Arrays.d.ts +1 -42
- package/definitions/game/utilities/collection/Tuple.d.ts +53 -0
- package/definitions/game/utilities/collection/map/PriorityMap.d.ts +2 -1
- package/definitions/game/utilities/enum/EnumCursor.d.ts +1 -3
- package/definitions/game/utilities/enum/Enums.d.ts +7 -16
- package/definitions/game/utilities/enum/IEnum.d.ts +2 -1
- package/definitions/game/utilities/generic/GenericManager.d.ts +3 -1
- package/definitions/game/utilities/math/Bound3.d.ts +2 -2
- package/definitions/game/utilities/math/IVector.d.ts +7 -2
- package/definitions/game/utilities/math/Math2.d.ts +66 -0
- package/definitions/game/utilities/math/Range.d.ts +3 -0
- package/definitions/game/utilities/math/Rectangle.d.ts +3 -1
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -0
- package/definitions/game/utilities/object/Objects.d.ts +1 -1
- package/definitions/game/utilities/random/IRandom.d.ts +36 -0
- package/definitions/game/utilities/random/Random.d.ts +20 -54
- package/definitions/game/utilities/random/RandomReference.d.ts +16 -0
- package/definitions/game/utilities/random/RandomUtilities.d.ts +33 -0
- package/definitions/game/utilities/random/RandomValueGenerator.d.ts +3 -3
- package/definitions/game/utilities/random/SeededGenerator.d.ts +37 -0
- package/definitions/game/utilities/random/generators/LegacySeededGenerator.d.ts +21 -0
- package/definitions/game/utilities/random/generators/PCGSeededGenerator.d.ts +34 -0
- package/definitions/game/utilities/random/generators/{RandomItem.d.ts → specific/RandomItem.d.ts} +4 -2
- package/definitions/game/utilities/random/generators/{RandomRange.d.ts → specific/RandomRange.d.ts} +2 -1
- package/definitions/game/utilities/string/Interpolator.d.ts +3 -4
- package/definitions/game/utilities/string/Strings.d.ts +4 -0
- package/definitions/game/utilities/typesglobal/Descriptions.d.ts +1 -3
- package/definitions/game/webWorker/WebWorkerManager.d.ts +4 -3
- package/definitions/hosts/electron/main/interfaces.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/os/os.d.ts +5 -2
- package/definitions/hosts/electron/main/launchOptions.d.ts +3 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
- package/definitions/hosts/shared/ipc/handlers/os/os.d.ts +1 -0
- package/definitions/hosts/shared/ipc/os.d.ts +1 -0
- package/definitions/language-sync/index.d.ts +11 -0
- package/definitions/launcher/App.d.ts +29 -0
- package/definitions/launcher/Init.d.ts +16 -0
- package/definitions/launcher/Production.d.ts +10 -0
- package/definitions/launcher/ui/Article.d.ts +19 -0
- package/definitions/launcher/ui/Button.d.ts +36 -0
- package/definitions/launcher/ui/Component.d.ts +95 -0
- package/definitions/launcher/ui/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/LauncherUI.d.ts +32 -0
- package/definitions/launcher/ui/Section.d.ts +17 -0
- package/definitions/launcher/ui/component/Article.d.ts +22 -0
- package/definitions/launcher/ui/component/Button.d.ts +36 -0
- package/definitions/launcher/ui/component/Component.d.ts +95 -0
- package/definitions/launcher/ui/component/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/component/Section.d.ts +17 -0
- package/definitions/launcher/ui/launcher/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/launcher/FolderSelector.d.ts +63 -0
- package/definitions/launcher/ui/launcher/Mods.d.ts +16 -0
- package/definitions/launcher/ui/launcher/Resources.d.ts +18 -0
- package/definitions/launcher/ui/main/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/main/FolderSelector.d.ts +48 -0
- package/definitions/launcher/ui/main/Mods.d.ts +20 -0
- package/definitions/launcher/ui/main/Resources.d.ts +23 -0
- package/definitions/launcher/utilities/EventManager.d.ts +49 -0
- package/definitions/launcher/utilities/prototype/Apply.d.ts +11 -0
- package/definitions/test/core/application.d.ts +17 -15
- package/definitions/test/core/applicationDom.d.ts +8 -5
- package/definitions/test/core/applicationInteractions.d.ts +16 -13
- package/definitions/test/core/applicationLogger.d.ts +1 -1
- package/definitions/test/core/applicationManager.d.ts +12 -15
- package/definitions/test/core/chromeDriver.d.ts +2 -2
- package/definitions/test/index.d.ts +2 -3
- package/definitions/test/interfaces.d.ts +2 -6
- package/definitions/test/suite/functionalTests/multiplayer/Multiplayer.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/SaveImport.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/Singleplayer.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Actions.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Island.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/KdTree.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/MagicalPropertyManager.spec.d.ts +3 -3
- package/definitions/test/testRunner.d.ts +224 -0
- package/definitions/test/util/helpers.d.ts +12 -0
- package/definitions/test/util/ports.d.ts +11 -0
- package/definitions/test/util/random.d.ts +3 -2
- package/package.json +24 -24
- package/tsconfig.json +7 -7
- package/tsconfig.mod.base.json +44 -44
- package/definitions/game/game/entity/creature/Pathing.d.ts +0 -30
- package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +0 -65
- package/definitions/game/utilities/game/TileHelpers.d.ts +0 -123
- package/definitions/test/util/mochaNUnitReporter.d.ts +0 -38
|
@@ -36,10 +36,10 @@ export default class MapDialog extends PrerenderedCanvasDialog {
|
|
|
36
36
|
private rerender;
|
|
37
37
|
getName(): import("../../../../../language/impl/TranslationImpl").default;
|
|
38
38
|
read(map: DrawnMap, item: Item, resetView?: boolean): Promise<void>;
|
|
39
|
-
protected onInventoryItemRemove(_: any,
|
|
39
|
+
protected onInventoryItemRemove(_: any, itemOrItems: Item | Item[]): void;
|
|
40
40
|
protected onToggleProtected(item: Item): void;
|
|
41
|
-
protected onInventoryItemAdd(_: any,
|
|
42
|
-
protected onInventoryItemUpdate(_: any,
|
|
41
|
+
protected onInventoryItemAdd(_: any, items: Item[]): void;
|
|
42
|
+
protected onInventoryItemUpdate(_: any, items: Item[]): void;
|
|
43
43
|
protected onPostMove(player: Player): void;
|
|
44
44
|
protected onLoad(): Promise<void>;
|
|
45
45
|
private updateCopyMapButton;
|
|
@@ -24,11 +24,18 @@ export default class MessagesEditFiltersDialog extends Dialog {
|
|
|
24
24
|
private readonly filterContainer;
|
|
25
25
|
constructor();
|
|
26
26
|
initializeFilters(filters: IFilters): this;
|
|
27
|
+
private restoreToFilter?;
|
|
28
|
+
private stylesheet?;
|
|
27
29
|
private editFilter;
|
|
30
|
+
private updateStylesheet;
|
|
31
|
+
private lastDisplayedMessage?;
|
|
32
|
+
private displaySourcesTooltip;
|
|
28
33
|
private getSourceState;
|
|
29
34
|
private deleteFilter;
|
|
30
35
|
private saveFilter;
|
|
36
|
+
private createNewFiltersStateObject;
|
|
31
37
|
private onEditName;
|
|
32
38
|
private resetFilters;
|
|
39
|
+
protected onHide(): void;
|
|
33
40
|
}
|
|
34
41
|
export {};
|
|
@@ -8,12 +8,14 @@
|
|
|
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 Player from "game/entity/player/Player";
|
|
11
12
|
import { Milestone } from "game/milestones/IMilestone";
|
|
12
13
|
import Dialog from "ui/screen/screens/game/component/Dialog";
|
|
13
14
|
export default class MilestonesDialog extends Dialog {
|
|
14
15
|
private readonly milestones;
|
|
15
16
|
private readonly sortRow;
|
|
16
17
|
constructor();
|
|
18
|
+
onPlayerChangeTitle(player: Player, milestone?: Milestone): void;
|
|
17
19
|
onMilestoneUpdate(_: any, milestone: Milestone): void;
|
|
18
20
|
private sort;
|
|
19
21
|
private sortMilestones;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { ItemType } from "game/item/IItem";
|
|
12
|
-
import ItemOutput from "game/item/recipe/output/ItemOutput";
|
|
13
12
|
import type Recipe from "game/item/recipe/Recipe";
|
|
13
|
+
import ItemOutput from "game/item/recipe/output/ItemOutput";
|
|
14
14
|
export declare enum RecipeSort {
|
|
15
15
|
Name = 0
|
|
16
16
|
}
|
|
@@ -15,7 +15,8 @@ import type Island from "game/island/Island";
|
|
|
15
15
|
export declare enum MapPinType {
|
|
16
16
|
Self = 0,
|
|
17
17
|
Friend = 1,
|
|
18
|
-
Map = 2
|
|
18
|
+
Map = 2,
|
|
19
|
+
Lighthouse = 3
|
|
19
20
|
}
|
|
20
21
|
export declare const ISLANDS_SHOW_TREASURE_MAPS_SKILL_THRESHOLD = 40;
|
|
21
22
|
export declare function getMapsForIslandInInventory(player: Player, island: Island): import("../../../../../../game/item/Item").default[];
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import type Player from "game/entity/player/Player";
|
|
12
|
+
import type { IIslandPort } from "game/island/IIsland";
|
|
13
|
+
import type Island from "game/island/Island";
|
|
14
|
+
import type Button from "ui/component/Button";
|
|
15
|
+
import Component from "ui/component/Component";
|
|
16
|
+
import Input from "ui/component/Input";
|
|
17
|
+
import CanvasDialog from "ui/screen/screens/game/component/CanvasDialog";
|
|
18
|
+
import type { DialogId } from "ui/screen/screens/game/Dialogs";
|
|
19
|
+
import type { IVector2 } from "utilities/math/IVector";
|
|
20
|
+
import Vector2 from "utilities/math/Vector2";
|
|
21
|
+
export interface IIslandDialogOptions {
|
|
22
|
+
allowRename?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare enum IslandsDialogClasses {
|
|
25
|
+
Main = "game-dialog-islands",
|
|
26
|
+
Drawer = "game-dialog-islands-drawer",
|
|
27
|
+
IslandTitle = "game-dialog-islands-title",
|
|
28
|
+
Info = "game-dialog-islands-info",
|
|
29
|
+
Ports = "game-dialog-islands-ports",
|
|
30
|
+
Port = "game-dialog-islands-port",
|
|
31
|
+
PortTitle = "game-dialog-islands-port-title",
|
|
32
|
+
PortButton = "game-dialog-islands-port-button",
|
|
33
|
+
NoPort = "game-dialog-islands-port-none",
|
|
34
|
+
PortButtonSwimming = "game-dialog-islands-port-button-swimming",
|
|
35
|
+
ConstructLighthousesHint = "game-dialog-islands-construct-lighthouses-hint"
|
|
36
|
+
}
|
|
37
|
+
export interface IIslandsDialogPort {
|
|
38
|
+
port?: IIslandPort;
|
|
39
|
+
wrapper: Component;
|
|
40
|
+
button: Button;
|
|
41
|
+
}
|
|
42
|
+
export default abstract class IslandsDialog extends CanvasDialog {
|
|
43
|
+
private readonly options;
|
|
44
|
+
private hoveredIslandPosition?;
|
|
45
|
+
protected selectedIslandPosition: Vector2;
|
|
46
|
+
protected lastSailAwayCheckPosition?: Vector2;
|
|
47
|
+
readonly title: Input;
|
|
48
|
+
readonly info: Component<HTMLElement>;
|
|
49
|
+
readonly portsWrapper: Component<HTMLElement>;
|
|
50
|
+
readonly ports: IIslandsDialogPort[];
|
|
51
|
+
constructor(dialogId: DialogId, options: IIslandDialogOptions);
|
|
52
|
+
protected get island(): Island | undefined;
|
|
53
|
+
private addMouseMoveListener;
|
|
54
|
+
private removeMouseMoveListener;
|
|
55
|
+
protected onMouseMoveWhileOver(): void;
|
|
56
|
+
selectIsland(x: number, y: number): void;
|
|
57
|
+
protected onLoad(initial: boolean): Promise<void>;
|
|
58
|
+
protected onIslandRenamed(island: Island): void;
|
|
59
|
+
protected onPortsChanged(island: Island): void;
|
|
60
|
+
protected isPlayerSwimming(player: Player, swimming: boolean): boolean | undefined;
|
|
61
|
+
protected onMouseMove(): void;
|
|
62
|
+
protected onCanvasClick(): void;
|
|
63
|
+
protected onAccept(): boolean;
|
|
64
|
+
protected onLeft(): boolean;
|
|
65
|
+
protected onRight(): boolean;
|
|
66
|
+
protected onUp(): boolean;
|
|
67
|
+
protected onDown(): boolean;
|
|
68
|
+
protected onSubmit(): boolean;
|
|
69
|
+
private moveSelectedIsland;
|
|
70
|
+
protected onChangedSelectedIsland(animate?: boolean): void;
|
|
71
|
+
protected shouldDisplayConstructLighthousesHint(): boolean;
|
|
72
|
+
private initializePortComponent;
|
|
73
|
+
protected abstract createExecuteButton(port?: IIslandPort): Button | undefined;
|
|
74
|
+
protected resetViewZoom(): void;
|
|
75
|
+
protected resetViewOffset(islandPosition?: IVector2): void;
|
|
76
|
+
protected canHideDrawer(): boolean;
|
|
77
|
+
protected draw(): void;
|
|
78
|
+
private drawBackground;
|
|
79
|
+
private drawFogOfWar;
|
|
80
|
+
protected abstract shouldDisplayIsland(x: number, y: number, island?: Island): boolean;
|
|
81
|
+
private drawIsland;
|
|
82
|
+
protected abstract isSelectedIslandValid(): boolean;
|
|
83
|
+
private travelDotHead?;
|
|
84
|
+
private drawTravelDots;
|
|
85
|
+
private dotGenerationSpeed;
|
|
86
|
+
private generateTravelDots;
|
|
87
|
+
private mapBackgroundImage?;
|
|
88
|
+
private getMapBackground;
|
|
89
|
+
private getViewportBounds;
|
|
90
|
+
private offset;
|
|
91
|
+
private getIslandPosition;
|
|
92
|
+
private getIslandOffset;
|
|
93
|
+
private handleInvalidSprite;
|
|
94
|
+
private getHoveredIslandPosition;
|
|
95
|
+
}
|
|
@@ -17,6 +17,7 @@ import type { Game } from "game/Game";
|
|
|
17
17
|
import type { TickFlag } from "game/IGame";
|
|
18
18
|
import type Item from "game/item/Item";
|
|
19
19
|
import Button from "ui/component/Button";
|
|
20
|
+
import { CheckButton } from "ui/component/CheckButton";
|
|
20
21
|
import Component from "ui/component/Component";
|
|
21
22
|
import type { ContextMenuDescriptions } from "ui/component/ContextMenu";
|
|
22
23
|
import type { IRefreshable } from "ui/component/Refreshable";
|
|
@@ -29,6 +30,7 @@ import QuadrantComponent from "ui/screen/screens/game/component/QuadrantComponen
|
|
|
29
30
|
import ActionsConfigurationDrawer from "ui/screen/screens/game/static/actions/ActionsDrawer";
|
|
30
31
|
import ActionSlotTooltipHandler from "ui/screen/screens/game/static/actions/ActionSlotTooltip";
|
|
31
32
|
import { IActionBarSlotData } from "ui/screen/screens/game/static/actions/IActionBar";
|
|
33
|
+
import type TooltipLocationHandler from "ui/tooltip/TooltipLocationHandler";
|
|
32
34
|
export declare const MAX_SLOTS = 48;
|
|
33
35
|
export declare enum ActionBarClasses {
|
|
34
36
|
Main = "game-action-bar",
|
|
@@ -50,7 +52,9 @@ export declare enum ActionBarClasses {
|
|
|
50
52
|
MetaButtonAdd = "game-action-bar-meta-button-add",
|
|
51
53
|
MetaButtonAddIcon = "game-action-bar-meta-button-add-icon",
|
|
52
54
|
MetaButtonRemove = "game-action-bar-meta-button-remove",
|
|
53
|
-
MetaButtonRemoveIcon = "game-action-bar-meta-button-remove-icon"
|
|
55
|
+
MetaButtonRemoveIcon = "game-action-bar-meta-button-remove-icon",
|
|
56
|
+
MetaButtonToggleUseWhenMoving = "game-action-bar-meta-button-toggle-use-when-moving",
|
|
57
|
+
MetaButtonToggleUseWhenMovingIcon = "game-action-bar-meta-button-toggle-use-when-moving-icon"
|
|
54
58
|
}
|
|
55
59
|
export interface IActionBarEvents extends Events<QuadrantComponent> {
|
|
56
60
|
configure(number: number): any;
|
|
@@ -67,6 +71,7 @@ export default class ActionBar extends QuadrantComponent {
|
|
|
67
71
|
readonly slotsContainer: Component<HTMLElement>;
|
|
68
72
|
readonly metaButtons: Component<HTMLElement>;
|
|
69
73
|
readonly removeSlotButton: Button;
|
|
74
|
+
readonly toggleUseWhenMovingButton: CheckButton;
|
|
70
75
|
readonly addSlotButton: Button;
|
|
71
76
|
readonly configurationDrawer: ActionsConfigurationDrawer;
|
|
72
77
|
get configuringNumber(): number | undefined;
|
|
@@ -75,6 +80,7 @@ export default class ActionBar extends QuadrantComponent {
|
|
|
75
80
|
addSlot(): this;
|
|
76
81
|
removeSlot(): this;
|
|
77
82
|
generateSlots(): this;
|
|
83
|
+
private updateToggleUseOnMoveButton;
|
|
78
84
|
getSlottedIn(item: Item): ReadonlySet<number> | undefined;
|
|
79
85
|
private onMoveSlot;
|
|
80
86
|
private readonly slottedIn;
|
|
@@ -134,10 +140,10 @@ export declare class ActionSlot extends Button implements IRefreshable {
|
|
|
134
140
|
private lastUsableResult?;
|
|
135
141
|
private lastUseAttempt;
|
|
136
142
|
onActivate(nonClick?: IBindHandlerApi | true, silent?: true): boolean;
|
|
137
|
-
protected onGetOrRemoveItemInInventory(player: Player,
|
|
143
|
+
protected onGetOrRemoveItemInInventory(player: Player, items: Item[]): void;
|
|
138
144
|
onToggle(api: IBindHandlerApi): boolean;
|
|
139
145
|
protected onLeave(reason: "mouse" | "focus" | "remove"): void;
|
|
140
|
-
|
|
146
|
+
static getTooltipLocation(actionBar: ActionBar, handler: TooltipLocationHandler): TooltipLocationHandler;
|
|
141
147
|
getAction(): import("../../../../../game/entity/action/usable/UsableAction").default<IUsableActionRequirements, import("game/entity/action/usable/IUsableAction").IUsableActionDefinition<IUsableActionRequirements>> | undefined;
|
|
142
148
|
getUsing(): IUsableActionPossibleUsing;
|
|
143
149
|
}
|
|
@@ -37,6 +37,6 @@ export default class MenuBar extends QuadrantComponent implements ISortableCompo
|
|
|
37
37
|
refresh(): void;
|
|
38
38
|
protected getContextMenuDescription(api: IBindHandlerApi): ContextMenuDescriptions;
|
|
39
39
|
private getMissingMenuBarButtons;
|
|
40
|
-
|
|
40
|
+
static registerButtonBindHandlers(until: Promise<any>): void;
|
|
41
41
|
}
|
|
42
42
|
export {};
|
|
@@ -42,7 +42,7 @@ export default class Messages extends QuadrantComponent {
|
|
|
42
42
|
readonly filter: Button | undefined;
|
|
43
43
|
pinNotesAutomatically: boolean;
|
|
44
44
|
filters: IFilters;
|
|
45
|
-
private selectedFilter
|
|
45
|
+
private selectedFilter?;
|
|
46
46
|
private showSendButton;
|
|
47
47
|
private showOptionsButton;
|
|
48
48
|
private unfocusOnSend;
|
|
@@ -55,6 +55,7 @@ export default class Messages extends QuadrantComponent {
|
|
|
55
55
|
private readonly chatSentHistory;
|
|
56
56
|
private chatHistoryIndex;
|
|
57
57
|
private pushedCurrentToHistory;
|
|
58
|
+
private wasInTopQuadrant;
|
|
58
59
|
constructor();
|
|
59
60
|
getPins(): Stream<IPinnedMessage>;
|
|
60
61
|
getMessageTimestampMode(): MessageTimestamp;
|
|
@@ -67,7 +68,7 @@ export default class Messages extends QuadrantComponent {
|
|
|
67
68
|
setShouldUnfocusOnSend(shouldUnfocusOnSend: boolean): this;
|
|
68
69
|
getMaxMessages(): number;
|
|
69
70
|
setMaxMessages(maxMessages: number): this;
|
|
70
|
-
scrollToNewest(): void
|
|
71
|
+
scrollToNewest(): Promise<void>;
|
|
71
72
|
sendPinnedMessage(pinnedMessage: PinnedMessage): PinnedMessage;
|
|
72
73
|
pinQuestRequirement(quest: QuestInstance, requirement?: RequirementInstance): IPinnedMessage | PinnedMessage | undefined;
|
|
73
74
|
unpinMessage(pinnedMessage: PinnedMessage, time?: number): Promise<void>;
|
|
@@ -98,6 +99,9 @@ export default class Messages extends QuadrantComponent {
|
|
|
98
99
|
private hasIncompletePinnedRequirementFromAnotherQuest;
|
|
99
100
|
private showOptions;
|
|
100
101
|
private scheduleShowMessage;
|
|
102
|
+
private currentTurn?;
|
|
103
|
+
private currentTurnComponent?;
|
|
104
|
+
private getTurnGroup;
|
|
101
105
|
private updateMessages;
|
|
102
106
|
private messages;
|
|
103
107
|
/**
|
|
@@ -119,7 +123,8 @@ export default class Messages extends QuadrantComponent {
|
|
|
119
123
|
/**
|
|
120
124
|
* Changes the message filter
|
|
121
125
|
*/
|
|
122
|
-
|
|
126
|
+
setFilter(filterName?: string, skipRefresh?: boolean): void;
|
|
127
|
+
getFilter(): string | undefined;
|
|
123
128
|
private refreshLog;
|
|
124
129
|
private onShowDialog;
|
|
125
130
|
private onShowNote;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IUsableActionPossibleUsing } from "game/entity/action/usable/IUsableAction";
|
|
12
|
+
import type Item from "game/item/Item";
|
|
12
13
|
import type { Reference, ReferenceType } from "game/reference/IReferenceManager";
|
|
13
14
|
import type { Modifier } from "ui/input/IInput";
|
|
14
15
|
export interface IActionBarSlotData {
|
|
@@ -23,7 +24,8 @@ export interface IActionBarSlotData {
|
|
|
23
24
|
}
|
|
24
25
|
export declare module IActionBarSlotData {
|
|
25
26
|
function using(slotData?: IActionBarSlotData): IUsableActionPossibleUsing;
|
|
26
|
-
function item(slotData?: IActionBarSlotData | IActionBarSlotData["using"]):
|
|
27
|
+
function item(slotData?: IActionBarSlotData | IActionBarSlotData["using"]): Item | undefined;
|
|
28
|
+
function itemIs(slotData: IActionBarSlotData | IActionBarSlotData["using"] | undefined, item: Item): boolean;
|
|
27
29
|
function copy(slotData?: IActionBarSlotData): IActionBarSlotData;
|
|
28
30
|
function equals(a?: IActionBarSlotData, b?: IActionBarSlotData): boolean;
|
|
29
31
|
}
|
package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts
CHANGED
|
@@ -10,5 +10,4 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IMenuBarButtonDescription } from "ui/screen/screens/game/static/menubar/IMenuBarButton";
|
|
12
12
|
import { MenuBarButtonType } from "ui/screen/screens/game/static/menubar/IMenuBarButton";
|
|
13
|
-
declare const menuBarButtonDescriptions:
|
|
14
|
-
export default menuBarButtonDescriptions;
|
|
13
|
+
export declare const menuBarButtonDescriptions: Map<MenuBarButtonType, IMenuBarButtonDescription>;
|
|
@@ -8,30 +8,31 @@
|
|
|
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
|
|
11
|
+
import type { IHasImagePath } from "game/IObject";
|
|
12
|
+
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
12
13
|
import type { IStat, StatDisplayType } from "game/entity/IStats";
|
|
13
14
|
import type { Reference } from "game/reference/IReferenceManager";
|
|
14
15
|
import type { IModdable } from "mod/ModRegistry";
|
|
15
16
|
import type Component from "ui/component/Component";
|
|
16
17
|
import type Tooltip from "ui/tooltip/Tooltip";
|
|
17
18
|
import type { IStringSection } from "utilities/string/Interpolator";
|
|
18
|
-
export interface IStatDisplayDescription extends IModdable {
|
|
19
|
-
imagePath?: string | ((entity:
|
|
19
|
+
export interface IStatDisplayDescription extends IModdable, IHasImagePath<string | ((entity: EntityWithStats, stat: IStat) => string)> {
|
|
20
|
+
imagePath?: string | ((entity: EntityWithStats, stat: IStat) => string);
|
|
20
21
|
/**
|
|
21
22
|
* The CSS variable to use for the stat bar color
|
|
22
23
|
* Defaults to white
|
|
23
24
|
*/
|
|
24
|
-
color?: string | ((entity:
|
|
25
|
+
color?: string | ((entity: EntityWithStats, stat: IStat) => string);
|
|
25
26
|
/**
|
|
26
27
|
* The CSS variable to use for the stat bar color in RGB format
|
|
27
28
|
* Defaults to white
|
|
28
29
|
*/
|
|
29
|
-
rgbColor?: string | ((entity:
|
|
30
|
+
rgbColor?: string | ((entity: EntityWithStats, stat: IStat) => string);
|
|
30
31
|
/**
|
|
31
32
|
* The CSS variable to use for the background of the stat bar
|
|
32
33
|
* Defaults to black
|
|
33
34
|
*/
|
|
34
|
-
darkColor?: string | ((entity:
|
|
35
|
+
darkColor?: string | ((entity: EntityWithStats, stat: IStat) => string);
|
|
35
36
|
/**
|
|
36
37
|
* Defaults to `StatDisplayType.Auto`
|
|
37
38
|
*/
|
|
@@ -45,17 +46,17 @@ export interface IStatDisplayDescription extends IModdable {
|
|
|
45
46
|
/**
|
|
46
47
|
* Handlers for when the stat changes. Called when the stat changes & when the stat max changes.
|
|
47
48
|
*/
|
|
48
|
-
onChange?: Array<(statElement: Component, entity:
|
|
49
|
+
onChange?: Array<(statElement: Component, entity: EntityWithStats, stat: IStat, oldValue?: number) => void>;
|
|
49
50
|
/**
|
|
50
51
|
* Requires `StatDisplayType.Attribute`.
|
|
51
52
|
*
|
|
52
53
|
* For overriding the normal formatted output of a stat.
|
|
53
54
|
*/
|
|
54
|
-
getFormatted?(entity:
|
|
55
|
+
getFormatted?(entity: EntityWithStats, stat?: IStat): IStringSection[];
|
|
55
56
|
/**
|
|
56
57
|
* A function that will initialize a tooltip for this stat element, or a reference to show a tooltip for
|
|
57
58
|
*/
|
|
58
|
-
tooltip: Reference | ((tooltip: Tooltip, entity:
|
|
59
|
+
tooltip: Reference | ((tooltip: Tooltip, entity: EntityWithStats, stat: IStat) => any);
|
|
59
60
|
subscribeCalculateEquipmentStats?: true;
|
|
60
61
|
}
|
|
61
62
|
export declare const STAT_DEFAULT_DISPLAY_ORDER = 100;
|
|
@@ -8,12 +8,12 @@
|
|
|
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
|
|
11
|
+
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
12
12
|
import type { IStat, IStatBase } from "game/entity/IStats";
|
|
13
13
|
import { Stat } from "game/entity/IStats";
|
|
14
14
|
import type Component from "ui/component/Component";
|
|
15
15
|
import type { IStatDisplayDescription } from "ui/screen/screens/game/static/stats/IStatDisplayDescription";
|
|
16
|
-
declare const statDisplayDescriptions:
|
|
16
|
+
export declare const statDisplayDescriptions: Map<Stat, IStatDisplayDescription>;
|
|
17
17
|
export interface IStatInfo extends Partial<IStatBase> {
|
|
18
18
|
value: number;
|
|
19
19
|
percent: number;
|
|
@@ -24,7 +24,7 @@ export interface IStatInfo extends Partial<IStatBase> {
|
|
|
24
24
|
* @param predicate A function that takes an `IStatInfo` object and returns whether it "matches".
|
|
25
25
|
* @param handler A function that takes whether the info matches, the `statElement`, the entity, and the `IStatInfo` object and "handles" it.
|
|
26
26
|
*/
|
|
27
|
-
export declare function when(predicate: (info: IStatInfo) => boolean, handler: (matched: boolean, statElement: Component, entity:
|
|
27
|
+
export declare function when(predicate: (info: IStatInfo) => boolean, handler: (matched: boolean, statElement: Component, entity: EntityWithStats, info: IStatInfo) => any): (statElement: Component, entity: EntityWithStats, stat: IStat, oldValue?: number) => void;
|
|
28
28
|
/**
|
|
29
29
|
* Returns a `when()` handler that will toggle classes on a `statElement` based on whether the `predicate` matched.
|
|
30
30
|
*/
|
|
@@ -35,4 +35,3 @@ export declare function toggleClasses(...classes: string[]): (matched: boolean,
|
|
|
35
35
|
* When adding the `shake` class, removes it after 250 ms.
|
|
36
36
|
*/
|
|
37
37
|
export declare function shake(shouldShake: boolean, statElement: Component): Promise<void>;
|
|
38
|
-
export default statDisplayDescriptions;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Entity from "game/entity/Entity";
|
|
12
|
+
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
12
13
|
import type { IStatChangeInfo } from "game/entity/IEntity";
|
|
13
14
|
import type { IStat, IStatMax, Stat } from "game/entity/IStats";
|
|
14
15
|
import Component from "ui/component/Component";
|
|
@@ -18,7 +19,7 @@ export declare abstract class StatComponent extends Component {
|
|
|
18
19
|
private readonly entity;
|
|
19
20
|
private readonly stat;
|
|
20
21
|
private readonly statIcon;
|
|
21
|
-
constructor(entity:
|
|
22
|
+
constructor(entity: EntityWithStats, stat: Stat, noEvents?: true);
|
|
22
23
|
protected onRemove(): void;
|
|
23
24
|
/**
|
|
24
25
|
* Returns the attached entity's `IStat` for this `StatElement`'s `Stat`.
|
|
@@ -74,7 +75,7 @@ export declare abstract class StatsContainer<STAT_COMPONENT extends StatComponen
|
|
|
74
75
|
export declare class Statbar extends StatComponent {
|
|
75
76
|
private readonly bar;
|
|
76
77
|
private readonly text;
|
|
77
|
-
constructor(entity:
|
|
78
|
+
constructor(entity: EntityWithStats, stat: Stat, noEvents?: true);
|
|
78
79
|
getDisplayElement(): Text;
|
|
79
80
|
getGenericStatValue(stat: IStatMax): IStringSection[];
|
|
80
81
|
/**
|
|
@@ -86,14 +87,14 @@ export declare class Statbar extends StatComponent {
|
|
|
86
87
|
}
|
|
87
88
|
export declare class StatAttribute extends StatComponent {
|
|
88
89
|
private readonly attribute;
|
|
89
|
-
constructor(entity:
|
|
90
|
+
constructor(entity: EntityWithStats, stat: Stat, noEvents?: true);
|
|
90
91
|
getDisplayElement(): Text;
|
|
91
92
|
}
|
|
92
93
|
export declare class Statbars extends StatsContainer<Statbar> {
|
|
93
94
|
constructor(entity: Entity, stats: Iterable<Stat>, noEvents?: true);
|
|
94
|
-
protected createStatComponent(entity:
|
|
95
|
+
protected createStatComponent(entity: EntityWithStats, stat: Stat, noEvents: true | undefined): Statbar;
|
|
95
96
|
}
|
|
96
97
|
export declare class StatAttributes extends StatsContainer<StatAttribute> {
|
|
97
|
-
constructor(entity:
|
|
98
|
-
protected createStatComponent(entity:
|
|
98
|
+
constructor(entity: EntityWithStats, stats: Iterable<Stat>, noEvents?: true);
|
|
99
|
+
protected createStatComponent(entity: EntityWithStats, stat: Stat, noEvents: true | undefined): StatAttribute;
|
|
99
100
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { Events, IEventEmitter } from "event/EventEmitter";
|
|
12
|
-
import type
|
|
12
|
+
import type EntityWithStats from "game/entity/EntityWithStats";
|
|
13
13
|
import { StatusType } from "game/entity/IEntity";
|
|
14
14
|
import Component from "ui/component/Component";
|
|
15
15
|
export interface IStatusEffectsEvents extends Events<Component> {
|
|
@@ -19,7 +19,7 @@ export default class StatusEffects extends Component {
|
|
|
19
19
|
readonly event: IEventEmitter<this, IStatusEffectsEvents>;
|
|
20
20
|
private readonly entity;
|
|
21
21
|
private readonly effectIcons;
|
|
22
|
-
constructor(entity:
|
|
22
|
+
constructor(entity: EntityWithStats);
|
|
23
23
|
/**
|
|
24
24
|
* Event handler for the status effects of this entity changing
|
|
25
25
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import type { ILoadOnIslandOptions } from "game/entity/
|
|
11
|
+
import type { ILoadOnIslandOptions } from "game/entity/IHuman";
|
|
12
12
|
import type Island from "game/island/Island";
|
|
13
13
|
import SpriteGlow from "ui/screen/screens/game/util/item/SpriteGlow";
|
|
14
14
|
export default class ItemStylesheetHandler {
|
|
@@ -36,7 +36,7 @@ export default class MovementHandler extends EventEmitter.Host<IMovementHandlerE
|
|
|
36
36
|
protected onPlayerDeath(): void;
|
|
37
37
|
protected onFaceDown(api: IBindHandlerApi): boolean;
|
|
38
38
|
protected onFaceDirection(api: IBindHandlerApi): boolean;
|
|
39
|
-
protected onIdle(): boolean;
|
|
39
|
+
protected onIdle(api: IBindHandlerApi): boolean;
|
|
40
40
|
protected onMoveToTile(api: IBindHandlerApi): boolean;
|
|
41
41
|
protected onMove(api: IBindHandlerApi): boolean;
|
|
42
42
|
protected onMoveDirection(api: IBindHandlerApi): boolean;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
12
|
import type { IStat } from "game/entity/IStats";
|
|
13
13
|
import type Player from "game/entity/player/Player";
|
|
14
|
-
import type
|
|
14
|
+
import type Tile from "game/tile/Tile";
|
|
15
15
|
import type Component from "ui/component/Component";
|
|
16
16
|
import type { IBindHandlerApi } from "ui/input/Bind";
|
|
17
17
|
import type { IVector2 } from "utilities/math/IVector";
|
|
@@ -21,7 +21,7 @@ export interface IWalkToTileHandlerEvents {
|
|
|
21
21
|
* @param penalty The current penalty of the tile
|
|
22
22
|
* @param tile The tile to get the movement penalty of
|
|
23
23
|
*/
|
|
24
|
-
getTilePenalty(penalty: number, tile:
|
|
24
|
+
getTilePenalty(penalty: number, tile: Tile): number;
|
|
25
25
|
}
|
|
26
26
|
export default class WalkToTileHandler extends EventEmitter.Host<IWalkToTileHandlerEvents> {
|
|
27
27
|
private previewTarget;
|
|
@@ -51,7 +51,7 @@ export default class WalkToTileHandler extends EventEmitter.Host<IWalkToTileHand
|
|
|
51
51
|
protected onHoldMoveToTilePreview(api: IBindHandlerApi): boolean;
|
|
52
52
|
protected onReleaseMoveToTilePreview(): void;
|
|
53
53
|
protected onStatChanged(player: Player, stat: IStat): void;
|
|
54
|
-
protected onPostMove(player: Player,
|
|
54
|
+
protected onPostMove(player: Player, fromTile: Tile, toTile: Tile): void;
|
|
55
55
|
protected onWalkPathChange(player: Player, walkPath: IVector2[] | undefined): void;
|
|
56
56
|
private resetToMouse;
|
|
57
57
|
/**
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { PlayerState } from "game/entity/player/IPlayer";
|
|
12
12
|
import type { IHighscore } from "save/data/ISaveDataGlobal";
|
|
13
|
+
import Button from "ui/component/Button";
|
|
13
14
|
import Menu from "ui/screen/screens/menu/component/Menu";
|
|
14
15
|
export interface IGameEndData {
|
|
15
16
|
state: PlayerState.Won | PlayerState.Dead;
|
|
@@ -17,8 +18,9 @@ export interface IGameEndData {
|
|
|
17
18
|
}
|
|
18
19
|
export default class GameEndMenu extends Menu {
|
|
19
20
|
private readonly highscore;
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
readonly respawnButton: Button;
|
|
22
|
+
readonly continueAsGhostButton: Button;
|
|
23
|
+
gameEndData: IGameEndData;
|
|
22
24
|
constructor();
|
|
23
25
|
setGameEndData(gameEndData: IGameEndData): this;
|
|
24
26
|
protected onShow(): void;
|
|
@@ -12,7 +12,7 @@ import type { IColorDescription } from "game/entity/IHuman";
|
|
|
12
12
|
import ChoiceList, { Choice } from "ui/component/ChoiceList";
|
|
13
13
|
export declare class SwatchList<T extends number> extends ChoiceList<Swatch> {
|
|
14
14
|
private readonly colors;
|
|
15
|
-
constructor(colors:
|
|
15
|
+
constructor(colors: Map<T, IColorDescription>);
|
|
16
16
|
select(selection: T, thro?: boolean): void;
|
|
17
17
|
refreshChoices(): void;
|
|
18
18
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import { ArticleComponent } from "ui/component/ArticleComponent";
|
|
12
12
|
import { Block } from "ui/component/Block";
|
|
13
13
|
import { BlockRow } from "ui/component/BlockRow";
|
|
14
14
|
import Component from "ui/component/Component";
|
|
@@ -18,7 +18,7 @@ export default class ModInfoMenu extends Menu {
|
|
|
18
18
|
protected modImage: Component<HTMLElement>;
|
|
19
19
|
protected modMetadata: Block;
|
|
20
20
|
protected mainInfo: BlockRow;
|
|
21
|
-
protected readme:
|
|
21
|
+
protected readme: ArticleComponent;
|
|
22
22
|
private readonly hostRef;
|
|
23
23
|
get host(): ModRow;
|
|
24
24
|
constructor(host: ModRow);
|
|
@@ -13,8 +13,7 @@ import UiTranslation from "language/dictionary/UiTranslation";
|
|
|
13
13
|
import Translation from "language/Translation";
|
|
14
14
|
import Component from "ui/component/Component";
|
|
15
15
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
16
|
-
import {
|
|
17
|
-
import Text, { Paragraph } from "ui/component/Text";
|
|
16
|
+
import Text, { Heading } from "ui/component/Text";
|
|
18
17
|
import type Bindable from "ui/input/Bindable";
|
|
19
18
|
import type { TooltipAnchorStringHorizontal, TooltipAnchorStringVertical } from "ui/tooltip/TooltipLocationHandler";
|
|
20
19
|
import TooltipLocationHandler from "ui/tooltip/TooltipLocationHandler";
|
|
@@ -74,10 +73,6 @@ export default class Tooltip extends Component {
|
|
|
74
73
|
* Set this tooltip's location to follow the mouse.
|
|
75
74
|
*/
|
|
76
75
|
setLocation(location: "mouse"): this;
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated This overload will be removed in 2.13.0-beta. Please update to other overloads.
|
|
79
|
-
*/
|
|
80
|
-
setLocation(location: TooltipLocation): this;
|
|
81
76
|
private getDefaultLocation;
|
|
82
77
|
/**
|
|
83
78
|
* Sets the max width of this tooltip.
|
|
@@ -89,18 +84,8 @@ export default class Tooltip extends Component {
|
|
|
89
84
|
setDelay(delay?: number): this;
|
|
90
85
|
getLastBlock(): TooltipBlock;
|
|
91
86
|
getBlocks(): import("@wayward/goodstream").default<TooltipBlock>;
|
|
92
|
-
addBlock(initializer
|
|
87
|
+
addBlock(initializer?: (block: TooltipBlock) => any): this;
|
|
93
88
|
addHint(translation: TranslationGenerator, ...bindables: Bindable[]): this;
|
|
94
|
-
/** @deprecated use setText/addBlock */
|
|
95
|
-
addText(initializer: (text: Text) => any): this;
|
|
96
|
-
/** @deprecated use setText/addBlock */
|
|
97
|
-
addText<TEXT extends Text>(initializer: (text: Text) => any, cls?: Class<TEXT>): this;
|
|
98
|
-
/** @deprecated use setText/addBlock */
|
|
99
|
-
addHeading(initializer: (text: Text) => any): this;
|
|
100
|
-
/** @deprecated use setText/addBlock */
|
|
101
|
-
addParagraph(initializer: (text: Paragraph) => any): this;
|
|
102
|
-
/** @deprecated use setText/addBlock */
|
|
103
|
-
addList(...initializers: Array<((text: Text) => any) | undefined | false>): this;
|
|
104
89
|
updatePosition(regenerateBox?: boolean): this;
|
|
105
90
|
private initialPositionAndShownHandledExternally;
|
|
106
91
|
setInitialPositionAndShownHandledExternally(): this;
|
|
@@ -116,6 +101,8 @@ export declare class TooltipBlock extends Component {
|
|
|
116
101
|
constructor();
|
|
117
102
|
setSecondary(): this;
|
|
118
103
|
setTitle(initializer: (text: Text) => any): this;
|
|
104
|
+
addHeading(initializer: (text: Heading) => any): this;
|
|
119
105
|
addParagraph(initializer: (text: Text) => any): this;
|
|
120
106
|
addText(initializer: (text: Text) => any): this;
|
|
107
|
+
addList(...initializers: Array<((text: Text) => any) | undefined | false>): this;
|
|
121
108
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
*/
|
|
11
11
|
declare module Files {
|
|
12
12
|
function getXML(path: string, signal?: AbortSignal): Promise<Document>;
|
|
13
|
-
function get(path: string, signal?: AbortSignal): Promise<Response>;
|
|
14
13
|
function getText(path: string, signal?: AbortSignal): Promise<string>;
|
|
15
14
|
function getJson<T>(path: string, signal?: AbortSignal): Promise<T>;
|
|
16
15
|
function getArrayBuffer(path: string, signal?: AbortSignal): Promise<ArrayBuffer>;
|