@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
|
@@ -8,34 +8,37 @@
|
|
|
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
|
|
12
|
-
import type { DoodadTag, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder } from "game/doodad/IDoodad";
|
|
11
|
+
import type { IEventEmitter } from "event/EventEmitter";
|
|
12
|
+
import type { DisplayableDoodadType, DoodadTag, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder } from "game/doodad/IDoodad";
|
|
13
13
|
import { DoodadType, DoodadTypeGroup, GrowingStage } from "game/doodad/IDoodad";
|
|
14
14
|
import { ActionType } from "game/entity/action/IAction";
|
|
15
15
|
import type Creature from "game/entity/creature/Creature";
|
|
16
|
+
import Entity from "game/entity/Entity";
|
|
16
17
|
import type Human from "game/entity/Human";
|
|
18
|
+
import type { IEntityConstructorOptions, IEntityEvents } from "game/entity/IEntity";
|
|
19
|
+
import { EntityType } from "game/entity/IEntity";
|
|
20
|
+
import type { SkillType } from "game/entity/IHuman";
|
|
17
21
|
import { EquipType } from "game/entity/IHuman";
|
|
18
22
|
import type Player from "game/entity/player/Player";
|
|
19
|
-
import {
|
|
23
|
+
import { TileUpdateType } from "game/IGame";
|
|
20
24
|
import type { IObject } from "game/IObject";
|
|
21
25
|
import { Quality } from "game/IObject";
|
|
22
|
-
import type {
|
|
26
|
+
import type { IWell } from "game/island/IIsland";
|
|
23
27
|
import { LiquidType } from "game/island/IIsland";
|
|
24
|
-
import type { IContainer, ILiquidGather } from "game/item/IItem";
|
|
28
|
+
import type { DisplayableItemType, IContainer, ILiquidGather } from "game/item/IItem";
|
|
25
29
|
import { ItemType } from "game/item/IItem";
|
|
26
30
|
import type Item from "game/item/Item";
|
|
27
31
|
import type { IHasMagic } from "game/magic/MagicalPropertyManager";
|
|
28
32
|
import MagicalPropertyManager from "game/magic/MagicalPropertyManager";
|
|
29
|
-
import type {
|
|
30
|
-
import type { IHasInsulation, ITemperatureSource, TempType } from "game/temperature/ITemperature";
|
|
33
|
+
import type { IHasInsulation, TempType } from "game/temperature/ITemperature";
|
|
31
34
|
import { FireStage } from "game/tile/events/IFire";
|
|
32
|
-
import type
|
|
33
|
-
import
|
|
35
|
+
import type Tile from "game/tile/Tile";
|
|
36
|
+
import { Article } from "language/Translation";
|
|
34
37
|
import type { IUnserializedCallback } from "save/serializer/ISerializer";
|
|
35
38
|
import type { IRGB } from "utilities/Color";
|
|
36
39
|
import type { Direction } from "utilities/math/Direction";
|
|
37
40
|
import type { IVector3 } from "utilities/math/IVector";
|
|
38
|
-
export interface IDoodadEvents {
|
|
41
|
+
export interface IDoodadEvents extends IEntityEvents {
|
|
39
42
|
/**
|
|
40
43
|
* Called when an doodad is being updated
|
|
41
44
|
* @param tile The tile the doodad is on
|
|
@@ -53,7 +56,7 @@ export interface IDoodadEvents {
|
|
|
53
56
|
* Note: The fire stage of doodads is not saved, so when the doodad's fire stage is first checked on load, this event will be
|
|
54
57
|
* emitted.
|
|
55
58
|
*/
|
|
56
|
-
fireUpdate(tile:
|
|
59
|
+
fireUpdate(tile: Tile, stage: FireStage | undefined): any;
|
|
57
60
|
/**
|
|
58
61
|
* Emitted when the doodad is created.
|
|
59
62
|
*/
|
|
@@ -69,52 +72,55 @@ export interface IDoodadEvents {
|
|
|
69
72
|
durabilityChange(durability: number, oldDurability: number): any;
|
|
70
73
|
durabilityMaxChange(durability: number, oldDurability: number): any;
|
|
71
74
|
}
|
|
72
|
-
export default class Doodad extends
|
|
75
|
+
export default class Doodad extends Entity<IDoodadDescription, DoodadType, DoodadTag> implements IUnserializedCallback, IObject<DoodadType>, IDoodadOptions, Partial<IContainer>, IHasInsulation, IHasBuilder, IHasMagic {
|
|
73
76
|
static is(value: any): value is Doodad;
|
|
74
77
|
get constructorFunction(): typeof Doodad;
|
|
75
78
|
static getRegistrarId(): number;
|
|
76
79
|
static setRegistrarId(id: number): void;
|
|
77
80
|
protected static registrarId: number;
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
get entityType(): EntityType.Doodad;
|
|
82
|
+
get tileUpdateType(): TileUpdateType;
|
|
83
|
+
readonly event: IEventEmitter<this, IDoodadEvents>;
|
|
84
|
+
maxDur: number;
|
|
85
|
+
minDur: number;
|
|
86
|
+
private fireStage?;
|
|
87
|
+
aberrant?: boolean;
|
|
88
|
+
bonusAttack?: number;
|
|
89
|
+
builderIdentifier?: string;
|
|
90
|
+
containedItems?: Item[];
|
|
91
|
+
crafterIdentifier?: string;
|
|
80
92
|
decay?: number;
|
|
81
|
-
startingDecay?: number;
|
|
82
|
-
meltDecay?: number;
|
|
83
93
|
disassembly?: Item[];
|
|
84
94
|
gatherReady?: number;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
id: number;
|
|
88
|
-
referenceId?: number;
|
|
95
|
+
growth?: GrowingStage;
|
|
96
|
+
hitchedCreature?: number;
|
|
89
97
|
itemOrders?: number[];
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
magic?: MagicalPropertyManager;
|
|
99
|
+
meltDecay?: number;
|
|
92
100
|
orientation?: DoorOrientation | Direction.Cardinal;
|
|
93
|
-
crafterIdentifier?: string;
|
|
94
|
-
builderIdentifier?: string;
|
|
95
101
|
quality?: Quality;
|
|
96
|
-
renamed?: string | ISerializedTranslation;
|
|
97
102
|
spread?: number;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
readonly y: number;
|
|
102
|
-
readonly z: number;
|
|
103
|
-
step: number | undefined;
|
|
104
|
-
hitchedCreature?: number;
|
|
103
|
+
startingDecay?: number;
|
|
104
|
+
step?: number;
|
|
105
|
+
stillContainer?: Item;
|
|
105
106
|
tradedFrom?: string[];
|
|
106
|
-
|
|
107
|
-
private
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
private _description;
|
|
113
|
-
private _tile;
|
|
114
|
-
private _tileId;
|
|
107
|
+
weight?: number;
|
|
108
|
+
private _tileId?;
|
|
109
|
+
/**
|
|
110
|
+
* Separate property just for wells because isInGroup is still expensive for processWell()
|
|
111
|
+
*/
|
|
112
|
+
private _isWell?;
|
|
115
113
|
private readonly _doodadGroupCache;
|
|
116
|
-
constructor(
|
|
117
|
-
get
|
|
114
|
+
constructor(entityOptions?: IEntityConstructorOptions<DoodadType>, options?: IDoodadOptions);
|
|
115
|
+
get asCorpse(): undefined;
|
|
116
|
+
get asCreature(): undefined;
|
|
117
|
+
get asDoodad(): Doodad | undefined;
|
|
118
|
+
get asHuman(): undefined;
|
|
119
|
+
get asLocalPlayer(): undefined;
|
|
120
|
+
get asNPC(): undefined;
|
|
121
|
+
get asPlayer(): undefined;
|
|
122
|
+
get asTileEvent(): undefined;
|
|
123
|
+
get asItem(): undefined;
|
|
118
124
|
toString(): string;
|
|
119
125
|
getRegistrarId(): number;
|
|
120
126
|
/**
|
|
@@ -126,18 +132,17 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
126
132
|
* - `doodad.getName(false)` // "stone furnace"
|
|
127
133
|
* - `doodad.getName(undefined, 3)` // "stone furnaces"
|
|
128
134
|
*/
|
|
129
|
-
getName(article?:
|
|
130
|
-
|
|
135
|
+
getName(article?: Article, count?: number): import("../../language/impl/TranslationImpl").default;
|
|
136
|
+
protected getDescription(): IDoodadDescription | undefined;
|
|
131
137
|
updateTile(tileUpdateType: TileUpdateType): void;
|
|
132
138
|
changeType(doodadType: DoodadType): void;
|
|
133
139
|
isValid(): boolean;
|
|
134
140
|
isInGroup(doodadTypeGroup: DoodadTypeGroup): boolean;
|
|
135
141
|
updateGroupCache(doodadTypeGroup: DoodadTypeGroup): boolean;
|
|
136
|
-
|
|
142
|
+
get point(): IVector3;
|
|
143
|
+
get tile(): Tile;
|
|
137
144
|
getTileId(): number;
|
|
138
|
-
getPoint(): IVector3;
|
|
139
145
|
canGrow(): boolean;
|
|
140
|
-
getGrowingStage(): GrowingStage | undefined;
|
|
141
146
|
setGrowingStage(stage: GrowingStage): void;
|
|
142
147
|
/**
|
|
143
148
|
* Checks if the doodad will be rendered as tall (2 tiles)
|
|
@@ -146,7 +151,7 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
146
151
|
isTall(): boolean;
|
|
147
152
|
canPickUp(human: Human): boolean;
|
|
148
153
|
getPickUpTypes(): ItemType[] | undefined;
|
|
149
|
-
getAssociatedItem(): ItemType;
|
|
154
|
+
getAssociatedItem(): ItemType | import("game/item/IItem").ItemTypeExtra;
|
|
150
155
|
getActions(): ActionType[] | undefined;
|
|
151
156
|
/**
|
|
152
157
|
* Can the doodad be gathered from in its current form?
|
|
@@ -184,12 +189,16 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
184
189
|
getBuilder(): Player | undefined;
|
|
185
190
|
unhitch(): void;
|
|
186
191
|
damage(forceBreak?: boolean, skipDropAsItem?: boolean, skipSound?: boolean, skipResources?: boolean): void;
|
|
187
|
-
getDefaultDurability(random?: import("../../utilities/random/Random").Random<import("../../utilities/random/
|
|
192
|
+
getDefaultDurability(random?: import("../../utilities/random/Random").Random<import("../../utilities/random/generators/LegacySeededGenerator").LegacySeededGenerator | import("../../utilities/random/generators/PCGSeededGenerator").PCGSeededGenerator>): number;
|
|
193
|
+
/**
|
|
194
|
+
* Gets the container to use for doodad executed actions
|
|
195
|
+
*/
|
|
196
|
+
getTargetContainer(): IContainer | undefined;
|
|
188
197
|
addTreasureChestLoot(): void;
|
|
189
198
|
attachStillContainer(item: Item): void;
|
|
190
199
|
detachStillContainer(human: Human): Item | undefined;
|
|
191
200
|
blocksMove(): boolean;
|
|
192
|
-
update(ticks: number, playingHumans: Human[], updatesPerTick?: number): void;
|
|
201
|
+
update(ticks: number, playingHumans: Human[], playerHumanTiles: Set<Tile>, updatesPerTick?: number): void;
|
|
193
202
|
canCauseStatus(): boolean;
|
|
194
203
|
/**
|
|
195
204
|
* Potentially animates a skeleton (if it can spawn) and returns a message to all those who can see it.
|
|
@@ -221,6 +230,7 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
221
230
|
getLiquidGatherType(): keyof ILiquidGather | undefined;
|
|
222
231
|
getProducedTemperature(): number | undefined;
|
|
223
232
|
getInsulation(type: TempType): number | undefined;
|
|
233
|
+
isIslandPort(): boolean;
|
|
224
234
|
/**
|
|
225
235
|
* Refills solar stills when they are on shallow water automatically.
|
|
226
236
|
*/
|
|
@@ -247,6 +257,7 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
247
257
|
set durability(value: number);
|
|
248
258
|
get durabilityMax(): number;
|
|
249
259
|
set durabilityMax(value: number);
|
|
260
|
+
canInspect(human: Human): boolean;
|
|
250
261
|
private processSpecials;
|
|
251
262
|
/**
|
|
252
263
|
* Check for items on top of lit/fire doodads, set them on fire
|
|
@@ -273,10 +284,9 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
273
284
|
/**
|
|
274
285
|
* Gets the decay rate of a doodad based on the temperature (returns as a default of 0).
|
|
275
286
|
* @param terrainType The doodad description to check.
|
|
276
|
-
* @param point The point of the tile the doodad is on.
|
|
277
287
|
* @returns The number of melt reduction of the doodad given the temperature of the point.
|
|
278
288
|
*/
|
|
279
|
-
getMeltRate(description: IDoodadDescription
|
|
289
|
+
getMeltRate(description: IDoodadDescription): number;
|
|
280
290
|
/**
|
|
281
291
|
* Initialized the doodad's melting decay number
|
|
282
292
|
*/
|
|
@@ -285,6 +295,42 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
285
295
|
* Gives civilization score based on how much is defined for this doodad.
|
|
286
296
|
*/
|
|
287
297
|
changeCivilizationScore(add: boolean): void;
|
|
298
|
+
/**
|
|
299
|
+
* Updates a bookcase's graphics and civilization score (based on if books are added).
|
|
300
|
+
* @param item The item that is being added to the bookcase.
|
|
301
|
+
* @param add True if adding score, false if you are substracting.
|
|
302
|
+
*/
|
|
303
|
+
updateBookcase(items: Item[], add: boolean): void;
|
|
304
|
+
/**
|
|
305
|
+
* Determines which graphic to show based on how full the bookcase is with books/text.
|
|
306
|
+
* @param item set to true if DisplayableItemType is to be returned.
|
|
307
|
+
* @returns DoodadTypeExtra or DisplayableItemType equal to which graphic it should show.
|
|
308
|
+
*/
|
|
309
|
+
getBookcaseFullness(item?: boolean): DoodadTypeExtra | DisplayableItemType | undefined;
|
|
310
|
+
/**
|
|
311
|
+
* Gets if the doodad is set to display any extra graphics/assets.
|
|
312
|
+
* @returns DisplayableDoodadType or DoodadType (if no extra is set)
|
|
313
|
+
*/
|
|
314
|
+
getDisplayDoodad(): DisplayableDoodadType;
|
|
315
|
+
/**
|
|
316
|
+
* Gets civilization score based on doodad's quality and type, but without the magical property values.
|
|
317
|
+
* @returns number of score (or 0 if no civilization score is set).
|
|
318
|
+
*/
|
|
319
|
+
getCivilizationScore(excludeMagic?: boolean): number;
|
|
320
|
+
/**
|
|
321
|
+
* Gets a set of skill types and values from doodads that have "containedItemGroupProvidesSkill" set for items that provide adjacent skill bonuses.
|
|
322
|
+
* @returns Map of skill type and number (skill value).
|
|
323
|
+
*/
|
|
324
|
+
getcontainedItemSkillBonuses(): Map<SkillType, number>;
|
|
325
|
+
/**
|
|
326
|
+
* Gets a set of skill types and values for magical adjacent skill bonuses from doodads.
|
|
327
|
+
* @returns Map of skill type and number (skill value).
|
|
328
|
+
*/
|
|
329
|
+
getMagicalDoodadSkills(): Map<SkillType, number>;
|
|
330
|
+
/**
|
|
331
|
+
* Forces a boat to be drydocked (revert from doodad to an item if water was taken away for some reason).
|
|
332
|
+
*/
|
|
333
|
+
dryDockBoat(human: Human): void;
|
|
288
334
|
/**
|
|
289
335
|
* Decay over time
|
|
290
336
|
*/
|
|
@@ -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 { DisplayableDoodadType } from "game/doodad/IDoodad";
|
|
12
12
|
import type { TerrainType } from "game/tile/ITerrain";
|
|
13
13
|
import type { TerrainDecoration } from "renderer/Decorations";
|
|
14
14
|
import Vector2 from "utilities/math/Vector2";
|
|
15
15
|
export default class DoodadInfo {
|
|
16
|
-
type:
|
|
17
|
-
isTall: boolean;
|
|
18
|
-
isAnimated: boolean;
|
|
16
|
+
readonly type: DisplayableDoodadType | TerrainType | TerrainDecoration;
|
|
17
|
+
readonly isTall: boolean;
|
|
18
|
+
readonly isAnimated: boolean;
|
|
19
19
|
topLeft: Vector2;
|
|
20
20
|
topRight: Vector2;
|
|
21
21
|
bottomLeft: Vector2;
|
|
22
22
|
bottomRight: Vector2;
|
|
23
|
-
constructor(type:
|
|
23
|
+
constructor(type: DisplayableDoodadType | TerrainType | TerrainDecoration, isTall: boolean, xOffset: number, yOffset: number, isAnimated: boolean);
|
|
24
24
|
}
|
|
@@ -8,27 +8,27 @@
|
|
|
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 { BiomeType } from "game/biome/IBiome";
|
|
11
12
|
import Doodad from "game/doodad/Doodad";
|
|
12
13
|
import type { IDoodadOptions } from "game/doodad/IDoodad";
|
|
13
|
-
import { DoodadType, DoodadTypeGroup } from "game/doodad/IDoodad";
|
|
14
|
+
import { DoodadType, DoodadTypeExtra, DoodadTypeGroup } from "game/doodad/IDoodad";
|
|
14
15
|
import type Creature from "game/entity/creature/Creature";
|
|
15
16
|
import type Human from "game/entity/Human";
|
|
16
|
-
import { CreationId } from "game/IGame";
|
|
17
17
|
import { ObjectManager } from "game/ObjectManager";
|
|
18
18
|
import type { TerrainType } from "game/tile/ITerrain";
|
|
19
|
+
import Tile from "game/tile/Tile";
|
|
20
|
+
import type { WorldZ } from "game/WorldZ";
|
|
21
|
+
import type { Article } from "language/Translation";
|
|
19
22
|
import Translation from "language/Translation";
|
|
20
|
-
import type Vector3 from "utilities/math/Vector3";
|
|
21
23
|
export interface IDoodadManagerEvents {
|
|
22
24
|
/**
|
|
23
25
|
* Called when a doodad is about to be spawned
|
|
24
26
|
* @param type The type of doodad
|
|
25
|
-
* @param
|
|
26
|
-
* @param y The y coordinate where the doodad will be spawned
|
|
27
|
-
* @param z The z coordinate where the doodad will be spawned
|
|
27
|
+
* @param tile The tile where the doodad will be spawned
|
|
28
28
|
* @param options The doodad spawn options
|
|
29
29
|
* @returns False if the dooodad cannot spawn, or undefined to use the default logic
|
|
30
30
|
*/
|
|
31
|
-
canSpawn(type: DoodadType,
|
|
31
|
+
canSpawn(type: DoodadType, tile: Tile, options: IDoodadOptions): boolean | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Called when a doodad is created.
|
|
34
34
|
*/
|
|
@@ -39,27 +39,39 @@ export interface IDoodadManagerEvents {
|
|
|
39
39
|
remove(doodad: Doodad): any;
|
|
40
40
|
}
|
|
41
41
|
export default class DoodadManager extends ObjectManager<Doodad, IDoodadManagerEvents> {
|
|
42
|
-
|
|
43
|
-
private static
|
|
44
|
-
|
|
45
|
-
private static cachedDoodadSpawns;
|
|
42
|
+
private static readonly cachedBestDoodadForTier;
|
|
43
|
+
private static readonly cachedDoodadGroups;
|
|
44
|
+
static readonly cachedDoodadSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, Set<DoodadType>>>>;
|
|
46
45
|
private readonly scarecrows;
|
|
47
46
|
static getBestDoodadForTier(doodad: DoodadType | DoodadTypeGroup): DoodadType | undefined;
|
|
48
47
|
static generateLookups(): void;
|
|
49
48
|
static clearCaches(): void;
|
|
50
49
|
static isGroup(doodadType: DoodadType | DoodadTypeGroup): doodadType is DoodadTypeGroup;
|
|
51
50
|
static isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
|
|
52
|
-
static
|
|
53
|
-
|
|
51
|
+
static getGroups(doodadType: DoodadType): DoodadTypeGroup[];
|
|
52
|
+
/**
|
|
53
|
+
* Checks if a number is a DoodadType or DoodadTypeExtra.
|
|
54
|
+
* @param type a number (DoodadType/DoodadTypeExtra enum).
|
|
55
|
+
* @returns true or false depending on if the number is a DoodadType or DoodadTypeExtra.
|
|
56
|
+
*/
|
|
57
|
+
static isDoodadExtra(type: number): type is DoodadTypeExtra;
|
|
58
|
+
static getDoodadTypeGroupName(doodadType: DoodadType | DoodadTypeGroup, article?: Article, count?: number): Translation;
|
|
54
59
|
/**
|
|
55
60
|
* Note: This can be called multiple times in the same game depending on loading/unloading of islands
|
|
56
61
|
*/
|
|
57
62
|
load(): void;
|
|
58
63
|
isGroup(doodadType: DoodadType | DoodadTypeGroup): doodadType is DoodadTypeGroup;
|
|
59
64
|
isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
|
|
65
|
+
getGroups(doodad: DoodadType): DoodadTypeGroup[];
|
|
66
|
+
/**
|
|
67
|
+
* Checks if a number is a DoodadType or DoodadTypeExtra.
|
|
68
|
+
* @param type a number (DoodadType/DoodadTypeExtra enum).
|
|
69
|
+
* @returns true or false depending on if the number is a DoodadType or DoodadTypeExtra.
|
|
70
|
+
*/
|
|
71
|
+
isDoodadExtra(type: number): type is DoodadTypeExtra;
|
|
60
72
|
getBestDoodadForTier(doodad: DoodadType | DoodadTypeGroup): DoodadType | undefined;
|
|
61
|
-
createFake(type: DoodadType, options?: IDoodadOptions,
|
|
62
|
-
create(type: DoodadType,
|
|
73
|
+
createFake(type: DoodadType, options?: IDoodadOptions, tile?: Tile, id?: number): Doodad;
|
|
74
|
+
create(type: DoodadType, tile: Tile, options?: IDoodadOptions, creator?: Human): Doodad | undefined;
|
|
63
75
|
/**
|
|
64
76
|
* Removes a doodad from the world.
|
|
65
77
|
* @param doodad The doodad to remove
|
|
@@ -72,22 +84,22 @@ export default class DoodadManager extends ObjectManager<Doodad, IDoodadManagerE
|
|
|
72
84
|
/**
|
|
73
85
|
* Runs a full gamut of updates on doodads including decaying items inside containers, spreading/growing plants/mushrooms, water distillation/desenation and more.
|
|
74
86
|
*/
|
|
75
|
-
updateAll(ticks: number, playingHumans: Human[], updatesPerTick?: number): void;
|
|
87
|
+
updateAll(ticks: number, playingHumans: Human[], playerHumanTiles: Set<Tile>, updatesPerTick?: number): void;
|
|
76
88
|
/**
|
|
77
89
|
* Runs a full gamut of updates on doodads including decaying items inside containers, spreading/growing plants/mushrooms, water distillation/desenation and more.
|
|
78
90
|
*/
|
|
79
|
-
updateAllAsync(ticks: number, playingHumans: Human[], updatesPerTick: number | undefined, onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
80
|
-
verifyAndFixItemWeights(
|
|
81
|
-
|
|
82
|
-
* Used to spawn a random doodad on the current biome type and at a set location (and terrain type) based on spawnOnWorldGen properties in doodad descriptions.
|
|
83
|
-
* @param terrainType The terrain type to check.
|
|
84
|
-
* @param x The x coordinate to check.
|
|
85
|
-
* @param y The y coordinate to check.
|
|
86
|
-
* @param z The z coordinate to check.
|
|
87
|
-
*/
|
|
88
|
-
spawn(terrainType: TerrainType, x: number, y: number, z: number): void;
|
|
89
|
-
getScarecrowInRange(position: Vector3, range: number): Doodad | undefined;
|
|
91
|
+
updateAllAsync(ticks: number, playingHumans: Human[], playerHumanTiles: Set<Tile>, updatesPerTick: number | undefined, onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
92
|
+
verifyAndFixItemWeights(): void;
|
|
93
|
+
getScarecrowInRange(tile: Tile, range: number): Doodad | undefined;
|
|
90
94
|
getScarecrowInLineOfSight(creature: Creature, isClientside: boolean): Doodad | undefined;
|
|
91
95
|
private addScarecrow;
|
|
92
96
|
private removeScarecrow;
|
|
97
|
+
/**
|
|
98
|
+
* Handles doodad specific effects
|
|
99
|
+
*/
|
|
100
|
+
private onSpawnOrRestore;
|
|
101
|
+
/**
|
|
102
|
+
* Handles doodad specific effects
|
|
103
|
+
*/
|
|
104
|
+
private onRemove;
|
|
93
105
|
}
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
import type { IDoodadDescription, IDoodadGroupDescription } from "game/doodad/IDoodad";
|
|
12
12
|
import { DoodadType, DoodadTypeGroup } from "game/doodad/IDoodad";
|
|
13
13
|
export declare const doodadDescriptions: OptionalDescriptions<DoodadType, IDoodadDescription>;
|
|
14
|
-
export default doodadDescriptions;
|
|
15
14
|
export declare const doodadGroups: OptionalDescriptions<DoodadTypeGroup, IDoodadGroupDescription>;
|
|
@@ -18,13 +18,15 @@ import type { IDecayTemperatureRange } from "game/IGame";
|
|
|
18
18
|
import type { ILootItem } from "game/ILoot";
|
|
19
19
|
import type { IObjectDescription, IObjectOptions } from "game/IObject";
|
|
20
20
|
import type Island from "game/island/Island";
|
|
21
|
-
import type { IItemOld, ItemType } from "game/item/IItem";
|
|
21
|
+
import type { IContainer, IItemOld, ItemType, ItemTypeExtra, ItemTypeGroup } from "game/item/IItem";
|
|
22
22
|
import type Item from "game/item/Item";
|
|
23
23
|
import type { LootGroupType } from "game/item/LootGroups";
|
|
24
24
|
import type MagicalPropertyManager from "game/magic/MagicalPropertyManager";
|
|
25
25
|
import type { IInsulationDescription, ITemperatureDescription } from "game/temperature/ITemperature";
|
|
26
|
-
import type {
|
|
26
|
+
import type { TerrainType } from "game/tile/ITerrain";
|
|
27
27
|
import type { TileEventType } from "game/tile/ITileEvent";
|
|
28
|
+
import type Tile from "game/tile/Tile";
|
|
29
|
+
import type Translation from "language/Translation";
|
|
28
30
|
import type { IModdable } from "mod/ModRegistry";
|
|
29
31
|
import type { ISpriteAnimation } from "renderer/ISpriteInfo";
|
|
30
32
|
import type { TileLayerType } from "renderer/world/IWorldRenderer";
|
|
@@ -33,7 +35,7 @@ export interface IDoodadOptions extends IObjectOptions {
|
|
|
33
35
|
force?: boolean;
|
|
34
36
|
gatherReady?: number;
|
|
35
37
|
stillContainer?: Item;
|
|
36
|
-
|
|
38
|
+
growth?: GrowingStage;
|
|
37
39
|
spread?: number;
|
|
38
40
|
weight?: number;
|
|
39
41
|
disassembly?: Item[];
|
|
@@ -44,10 +46,12 @@ export interface IDoodadOptions extends IObjectOptions {
|
|
|
44
46
|
aberrant?: boolean;
|
|
45
47
|
meltDecay?: number;
|
|
46
48
|
inheritMagic?: MagicalPropertyManager;
|
|
49
|
+
bonusAttack?: number;
|
|
47
50
|
}
|
|
48
51
|
type MagicalPropertyOld = Exclude<IItemOld["magicalProperties"], undefined> extends Array<infer T> ? T : never;
|
|
49
52
|
export type IDoodadOld = Partial<Doodad> & {
|
|
50
53
|
growInto?: DoodadType;
|
|
54
|
+
gfx?: number;
|
|
51
55
|
legendary?: MagicalPropertyOld;
|
|
52
56
|
magicalProperties?: MagicalPropertyOld[];
|
|
53
57
|
ownerIdentifier?: string;
|
|
@@ -87,6 +91,7 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
|
|
|
87
91
|
isDoor?: boolean;
|
|
88
92
|
isFence?: boolean;
|
|
89
93
|
isFlammable?: boolean;
|
|
94
|
+
containedItemsContributeToCivilizationScore?: boolean;
|
|
90
95
|
usesSpores?: boolean;
|
|
91
96
|
isGate?: boolean;
|
|
92
97
|
adaptsToFence?: boolean;
|
|
@@ -97,6 +102,7 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
|
|
|
97
102
|
isWaterSource?: boolean;
|
|
98
103
|
isVehicle?: boolean;
|
|
99
104
|
attackable?: true;
|
|
105
|
+
subTypes?: DoodadTypeExtra[];
|
|
100
106
|
/**
|
|
101
107
|
* When gathered completely, convert to a new DoodadType
|
|
102
108
|
*/
|
|
@@ -128,6 +134,7 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
|
|
|
128
134
|
itemStackOffset?: number;
|
|
129
135
|
itemStackRegion?: IItemStackRegion | ((doodad: Doodad) => IItemStackRegion | undefined);
|
|
130
136
|
decayTemperatureRange?: IDecayTemperatureRange;
|
|
137
|
+
isIslandPort?: boolean;
|
|
131
138
|
/**
|
|
132
139
|
* Item that defines the decay amount when this doodad is melting.
|
|
133
140
|
*/
|
|
@@ -166,7 +173,28 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
|
|
|
166
173
|
*/
|
|
167
174
|
columns: number;
|
|
168
175
|
}>;
|
|
169
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Called when the doodad is built via templates
|
|
178
|
+
* @param doodad Doodad
|
|
179
|
+
* @returns Name to set the doodad to or undefined to not name it.
|
|
180
|
+
*/
|
|
181
|
+
getRandomNameOnTemplateSpawn?: (doodad: Doodad) => Translation | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* The doodad type to display instead of the describe doodad type.
|
|
184
|
+
*/
|
|
185
|
+
displayDoodad?: SupplierOr<DisplayableDoodadType | undefined, [Doodad]>;
|
|
186
|
+
/**
|
|
187
|
+
* Sets (and overwrites) the associated item that shows in the tooltip.
|
|
188
|
+
*/
|
|
189
|
+
getAssociatedItem?(doodad: Doodad): ItemType | ItemTypeExtra | undefined;
|
|
190
|
+
getVariation?(island: Island, tile: Tile, doodad: Doodad | undefined, existingVariationX: number, existingVariationY: number): [number, number] | undefined;
|
|
191
|
+
onContainerItemAdd?(container: Doodad & IContainer, items: Item[]): void;
|
|
192
|
+
onContainerItemRemove?(container: Doodad & IContainer, items: Item[]): void;
|
|
193
|
+
/**
|
|
194
|
+
* Item groups of this type in the container will provide skill bonuses to adjacent players.
|
|
195
|
+
*/
|
|
196
|
+
containedItemGroupProvidesSkill?: IProvidesSkill;
|
|
197
|
+
alwaysInspectable?: true;
|
|
170
198
|
}
|
|
171
199
|
export interface IItemStackRegion {
|
|
172
200
|
xMin?: number;
|
|
@@ -196,6 +224,20 @@ export interface ILockedChest {
|
|
|
196
224
|
*/
|
|
197
225
|
guardiansSpawned?: number;
|
|
198
226
|
}
|
|
227
|
+
export interface IProvidesSkill {
|
|
228
|
+
/**
|
|
229
|
+
* Skill type that is provided to the player.
|
|
230
|
+
*/
|
|
231
|
+
skillType: SkillType;
|
|
232
|
+
/**
|
|
233
|
+
* Item group that triggers the skill bonus.
|
|
234
|
+
*/
|
|
235
|
+
itemGroup: ItemTypeGroup;
|
|
236
|
+
/**
|
|
237
|
+
* How much each of that item provides.
|
|
238
|
+
*/
|
|
239
|
+
skillValue: number;
|
|
240
|
+
}
|
|
199
241
|
export type IDoodadParticles = Record<number, IRGB>;
|
|
200
242
|
export type IDoodadLoot = Record<number, ILootItem[] | undefined>;
|
|
201
243
|
export declare enum DoodadType {
|
|
@@ -351,8 +393,25 @@ export declare enum DoodadType {
|
|
|
351
393
|
WoodenTrackGateOpen = 149,
|
|
352
394
|
Cattails = 150,
|
|
353
395
|
WaterLilies = 151,
|
|
354
|
-
Spikerush = 152
|
|
396
|
+
Spikerush = 152,
|
|
397
|
+
WoodenBookcase = 153,
|
|
398
|
+
GraniteLighthouse = 154,
|
|
399
|
+
LitGraniteLighthouse = 155,
|
|
400
|
+
SandstoneLighthouse = 156,
|
|
401
|
+
LitSandstoneLighthouse = 157,
|
|
402
|
+
ClayLighthouse = 158,
|
|
403
|
+
LitClayLighthouse = 159,
|
|
404
|
+
BasaltLighthouse = 160,
|
|
405
|
+
LitBasaltLighthouse = 161
|
|
406
|
+
}
|
|
407
|
+
export declare enum DoodadTypeExtra {
|
|
408
|
+
None = 999,
|
|
409
|
+
WoodenBookcase_25 = 1000,
|
|
410
|
+
WoodenBookcase_50 = 1001,
|
|
411
|
+
WoodenBookcase_75 = 1002,
|
|
412
|
+
WoodenBookcase_100 = 1003
|
|
355
413
|
}
|
|
414
|
+
export type DisplayableDoodadType = DoodadType | DoodadTypeExtra;
|
|
356
415
|
export declare enum DoodadTag {
|
|
357
416
|
None = 0,
|
|
358
417
|
ProppedOpen = 1
|
|
@@ -379,7 +438,9 @@ export declare enum DoodadTypeGroup {
|
|
|
379
438
|
LitStructure = 413,
|
|
380
439
|
LockedChest = 414,
|
|
381
440
|
Scarecrow = 415,
|
|
382
|
-
|
|
441
|
+
Lighthouse = 416,
|
|
442
|
+
LitLighthouse = 417,
|
|
443
|
+
Last = 418
|
|
383
444
|
}
|
|
384
445
|
export declare enum DoorOrientation {
|
|
385
446
|
Default = 0,
|
|
@@ -0,0 +1,68 @@
|
|
|
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 Human from "game/entity/Human";
|
|
12
|
+
import type Creature from "game/entity/creature/Creature";
|
|
13
|
+
import { CreatureType } from "game/entity/creature/ICreature";
|
|
14
|
+
export declare enum CombatStrength {
|
|
15
|
+
Tier0 = 0,
|
|
16
|
+
Tier1 = 1,
|
|
17
|
+
Tier2 = 2,
|
|
18
|
+
Tier3 = 3,
|
|
19
|
+
Tier4 = 4,
|
|
20
|
+
Tier5 = 5,
|
|
21
|
+
Tier6 = 6,
|
|
22
|
+
Tier7 = 7,
|
|
23
|
+
Tier8 = 8,
|
|
24
|
+
Tier9 = 9
|
|
25
|
+
}
|
|
26
|
+
export declare enum CombatDangerLevel {
|
|
27
|
+
Low = 0,
|
|
28
|
+
Medium = 1,
|
|
29
|
+
High = 2,
|
|
30
|
+
VeryHigh = 3,
|
|
31
|
+
Extreme = 4
|
|
32
|
+
}
|
|
33
|
+
export default class CombatStrengthManager {
|
|
34
|
+
readonly minimumCreatureValue: number;
|
|
35
|
+
readonly maximumCreatureValue: number;
|
|
36
|
+
constructor();
|
|
37
|
+
/**
|
|
38
|
+
* Given a combat strength decimal, from 0 to 1, returns a CombatStrength tier
|
|
39
|
+
*/
|
|
40
|
+
getTier(strength: number): CombatStrength;
|
|
41
|
+
/**
|
|
42
|
+
* Given a combat strength decimal, from 0 to 1, returns a CombatDangerLevel
|
|
43
|
+
*/
|
|
44
|
+
getDangerLevel(difficulty: number): CombatDangerLevel;
|
|
45
|
+
/**
|
|
46
|
+
* Calculates a float value between 0 and 1 representing a creature's difficulty.
|
|
47
|
+
*/
|
|
48
|
+
getCreature(creature: Creature | CreatureType, aberrant?: boolean): number;
|
|
49
|
+
getCreatureDifficultyAgainstHuman(creature: Creature, human: Human): number;
|
|
50
|
+
private getEstimatedTurnsToKillHuman;
|
|
51
|
+
private getEstimatedTurnsToKillCreature;
|
|
52
|
+
/**
|
|
53
|
+
* Calculates a value representing a creature's combat strength.
|
|
54
|
+
*
|
|
55
|
+
* The following factors are included in the current calculation at time of writing:
|
|
56
|
+
* `+` The average of the current and maximum health of the creature.
|
|
57
|
+
* `+` The average attack value of the creature multiplied by 20.
|
|
58
|
+
* `+` The defense of the creature multiplied by 5.
|
|
59
|
+
* `+` The current health bonus from any taming or MP bonuses.
|
|
60
|
+
* `+` Any resist values multiplied by 5.
|
|
61
|
+
* `-` Any vulnerability values multiplied by 5.
|
|
62
|
+
* `*` A multiplier based on the status effects the creature can apply. Poison is the highest multiplier, then bleed, then burn.
|
|
63
|
+
* `*` The value is doubled if the creature is hostile.
|
|
64
|
+
* `/` The value is halved if the creature is scared.
|
|
65
|
+
* `*` The value is doubled if the creature is aberrant.
|
|
66
|
+
*/
|
|
67
|
+
private calculateCreatureValue;
|
|
68
|
+
}
|