@wayward/types 2.12.3-beta.dev.20221230.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 +2 -4
- 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
|
@@ -29,7 +29,7 @@ import SkillInspection from "game/inspection/inspections/SkillInspection";
|
|
|
29
29
|
import StatInspection from "game/inspection/inspections/StatInspection";
|
|
30
30
|
import TileEventInspection from "game/inspection/inspections/TileEventInspection";
|
|
31
31
|
import TileInspection from "game/inspection/inspections/TileInspection";
|
|
32
|
-
import type
|
|
32
|
+
import type Tile from "game/tile/Tile";
|
|
33
33
|
declare const inspectionTypeMap: {
|
|
34
34
|
12: typeof ActionInspection;
|
|
35
35
|
14: typeof CorpseInspection;
|
|
@@ -56,7 +56,7 @@ declare const inspectionTypeMap: {
|
|
|
56
56
|
};
|
|
57
57
|
export type InspectionClass = Class<Inspection<any>> & {
|
|
58
58
|
isWorldInspection?(inspectType: InspectType): boolean;
|
|
59
|
-
getFromTile?(
|
|
59
|
+
getFromTile?(tile: Tile, context: InfoProviderContext, inspectType: InspectType): ArrayOr<Inspection<any>>;
|
|
60
60
|
/**
|
|
61
61
|
* Whether or not this inspection class can handle the given arguments.
|
|
62
62
|
* @param args A list of arguments that an inspection can be provided
|
|
@@ -12,6 +12,7 @@ import EventEmitter from "event/EventEmitter";
|
|
|
12
12
|
import type { InspectType } from "game/inspection/IInspection";
|
|
13
13
|
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
14
14
|
import type Inspection from "game/inspection/Inspection";
|
|
15
|
+
import type { ResolvedInspection } from "game/inspection/InspectionTypeMap";
|
|
15
16
|
import HashSet from "utilities/collection/set/HashSet";
|
|
16
17
|
export interface IInspectionsHandlerEvents {
|
|
17
18
|
updatedInspections(type: InspectType, newInspections: HashSet<Inspection<any>>, oldInspections?: HashSet<Inspection<any>>): any;
|
|
@@ -21,33 +22,11 @@ export default abstract class InspectionsHandler extends EventEmitter.Host<IInsp
|
|
|
21
22
|
protected readonly inspectionsMap: Map<InspectType, HashSet<Inspection<any>>>;
|
|
22
23
|
static makeInspectionsSet(...values: Array<IterableOr<Inspection<any> | undefined>>): HashSet<Inspection<any>>;
|
|
23
24
|
constructor(context: InfoProviderContext, inspectionsMap?: Map<InspectType, HashSet<Inspection<any>>>);
|
|
24
|
-
get<TYPE extends InspectType>(inspectType: InspectType): HashSet<
|
|
25
|
-
12: typeof import("./inspections/ActionInspection").default;
|
|
26
|
-
14: typeof import("./inspections/CorpseInspection").default;
|
|
27
|
-
15: typeof import("./inspections/CorpsesInspection").default;
|
|
28
|
-
3: typeof import("./inspections/CreatureInspection").default;
|
|
29
|
-
10: typeof import("./inspections/ItemInspection").default;
|
|
30
|
-
4: typeof import("./inspections/DoodadInspection").default;
|
|
31
|
-
7: typeof import("./inspections/EquipSlotInspection").default;
|
|
32
|
-
6: typeof import("./inspections/PlayerInspection").default;
|
|
33
|
-
21: typeof import("./inspections/IslandInspection").default;
|
|
34
|
-
8: typeof import("./inspections/ItemInspection").default;
|
|
35
|
-
13: typeof import("./inspections/ItemsInspection").default;
|
|
36
|
-
11: typeof import("./inspections/ItemInspection").default;
|
|
37
|
-
19: typeof import("./inspections/MilestoneInspection").default;
|
|
38
|
-
2: typeof import("./inspections/NPCInspection").default;
|
|
39
|
-
1: typeof import("./inspections/PlayerInspection").default;
|
|
40
|
-
9: typeof import("./inspections/RecipeInspection").default;
|
|
41
|
-
0: typeof import("./inspections/SelfInspection").default;
|
|
42
|
-
18: typeof import("./inspections/SkillInspection").default;
|
|
43
|
-
20: typeof import("./inspections/StatInspection").default;
|
|
44
|
-
17: typeof import("./inspections/TileInspection").default;
|
|
45
|
-
5: typeof import("./inspections/TileEventInspection").default;
|
|
46
|
-
16: typeof import("./inspections/TileEventInspection").default.Minors;
|
|
47
|
-
}[TYPE]>> | undefined;
|
|
25
|
+
get<TYPE extends InspectType>(inspectType: InspectType): HashSet<ResolvedInspection<TYPE>> | undefined;
|
|
48
26
|
set(inspectType: InspectType, inspections: HashSet<Inspection<any>>): Map<InspectType, HashSet<Inspection<any>>>;
|
|
49
27
|
[Symbol.iterator](): IterableIterator<[InspectType, HashSet<Inspection<any>>]>;
|
|
50
|
-
types():
|
|
28
|
+
types(): IterableIterator<InspectType>;
|
|
29
|
+
all(): IterableIterator<[InspectType, HashSet<Inspection<any>>]>;
|
|
51
30
|
getInspectTypes(): InspectType[];
|
|
52
31
|
register(): void;
|
|
53
32
|
deregister(): void;
|
|
@@ -17,24 +17,21 @@ import type Inspection from "game/inspection/Inspection";
|
|
|
17
17
|
import InspectionsHandler from "game/inspection/InspectionsHandler";
|
|
18
18
|
import type { IContainer } from "game/item/IItem";
|
|
19
19
|
import type Item from "game/item/Item";
|
|
20
|
+
import type Tile from "game/tile/Tile";
|
|
20
21
|
import type TileEvent from "game/tile/TileEvent";
|
|
21
22
|
import type HashSet from "utilities/collection/set/HashSet";
|
|
22
|
-
import type { IVector3 } from "utilities/math/IVector";
|
|
23
|
-
import Vector3 from "utilities/math/Vector3";
|
|
24
23
|
export interface ITilePositionInspectionEvents {
|
|
25
24
|
updatedInspections(type: InspectType, newInspections: HashSet<Inspection<any>>, oldInspections?: HashSet<Inspection<any>>): any;
|
|
26
25
|
}
|
|
27
26
|
export default class TilePositionInspection extends InspectionsHandler {
|
|
28
|
-
private readonly
|
|
29
|
-
|
|
30
|
-
private get tile();
|
|
31
|
-
constructor(position: Vector3, context: InfoProviderContext);
|
|
27
|
+
private readonly tile;
|
|
28
|
+
constructor(tile: Tile, context: InfoProviderContext);
|
|
32
29
|
protected onEntityMove(entity: Entity): void;
|
|
33
30
|
protected onEntitySpawnOrRemove(_: any, entity: Entity): void;
|
|
34
|
-
protected onTileEventMove(
|
|
31
|
+
protected onTileEventMove(tileEvent: TileEvent): void;
|
|
35
32
|
protected onTileEventCreate(_: any, tileEvent: TileEvent): void;
|
|
36
33
|
protected onItemCreate(_: any, item: Item): void;
|
|
37
|
-
protected onItemMove(_: any,
|
|
34
|
+
protected onItemMove(_: any, _items: Item[], containerFrom: IContainer | undefined, _containerFromTile: Tile | undefined, containerTo: IContainer): void;
|
|
38
35
|
protected onCorpseCreate(_: any, corpse: Corpse): void;
|
|
39
36
|
protected onDoodadCreate(_: any, doodad: Doodad): void;
|
|
40
37
|
private updateInspectionsForEntity;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Doodad from "game/doodad/Doodad";
|
|
12
|
+
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
13
|
+
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
14
|
+
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
15
|
+
import type { IContainer } from "game/item/IItem";
|
|
16
|
+
import type Item from "game/item/Item";
|
|
17
|
+
import type Tile from "game/tile/Tile";
|
|
18
|
+
export default class CivilizationInfoProvider extends InfoProvider {
|
|
19
|
+
private readonly doodad;
|
|
20
|
+
static get(doodad: Doodad): 0 | CivilizationInfoProvider;
|
|
21
|
+
private readonly civilizationScore;
|
|
22
|
+
private readonly fullCivilizationScore;
|
|
23
|
+
constructor(doodad: Doodad);
|
|
24
|
+
getClass(): string[];
|
|
25
|
+
getDefaultDisplayLevel(): InfoDisplayLevel;
|
|
26
|
+
hasContent(): boolean;
|
|
27
|
+
get(): LabelledValue;
|
|
28
|
+
protected onItemMove(_: any, items: Item[], previousContainer: IContainer | undefined, _previousContainerTile: Tile | undefined, newContainer: IContainer): void;
|
|
29
|
+
private getCivilizationScore;
|
|
30
|
+
}
|
|
@@ -14,7 +14,7 @@ import { InfoProvider } from "game/inspection/InfoProvider";
|
|
|
14
14
|
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
15
15
|
import type { IContainer } from "game/item/IItem";
|
|
16
16
|
import type Item from "game/item/Item";
|
|
17
|
-
import type
|
|
17
|
+
import type Tile from "game/tile/Tile";
|
|
18
18
|
export default class ContainedItemsInfoProvider extends InfoProvider {
|
|
19
19
|
private readonly container;
|
|
20
20
|
static translateItems(max: number, ...items: Item[]): import("../../../language/impl/TranslationImpl").default;
|
|
@@ -24,5 +24,5 @@ export default class ContainedItemsInfoProvider extends InfoProvider {
|
|
|
24
24
|
getDefaultDisplayLevel(): InfoDisplayLevel;
|
|
25
25
|
hasContent(): boolean;
|
|
26
26
|
get(): LabelledValue;
|
|
27
|
-
protected onItemMove(_: any,
|
|
27
|
+
protected onItemMove(_: any, items: Item[], previousContainer: IContainer | undefined, _previousContainerTile: Tile | undefined, newContainer: IContainer): void;
|
|
28
28
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 Doodad from "game/doodad/Doodad";
|
|
12
|
+
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
13
|
+
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
14
|
+
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
15
|
+
import type { IContainer } from "game/item/IItem";
|
|
16
|
+
import type Item from "game/item/Item";
|
|
17
|
+
import type Tile from "game/tile/Tile";
|
|
18
|
+
export default class DoodadSkillInfoProvider extends InfoProvider {
|
|
19
|
+
private readonly doodad;
|
|
20
|
+
static get(doodad: Doodad): DoodadSkillInfoProvider;
|
|
21
|
+
private readonly containedItemsProvideSkill;
|
|
22
|
+
private readonly magicalDoodadSkills;
|
|
23
|
+
constructor(doodad: Doodad);
|
|
24
|
+
getClass(): string[];
|
|
25
|
+
getDefaultDisplayLevel(): InfoDisplayLevel;
|
|
26
|
+
hasContent(): boolean;
|
|
27
|
+
get(): LabelledValue;
|
|
28
|
+
protected onItemMove(_: any, items: Item[], previousContainer: IContainer | undefined, _previousContainerTile: Tile | undefined, newContainer: IContainer): void;
|
|
29
|
+
}
|
|
@@ -19,7 +19,8 @@ export declare enum LabelledValueDisplayMode {
|
|
|
19
19
|
"label (value)" = 1,
|
|
20
20
|
"value label" = 2,
|
|
21
21
|
"value (label)" = 3,
|
|
22
|
-
"label value" = 4
|
|
22
|
+
"label value" = 4,
|
|
23
|
+
"label - value" = 5
|
|
23
24
|
}
|
|
24
25
|
export default class LabelledValue extends InfoProvider {
|
|
25
26
|
private readonly label;
|
|
@@ -37,7 +38,7 @@ export default class LabelledValue extends InfoProvider {
|
|
|
37
38
|
getClass(): string[];
|
|
38
39
|
addClasses(...classes: string[]): this;
|
|
39
40
|
private getLabel;
|
|
40
|
-
get():
|
|
41
|
+
get(): Array<Translation | InfoProvider>;
|
|
41
42
|
protected initChildTextComponent(text: TranslationGenerator): Text;
|
|
42
43
|
setDisplayMode(mode: keyof typeof LabelledValueDisplayMode): this;
|
|
43
44
|
setDisplayMode(mode: keyof typeof LabelledValueDisplayMode): this;
|
|
@@ -14,7 +14,6 @@ import type { Quality } from "game/IObject";
|
|
|
14
14
|
import type { IHasMagic, MagicalNormalPropertyTypes, MagicalSubPropertyTypes } from "game/magic/MagicalPropertyManager";
|
|
15
15
|
import { MagicalPropertyIdentity } from "game/magic/MagicalPropertyManager";
|
|
16
16
|
import type { MagicalPropertyTypeSubTypeMap } from "game/magic/MagicalPropertyType";
|
|
17
|
-
import UiTranslation from "language/dictionary/UiTranslation";
|
|
18
17
|
import Translation from "language/Translation";
|
|
19
18
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
20
19
|
import { IRange } from "utilities/math/Range";
|
|
@@ -48,6 +47,7 @@ export default class MagicalPropertyValue extends InfoProvider {
|
|
|
48
47
|
setMagical(magicalThingy: IHasMagic | undefined, type: MagicalNormalPropertyTypes): this;
|
|
49
48
|
setMagical<T extends MagicalSubPropertyTypes>(magicalThingy: IHasMagic | undefined, type: T, subType?: MagicalPropertyTypeSubTypeMap[T]): this;
|
|
50
49
|
setMagical(magicalThingy: IHasMagic | undefined, ...identity: MagicalPropertyIdentity): this;
|
|
50
|
+
setCustomMagical(identity: MagicalPropertyIdentity, custom?: GetterOfOr<number | undefined>): this;
|
|
51
51
|
setMagicalReduction(): this;
|
|
52
52
|
setQuality(quality?: Quality, modifier?: number | IRange): this;
|
|
53
53
|
setSkill(skill?: SkillType, modifier?: number | IRange): this;
|
|
@@ -69,7 +69,7 @@ export default class MagicalPropertyValue extends InfoProvider {
|
|
|
69
69
|
setExpandedVerbose(): this;
|
|
70
70
|
setMagicIncluded(): this;
|
|
71
71
|
getClass(): string[];
|
|
72
|
-
get(): (TranslationGenerator
|
|
72
|
+
get(): (TranslationGenerator | InfoProvider)[];
|
|
73
73
|
private getOutOf;
|
|
74
74
|
private formatNumber;
|
|
75
75
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { ActionType } from "game/entity/action/IAction";
|
|
12
|
-
import type {
|
|
12
|
+
import type { EntityType } from "game/entity/IEntity";
|
|
13
13
|
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
14
14
|
import type { InfoProvider } from "game/inspection/InfoProvider";
|
|
15
15
|
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
@@ -18,16 +18,16 @@ import type Island from "game/island/Island";
|
|
|
18
18
|
import type Translation from "language/Translation";
|
|
19
19
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
20
20
|
export interface IDescribed {
|
|
21
|
-
|
|
21
|
+
entityType: EntityType;
|
|
22
22
|
type: number;
|
|
23
23
|
referenceId?: number;
|
|
24
24
|
quality?: Quality;
|
|
25
25
|
island: Island;
|
|
26
|
-
description
|
|
26
|
+
description: any;
|
|
27
27
|
}
|
|
28
|
-
export type DescribedDescription<T extends IDescribed> = Exclude<
|
|
28
|
+
export type DescribedDescription<T extends IDescribed> = Exclude<T["description"], undefined>;
|
|
29
29
|
export interface IUseInfoBase<T extends IDescribed, A extends ActionType> {
|
|
30
|
-
|
|
30
|
+
entityType: T["entityType"];
|
|
31
31
|
value?: T;
|
|
32
32
|
type: T["type"];
|
|
33
33
|
description: DescribedDescription<T>;
|
|
@@ -41,10 +41,10 @@ export interface IItemUseInfo<T extends IDescribed, A extends ActionType, M exte
|
|
|
41
41
|
methods: M;
|
|
42
42
|
}
|
|
43
43
|
export type InfoUnion<T extends IDescribed, ACTION extends ActionType> = {
|
|
44
|
-
[K in T["
|
|
45
|
-
|
|
44
|
+
[K in T["entityType"]]: IUseInfoBase<Extract<T, {
|
|
45
|
+
entityType: K;
|
|
46
46
|
}>, ACTION>;
|
|
47
|
-
}[T["
|
|
47
|
+
}[T["entityType"]];
|
|
48
48
|
export type UseInfoPredicate<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType> = (info: IUseInfoBase<T, ACTION>) => I | undefined;
|
|
49
49
|
export type UseInfoHandler<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType> = (info: I, context: InfoProviderContext) => Array<ArrayOr<TranslationGenerator | InfoProvider> | undefined> | Translation | InfoProvider | undefined;
|
|
50
50
|
export type UseInfoDisplayLevelGetter<I extends IUseInfoBase<T, ACTION>, T extends IDescribed, ACTION extends ActionType> = (info: I, context: InfoProviderContext) => InfoDisplayLevel;
|
|
@@ -20,9 +20,9 @@ export default abstract class Uses<T extends IDescribed> extends InfoProvider {
|
|
|
20
20
|
private label?;
|
|
21
21
|
private readonly value?;
|
|
22
22
|
private readonly type;
|
|
23
|
-
private readonly
|
|
23
|
+
private readonly entityType;
|
|
24
24
|
private readonly description?;
|
|
25
|
-
protected abstract
|
|
25
|
+
protected abstract getEntityType(): T["entityType"];
|
|
26
26
|
protected abstract getDescription(type: T["type"]): DescribedDescription<T> | undefined;
|
|
27
27
|
constructor(value: T["type"]);
|
|
28
28
|
constructor(value: T);
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Creature from "game/entity/creature/Creature";
|
|
12
12
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
13
|
+
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
13
14
|
export default class AberrantInfoProvider extends InfoProvider {
|
|
14
15
|
private readonly creature;
|
|
15
16
|
private aberrant;
|
|
17
|
+
private tamed;
|
|
16
18
|
constructor(creature: Creature);
|
|
17
19
|
getClass(): string[];
|
|
18
20
|
hasContent(): boolean;
|
|
19
|
-
get():
|
|
21
|
+
get(): LabelledValue;
|
|
20
22
|
onTickEnd(): void;
|
|
21
23
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 Creature from "game/entity/creature/Creature";
|
|
12
|
+
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
13
|
+
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
14
|
+
export default class CreatureTamedInfoProvider extends InfoProvider {
|
|
15
|
+
private readonly creature;
|
|
16
|
+
private readonly tamed;
|
|
17
|
+
private readonly mood;
|
|
18
|
+
private readonly tameTime;
|
|
19
|
+
private readonly ai;
|
|
20
|
+
private readonly pet;
|
|
21
|
+
private readonly milk;
|
|
22
|
+
constructor(creature: Creature);
|
|
23
|
+
getClass(): string[];
|
|
24
|
+
hasContent(): boolean;
|
|
25
|
+
get(): (import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue)[];
|
|
26
|
+
private getHappinessMessage;
|
|
27
|
+
}
|
package/definitions/game/game/inspection/infoProviders/creature/{Happiness.d.ts → Difficulty.d.ts}
RENAMED
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Creature from "game/entity/creature/Creature";
|
|
12
12
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
13
|
-
|
|
13
|
+
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
14
|
+
export default class DifficultyInfoProvider extends InfoProvider {
|
|
14
15
|
private readonly creature;
|
|
15
|
-
private
|
|
16
|
+
private health;
|
|
17
|
+
private ai;
|
|
18
|
+
private aberrant;
|
|
19
|
+
private tamed;
|
|
16
20
|
constructor(creature: Creature);
|
|
17
21
|
getClass(): string[];
|
|
18
22
|
hasContent(): boolean;
|
|
19
|
-
get():
|
|
23
|
+
get(): LabelledValue;
|
|
20
24
|
onTickEnd(): void;
|
|
21
|
-
private getHappinessMessage;
|
|
22
25
|
}
|
package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts
CHANGED
|
@@ -8,16 +8,22 @@
|
|
|
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 EventEmitter from "event/EventEmitter";
|
|
11
12
|
import type Creature from "game/entity/creature/Creature";
|
|
12
|
-
import type {
|
|
13
|
+
import type { CreatureType } from "game/entity/creature/ICreature";
|
|
14
|
+
import type Human from "game/entity/Human";
|
|
13
15
|
import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
|
|
14
16
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
15
17
|
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
16
|
-
import Translation from "language/Translation";
|
|
17
18
|
import type { TranslationGenerator } from "ui/component/IComponent";
|
|
19
|
+
export interface IResistancesAndVulnerabilitiesInfoProviderClassEvents {
|
|
20
|
+
shouldDisplayUndiscoveredResistsAndVulns(skill: number, human: Human): boolean | undefined;
|
|
21
|
+
}
|
|
18
22
|
export default class ResistancesAndVulnerabilitiesInfoProvider extends InfoProvider {
|
|
19
23
|
private readonly creature;
|
|
20
|
-
static
|
|
24
|
+
static event: EventEmitter<null, IResistancesAndVulnerabilitiesInfoProviderClassEvents>;
|
|
25
|
+
static get(creatureType: CreatureType, human?: Human): import("game/inspection/InfoProvider").SimpleInfoProvider[];
|
|
26
|
+
private static translateVulnOrResist;
|
|
21
27
|
constructor(creature: Creature);
|
|
22
28
|
getClass(): string[];
|
|
23
29
|
getDefaultDisplayLevel(): InfoDisplayLevel;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
import type Doodad from "game/doodad/Doodad";
|
|
12
12
|
import type { DoodadType, IDoodadDescription } from "game/doodad/IDoodad";
|
|
13
13
|
import { ActionType } from "game/entity/action/IAction";
|
|
14
|
-
import {
|
|
14
|
+
import { EntityType } from "game/entity/IEntity";
|
|
15
15
|
import Uses from "game/inspection/infoProviders/Uses";
|
|
16
16
|
export default class DoodadUses extends Uses<Doodad> {
|
|
17
|
-
protected
|
|
17
|
+
protected getEntityType(): EntityType.Doodad;
|
|
18
18
|
protected getDescription(type: DoodadType): IDoodadDescription | undefined;
|
|
19
19
|
protected getUses(description: IDoodadDescription): ActionType[];
|
|
20
20
|
protected getUseInfoHandlers(): import("../UseInfo").default<import("../UseInfo").IUseInfoBase<Doodad, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>, ActionType.StartFire | ActionType.Ignite | ActionType.Equip, {}, Doodad>[];
|
|
@@ -13,6 +13,7 @@ import { InfoProvider } from "game/inspection/InfoProvider";
|
|
|
13
13
|
export default class GrowthStageInfoProvider extends InfoProvider {
|
|
14
14
|
private readonly doodad;
|
|
15
15
|
static get(doodad: Doodad): false | GrowthStageInfoProvider | undefined;
|
|
16
|
+
static getGrowthStage(doodad: Doodad): import("../../../../language/impl/TranslationImpl").default | undefined;
|
|
16
17
|
private stage;
|
|
17
18
|
private constructor();
|
|
18
19
|
getClass(): string[];
|
|
@@ -8,17 +8,17 @@
|
|
|
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 } from "game/entity/IStats";
|
|
13
13
|
import { InfoProvider } from "game/inspection/InfoProvider";
|
|
14
14
|
import type { InfoProviderContext } from "game/inspection/InfoProviderContext";
|
|
15
|
-
|
|
16
|
-
export default class HealthInfoProvider<E extends Entity> extends InfoProvider {
|
|
15
|
+
export default class HealthInfoProvider<E extends EntityWithStats> extends InfoProvider {
|
|
17
16
|
protected readonly entity: E;
|
|
18
17
|
constructor(entity: E);
|
|
19
18
|
getClass(): string[];
|
|
19
|
+
protected onInitContent(): void;
|
|
20
20
|
hasContent(): boolean;
|
|
21
|
-
get(context: InfoProviderContext):
|
|
22
|
-
|
|
21
|
+
get(context: InfoProviderContext): InfoProvider;
|
|
22
|
+
private getValue;
|
|
23
23
|
protected onStatChange(_: any, stat: IStat): void;
|
|
24
24
|
}
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "game/entity/action/IAction";
|
|
12
|
-
import {
|
|
12
|
+
import { EntityType } from "game/entity/IEntity";
|
|
13
13
|
import Uses from "game/inspection/infoProviders/Uses";
|
|
14
14
|
import type { IItemDescription, ItemType } from "game/item/IItem";
|
|
15
15
|
import type Item from "game/item/Item";
|
|
16
16
|
export default class ItemUses extends Uses<Item> {
|
|
17
|
-
protected
|
|
17
|
+
protected getEntityType(): EntityType.Item;
|
|
18
18
|
protected getDescription(type: ItemType): IItemDescription;
|
|
19
19
|
protected getUses(description: IItemDescription): ActionType[];
|
|
20
20
|
protected getUseInfoHandlers(): (import("../UseInfo").default<{
|
|
21
21
|
doodadContainer: import("../../../doodad/IDoodad").IDoodadDescription | undefined;
|
|
22
22
|
civilizationScore: number | undefined;
|
|
23
|
-
|
|
23
|
+
entityType: EntityType.Item;
|
|
24
24
|
value?: Item | undefined;
|
|
25
25
|
type: ItemType;
|
|
26
26
|
description: IItemDescription;
|
|
@@ -40,15 +40,20 @@ export default class ItemUses extends Uses<Item> {
|
|
|
40
40
|
getPreservationChance: () => import("../LabelledValue").default | undefined;
|
|
41
41
|
} & {
|
|
42
42
|
getCivilizationScore: () => import("../LabelledValue").default | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
getMagicalBuildTypes: () => Set<import("../../../magic/MagicalPropertyType").MagicalPropertyType>;
|
|
45
|
+
} & {
|
|
46
|
+
getMagicEffect: (magic: import("../../../magic/MagicalPropertyManager").MagicalPropertyEntry) => import("../LabelledValue").default;
|
|
47
|
+
} & {
|
|
48
|
+
getDoodadSkill: () => import("../LabelledValue").default[];
|
|
43
49
|
}, Item> | import("../UseInfo").default<{
|
|
44
|
-
onConsume:
|
|
50
|
+
onConsume: [import("../../../entity/IStats").Stat, number][];
|
|
45
51
|
skill: import("../../../entity/IHuman").SkillType | undefined;
|
|
46
52
|
itemQuality: import("../../../IObject").Quality | undefined;
|
|
47
53
|
qualityBonus: number;
|
|
48
54
|
skillBonus: number;
|
|
49
55
|
magicalBonus: number;
|
|
50
|
-
|
|
51
|
-
objectType: CreationId.Item;
|
|
56
|
+
entityType: EntityType.Item;
|
|
52
57
|
value?: Item | undefined;
|
|
53
58
|
type: ItemType;
|
|
54
59
|
description: IItemDescription;
|
|
@@ -59,7 +64,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
59
64
|
}, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther, {
|
|
60
65
|
generateUseConsumeTooltip: () => (tooltip: import("../../../../ui/tooltip/Tooltip").default, stat: import("../../../entity/IStats").Stat, base: number) => import("../../../../ui/tooltip/Tooltip").default;
|
|
61
66
|
}, Item> | import("../UseInfo").default<{
|
|
62
|
-
|
|
67
|
+
entityType: EntityType.Item;
|
|
63
68
|
value?: Item | undefined;
|
|
64
69
|
type: ItemType;
|
|
65
70
|
description: IItemDescription;
|
|
@@ -69,7 +74,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
69
74
|
details: Set<symbol>;
|
|
70
75
|
}, ActionType.Craft, {}, Item> | import("../UseInfo").default<{
|
|
71
76
|
requiredItems: (ItemType | import("game/item/IItem").ItemTypeGroup)[];
|
|
72
|
-
|
|
77
|
+
entityType: EntityType.Item;
|
|
73
78
|
value?: Item | undefined;
|
|
74
79
|
type: ItemType;
|
|
75
80
|
description: IItemDescription;
|
|
@@ -81,7 +86,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
81
86
|
getRequiredItems: () => import("../../../../language/impl/TranslationImpl").default[];
|
|
82
87
|
}, Item> | import("../UseInfo").default<{
|
|
83
88
|
dismantle: import("game/item/IItem").IDismantleDescription;
|
|
84
|
-
|
|
89
|
+
entityType: EntityType.Item;
|
|
85
90
|
value?: Item | undefined;
|
|
86
91
|
type: ItemType;
|
|
87
92
|
description: IItemDescription;
|
|
@@ -91,7 +96,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
91
96
|
details: Set<symbol>;
|
|
92
97
|
}, ActionType.Dismantle, {}, Item> | import("../UseInfo").default<{
|
|
93
98
|
equip: import("../../../entity/IHuman").EquipType;
|
|
94
|
-
|
|
99
|
+
entityType: EntityType.Item;
|
|
95
100
|
value?: Item | undefined;
|
|
96
101
|
type: ItemType;
|
|
97
102
|
description: IItemDescription;
|
|
@@ -122,7 +127,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
122
127
|
} & {
|
|
123
128
|
getMagic: () => import("../LabelledValue").default[];
|
|
124
129
|
}, Item> | import("../UseInfo").default<{
|
|
125
|
-
|
|
130
|
+
entityType: EntityType.Item;
|
|
126
131
|
value?: Item | undefined;
|
|
127
132
|
type: ItemType;
|
|
128
133
|
description: IItemDescription;
|
|
@@ -132,7 +137,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
132
137
|
details: Set<symbol>;
|
|
133
138
|
}, ActionType.Offer, {}, Item> | import("../UseInfo").default<{
|
|
134
139
|
ranged: import("game/item/IItem").IRanged;
|
|
135
|
-
|
|
140
|
+
entityType: EntityType.Item;
|
|
136
141
|
value?: Item | undefined;
|
|
137
142
|
type: ItemType;
|
|
138
143
|
description: IItemDescription;
|
|
@@ -143,7 +148,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
143
148
|
}, ActionType.Cast | ActionType.Fire, {}, Item> | import("../UseInfo").default<{
|
|
144
149
|
civilizationScore: number | undefined;
|
|
145
150
|
growingSpeed: number | undefined;
|
|
146
|
-
|
|
151
|
+
entityType: EntityType.Item;
|
|
147
152
|
value?: Item | undefined;
|
|
148
153
|
type: ItemType;
|
|
149
154
|
description: IItemDescription;
|
|
@@ -157,7 +162,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
157
162
|
getGrowingSpeed: () => import("../LabelledValue").default | undefined;
|
|
158
163
|
}, Item> | import("../UseInfo").default<{
|
|
159
164
|
attack: number;
|
|
160
|
-
|
|
165
|
+
entityType: EntityType.Item;
|
|
161
166
|
value?: Item | undefined;
|
|
162
167
|
type: ItemType;
|
|
163
168
|
description: IItemDescription;
|
|
@@ -167,7 +172,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
167
172
|
details: Set<symbol>;
|
|
168
173
|
}, ActionType.Shoot, {}, Item> | import("../UseInfo").default<{
|
|
169
174
|
stoke: number;
|
|
170
|
-
|
|
175
|
+
entityType: EntityType.Item;
|
|
171
176
|
value?: Item | undefined;
|
|
172
177
|
type: ItemType;
|
|
173
178
|
description: IItemDescription;
|
|
@@ -177,7 +182,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
177
182
|
details: Set<symbol>;
|
|
178
183
|
}, ActionType.StokeFire, {}, Item> | import("../UseInfo").default<{
|
|
179
184
|
telescopy: number;
|
|
180
|
-
|
|
185
|
+
entityType: EntityType.Item;
|
|
181
186
|
value?: Item | undefined;
|
|
182
187
|
type: ItemType;
|
|
183
188
|
description: IItemDescription;
|
|
@@ -187,7 +192,7 @@ export default class ItemUses extends Uses<Item> {
|
|
|
187
192
|
details: Set<symbol>;
|
|
188
193
|
}, ActionType.Equip, {}, Item> | import("../UseInfo").default<import("../UseInfo").IUseInfoBase<Item, ActionType.Throw>, ActionType.Throw, {}, Item> | import("../UseInfo").default<{
|
|
189
194
|
damage: number;
|
|
190
|
-
|
|
195
|
+
entityType: EntityType.Item;
|
|
191
196
|
value?: Item | undefined;
|
|
192
197
|
type: ItemType;
|
|
193
198
|
description: IItemDescription;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { DamageType } from "game/entity/IEntity";
|
|
12
|
+
import type { IItemDescription } from "game/item/IItem";
|
|
13
|
+
import type Item from "game/item/Item";
|
|
14
|
+
declare namespace MagicalDamageType {
|
|
15
|
+
function translate(item?: Item, description?: IItemDescription, defaultDamageType?: DamageType): import("../../../../language/impl/TranslationImpl").default;
|
|
16
|
+
}
|
|
17
|
+
export default MagicalDamageType;
|
|
@@ -12,11 +12,13 @@ import { ActionType } from "game/entity/action/IAction";
|
|
|
12
12
|
import LabelledValue from "game/inspection/infoProviders/LabelledValue";
|
|
13
13
|
import UseInfo from "game/inspection/infoProviders/UseInfo";
|
|
14
14
|
import type Item from "game/item/Item";
|
|
15
|
+
import { MagicalPropertyEntry } from "game/magic/MagicalPropertyManager";
|
|
16
|
+
import { MagicalPropertyType } from "game/magic/MagicalPropertyType";
|
|
15
17
|
import { TempType } from "game/temperature/ITemperature";
|
|
16
18
|
declare const _default: UseInfo<{
|
|
17
19
|
doodadContainer: import("../../../../doodad/IDoodad").IDoodadDescription | undefined;
|
|
18
20
|
civilizationScore: number | undefined;
|
|
19
|
-
|
|
21
|
+
entityType: import("../../../../entity/IEntity").EntityType.Item;
|
|
20
22
|
value?: Item | undefined;
|
|
21
23
|
type: import("../../../../item/IItem").ItemType;
|
|
22
24
|
description: import("../../../../item/IItem").IItemDescription;
|
|
@@ -36,5 +38,11 @@ declare const _default: UseInfo<{
|
|
|
36
38
|
getPreservationChance: () => LabelledValue | undefined;
|
|
37
39
|
} & {
|
|
38
40
|
getCivilizationScore: () => LabelledValue | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
getMagicalBuildTypes: () => Set<MagicalPropertyType>;
|
|
43
|
+
} & {
|
|
44
|
+
getMagicEffect: (magic: MagicalPropertyEntry) => LabelledValue;
|
|
45
|
+
} & {
|
|
46
|
+
getDoodadSkill: () => LabelledValue[];
|
|
39
47
|
}, Item>;
|
|
40
48
|
export default _default;
|