@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
|
@@ -67,6 +67,7 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
|
|
|
67
67
|
private translator?;
|
|
68
68
|
getTranslation(using?: IUsableActionPossibleUsing, which?: ActionWhichTranslation, context?: UsableActionDisplayContext): Translation | undefined;
|
|
69
69
|
getOrder(using?: IUsableActionPossibleUsing): number;
|
|
70
|
+
getContextualLevel(using?: IUsableActionPossibleUsing): number;
|
|
70
71
|
canUseOnMoveWhenDiscovered(): boolean;
|
|
71
72
|
canUseOnMove(): boolean;
|
|
72
73
|
}
|
|
@@ -68,13 +68,20 @@ export declare enum UsableActionType {
|
|
|
68
68
|
EquipMainHand = 100046,
|
|
69
69
|
EquipOffHand = 100047,
|
|
70
70
|
RestOnGround = 100048,
|
|
71
|
-
SleepOnGround = 100049
|
|
71
|
+
SleepOnGround = 100049,
|
|
72
|
+
CommandMenu = 100050,
|
|
73
|
+
CommandFollowClose = 100051,
|
|
74
|
+
CommandFollowFar = 100052,
|
|
75
|
+
CommandStay = 100053,
|
|
76
|
+
CommandDefend = 100054,
|
|
77
|
+
CommandAttack = 100055
|
|
72
78
|
}
|
|
73
79
|
export declare enum UsableActionTypePlaceholder {
|
|
74
80
|
TradeItem = 200000,
|
|
75
81
|
MoveAllToInventory = 200001,
|
|
76
82
|
MoveAllOfSameQualityToInventory = 200002,
|
|
77
83
|
Paddle = 200003,
|
|
78
|
-
Operate = 200004
|
|
84
|
+
Operate = 200004,
|
|
85
|
+
SwimToIsland = 200005
|
|
79
86
|
}
|
|
80
87
|
export declare const usableActionDescriptions: PartialRecord<UsableActionType | UsableActionTypePlaceholder, IModdable>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { UsableActionGenerator } from "game/entity/action/usable/UsableActionRegistrar";
|
|
12
|
+
declare const _default: UsableActionGenerator<[]>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { UsableActionGenerator } from "game/entity/action/usable/UsableActionRegistrar";
|
|
12
|
+
declare const UsableActionsCommands: UsableActionGenerator<[isCommandMenu?: true | undefined]>;
|
|
13
|
+
export default UsableActionsCommands;
|
|
14
|
+
export declare const UsableActionsCommandsMenu: UsableActionGenerator<[]>;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { UsableActionGenerator } from "game/entity/action/usable/UsableActionRegistrar";
|
|
12
|
-
declare const
|
|
13
|
-
export
|
|
12
|
+
export declare const UsableActionsCreatures: UsableActionGenerator<[]>;
|
|
13
|
+
export declare const UsableActionsTamedCreatures: UsableActionGenerator<[]>;
|
|
@@ -12,14 +12,16 @@ import type { ActionDisplayLevel } from "game/entity/action/IAction";
|
|
|
12
12
|
import { ActionType } from "game/entity/action/IAction";
|
|
13
13
|
import type { IUsableActionPossibleUsing, IUsableActionRequirements, IUsableActionUsing, ReturnableUsableActionUsability, UsableActionIconReference } from "game/entity/action/usable/IUsableAction";
|
|
14
14
|
import { UsableActionGenerator } from "game/entity/action/usable/UsableActionRegistrar";
|
|
15
|
+
import type { UsableActionTranslator } from "game/entity/action/usable/UsableActionTranslator";
|
|
15
16
|
import type Player from "game/entity/player/Player";
|
|
16
17
|
import type Bindable from "ui/input/Bindable";
|
|
17
18
|
export interface IUsableActionDynamicDefinition {
|
|
18
|
-
icon?: UsableActionIconReference
|
|
19
|
+
icon?: SupplierOr<UsableActionIconReference>;
|
|
19
20
|
bindable: Bindable;
|
|
20
21
|
displayLevel?: ActionDisplayLevel;
|
|
21
22
|
priority?: number;
|
|
22
23
|
discoveredByDefault?: true;
|
|
24
|
+
translate?: (translator: UsableActionTranslator) => UsableActionTranslator;
|
|
23
25
|
}
|
|
24
26
|
export interface IUsableActionsDynamicConfig<DEFINITION extends IUsableActionDynamicDefinition, REQUIREMENTS extends IUsableActionRequirements> {
|
|
25
27
|
id: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { UsableActionGenerator } from "game/entity/action/usable/UsableActionRegistrar";
|
|
12
|
+
declare const _default: UsableActionGenerator<[]>;
|
|
13
|
+
export default _default;
|
|
@@ -17,27 +17,29 @@ export declare enum UsableActionSet {
|
|
|
17
17
|
* Note that `priority` is used to sort "use item/doodad/npc" actions to the top — the actions that appear in {@link IItemDescription.use}.
|
|
18
18
|
*/
|
|
19
19
|
First = 0,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
TamedCreatures = 1,
|
|
21
|
+
Vehicle = 2,
|
|
22
|
+
Drink = 3,
|
|
23
|
+
Doodads = 4,
|
|
24
24
|
Extinguish = 5,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
25
|
+
UseItem = 6,
|
|
26
|
+
PickUp = 7,
|
|
27
|
+
Containers = 8,
|
|
28
|
+
Creatures = 9,
|
|
29
|
+
UseNPC = 10,
|
|
30
|
+
Rest = 11,
|
|
31
|
+
WithHands = 12,
|
|
32
|
+
Till = 13,
|
|
33
|
+
Misc = 14,
|
|
34
|
+
Equip = 15,
|
|
35
|
+
Craft = 16,
|
|
36
|
+
XWithY = 17,
|
|
37
|
+
ItemMisc = 18,
|
|
38
|
+
ItemMoveMenus = 19,
|
|
39
|
+
ItemDrop = 20,
|
|
40
|
+
Rename = 21,
|
|
41
|
+
Protect = 22,
|
|
42
|
+
Main = 23
|
|
41
43
|
}
|
|
42
44
|
export declare const usableActionSets: {
|
|
43
45
|
0: UsableActionGenerator<[]>;
|
|
@@ -46,20 +48,22 @@ export declare const usableActionSets: {
|
|
|
46
48
|
3: UsableActionGenerator<[]>;
|
|
47
49
|
4: UsableActionGenerator<[]>;
|
|
48
50
|
5: UsableActionGenerator<[]>;
|
|
49
|
-
6:
|
|
51
|
+
6: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/item/UsableActionsUseItem").IUseItemAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
|
|
50
52
|
7: UsableActionGenerator<[]>;
|
|
51
|
-
8:
|
|
53
|
+
8: UsableActionGenerator<[]>;
|
|
52
54
|
9: UsableActionGenerator<[]>;
|
|
53
|
-
10:
|
|
55
|
+
10: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/UsableActionsUseNPC").IUseNPCAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
|
|
54
56
|
11: UsableActionGenerator<[]>;
|
|
55
57
|
12: UsableActionGenerator<[]>;
|
|
56
58
|
13: UsableActionGenerator<[]>;
|
|
57
|
-
14: UsableActionGenerator<[
|
|
59
|
+
14: UsableActionGenerator<[]>;
|
|
58
60
|
15: UsableActionGenerator<[]>;
|
|
59
61
|
16: UsableActionGenerator<[]>;
|
|
60
62
|
17: UsableActionGenerator<[]>;
|
|
61
|
-
18:
|
|
63
|
+
18: UsableActionGenerator<[]>;
|
|
62
64
|
19: UsableActionGenerator<[]>;
|
|
63
|
-
20: UsableActionGenerator<[]>;
|
|
65
|
+
20: UsableActionGenerator<[isDropMenu?: true | undefined]>;
|
|
64
66
|
21: UsableActionGenerator<[]>;
|
|
67
|
+
22: UsableActionGenerator<[]>;
|
|
68
|
+
23: UsableActionGenerator<[]>;
|
|
65
69
|
};
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IUsableActionDynamicDefinition } from "game/entity/action/usable/actions/UsableActionsDynamic";
|
|
12
12
|
import UsableActionsDynamic from "game/entity/action/usable/actions/UsableActionsDynamic";
|
|
13
|
-
import type { IUsableActionRequirements } from "game/entity/action/usable/IUsableAction";
|
|
13
|
+
import type { IUsableActionRequirements, IUsableActionUsing, ReturnableUsableActionUsability } from "game/entity/action/usable/IUsableAction";
|
|
14
|
+
import type Player from "game/entity/player/Player";
|
|
14
15
|
export interface IUseNPCAction extends IUsableActionDynamicDefinition {
|
|
15
16
|
allowNoNPC?: true;
|
|
17
|
+
isUsable?(player: Player, using: IUsableActionUsing<IUsableActionRequirements>): ReturnableUsableActionUsability;
|
|
16
18
|
}
|
|
17
19
|
declare const _default: UsableActionsDynamic<IUseNPCAction, IUsableActionRequirements>;
|
|
18
20
|
export default _default;
|
|
@@ -17,7 +17,7 @@ export declare enum WorldContextMenuClasses {
|
|
|
17
17
|
OptionText = "world-context-menu-option-text"
|
|
18
18
|
}
|
|
19
19
|
export declare namespace WorldContextMenuClasses {
|
|
20
|
-
const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-
|
|
20
|
+
const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-use" | "world-context-menu-option-none" | "world-context-menu-option-move" | "world-context-menu-option-actions" | "world-context-menu-option-quickslotremove" | "world-context-menu-option-quickslotadd" | "world-context-menu-option-quickslotaddtofree" | "world-context-menu-option-quickslotaddtoslot" | "world-context-menu-option-movetoinventory" | "world-context-menu-option-dropmenu" | "world-context-menu-option-dropall" | "world-context-menu-option-dropallofsamequality" | "world-context-menu-option-repairwithitem" | "world-context-menu-option-reinforcewithitem" | "world-context-menu-option-enhancewithitem" | "world-context-menu-option-enchantwithitem" | "world-context-menu-option-transmogrifywithitem" | "world-context-menu-option-upgradewithitem" | "world-context-menu-option-alterwithitem" | "world-context-menu-option-refinewithitem" | "world-context-menu-option-preservewithitem" | "world-context-menu-option-addfuelwithitem" | "world-context-menu-option-ignitewithitem" | "world-context-menu-option-absorbwithitem" | "world-context-menu-option-exudewithitem" | "world-context-menu-option-movetoinventorymenu" | "world-context-menu-option-movetoactivecontainermenu" | "world-context-menu-option-movetofacingcontainermenu" | "world-context-menu-option-moveall" | "world-context-menu-option-moveallofsamequality" | "world-context-menu-option-tradetradersell" | "world-context-menu-option-tradetraderbuy" | "world-context-menu-option-itemactions" | "world-context-menu-option-gatherwithhands" | "world-context-menu-option-harvestwithhands" | "world-context-menu-option-digwithhands" | "world-context-menu-option-tillwithhands" | "world-context-menu-option-pickupexcrementwithhands" | "world-context-menu-option-equipheld" | "world-context-menu-option-equiplegs" | "world-context-menu-option-equipchest" | "world-context-menu-option-equiphead" | "world-context-menu-option-equipwaist" | "world-context-menu-option-equipfeet" | "world-context-menu-option-equipneck" | "world-context-menu-option-equiphands" | "world-context-menu-option-equipback" | "world-context-menu-option-equipmainhand" | "world-context-menu-option-equipoffhand" | "world-context-menu-option-restonground" | "world-context-menu-option-sleeponground" | "world-context-menu-option-commandmenu" | "world-context-menu-option-commandfollowclose" | "world-context-menu-option-commandfollowfar" | "world-context-menu-option-commandstay" | "world-context-menu-option-commanddefend" | "world-context-menu-option-commandattack";
|
|
21
21
|
}
|
|
22
22
|
export declare const UsableActionsWorldActions: UsableActionGenerator<[]>;
|
|
23
23
|
export declare const UsableActionsWorldItemActions: UsableActionGenerator<[]>;
|
|
@@ -15,10 +15,10 @@ declare namespace IUsableActionsDoodad {
|
|
|
15
15
|
function getUnder(player: Player, filter?: (doodad: Doodad) => any): Doodad | undefined;
|
|
16
16
|
function getUnderOrFacing(player: Player, filter?: (doodad: Doodad) => any): Doodad | undefined;
|
|
17
17
|
function validate(player: Player, doodad: Doodad | undefined): doodad is Doodad;
|
|
18
|
-
const requireFacing: (filter?: ((doodad: Doodad) => any) | undefined) => {
|
|
18
|
+
const requireFacing: (filter?: ((doodad: Doodad, player: Player) => any) | undefined) => {
|
|
19
19
|
find: (player: Player) => Doodad | undefined;
|
|
20
20
|
};
|
|
21
|
-
const requireUnderOrFacing: (filter?: ((doodad: Doodad) => any) | undefined) => {
|
|
21
|
+
const requireUnderOrFacing: (filter?: ((doodad: Doodad, player: Player) => any) | undefined) => {
|
|
22
22
|
find: (player: Player) => Doodad | undefined;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
@@ -10,42 +10,55 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { SfxType } from "audio/IAudio";
|
|
12
12
|
import type { IEventEmitter } from "event/EventEmitter";
|
|
13
|
-
import type { ICreatureDescription, ICreatureEvents, IDamageInfo, IHitch } from "game/entity/creature/ICreature";
|
|
14
|
-
import
|
|
15
|
-
import Entity from "game/entity/Entity";
|
|
13
|
+
import type { CreatureAttackOutcome, CreatureType, ICreatureAttackOutcomeAttack, ICreatureCheckMoveOptions, ICreatureDescription, ICreatureEvents, IDamageInfo, IHitch } from "game/entity/creature/ICreature";
|
|
14
|
+
import EntityWithStats from "game/entity/EntityWithStats";
|
|
16
15
|
import type Human from "game/entity/Human";
|
|
17
|
-
import type { IStatChangeInfo } from "game/entity/IEntity";
|
|
18
|
-
import { AiType, EntityType, MoveType
|
|
16
|
+
import type { IEntityConstructorOptions, IStatChangeInfo } from "game/entity/IEntity";
|
|
17
|
+
import { AiType, Defense, EntityType, MoveType } from "game/entity/IEntity";
|
|
19
18
|
import type { IStat } from "game/entity/IStats";
|
|
20
|
-
import {
|
|
19
|
+
import type { IMovementTime } from "game/IGame";
|
|
20
|
+
import { TileUpdateType } from "game/IGame";
|
|
21
21
|
import type { IObject } from "game/IObject";
|
|
22
|
-
import type Island from "game/island/Island";
|
|
23
22
|
import type Item from "game/item/Item";
|
|
24
|
-
import type
|
|
25
|
-
import Translation from "language/Translation";
|
|
23
|
+
import type Tile from "game/tile/Tile";
|
|
24
|
+
import Translation, { Article } from "language/Translation";
|
|
26
25
|
import type { IUnserializedCallback } from "save/serializer/ISerializer";
|
|
27
|
-
import
|
|
28
|
-
|
|
26
|
+
import { Direction } from "utilities/math/Direction";
|
|
27
|
+
import type { IVector3 } from "utilities/math/IVector";
|
|
28
|
+
import Vector2 from "utilities/math/Vector2";
|
|
29
|
+
export default class Creature extends EntityWithStats<ICreatureDescription, CreatureType> implements IUnserializedCallback, IObject<CreatureType> {
|
|
29
30
|
static is(value: any): value is Creature;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
readonly
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
get entityType(): EntityType.Creature;
|
|
32
|
+
get tileUpdateType(): TileUpdateType;
|
|
33
|
+
readonly event: IEventEmitter<this, ICreatureEvents>;
|
|
34
|
+
anim: number;
|
|
35
|
+
direction: Vector2;
|
|
36
|
+
facingDirection: Direction.Cardinal;
|
|
37
|
+
fromX: number;
|
|
38
|
+
fromY: number;
|
|
35
39
|
ai: AiType;
|
|
40
|
+
aberrant?: true;
|
|
36
41
|
enemy?: {
|
|
37
|
-
id: number;
|
|
38
42
|
type: EntityType;
|
|
43
|
+
id: number;
|
|
39
44
|
attacks: number;
|
|
40
45
|
attempts: number;
|
|
46
|
+
breakAway?: boolean;
|
|
41
47
|
};
|
|
42
|
-
respawned?: number;
|
|
43
|
-
shouldSkipNextUpdate: boolean;
|
|
44
|
-
type: CreatureType;
|
|
45
|
-
originalMoveType: MoveType | undefined;
|
|
46
48
|
hitchedTo?: number;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
originalMoveType?: MoveType;
|
|
50
|
+
owner?: {
|
|
51
|
+
type: EntityType.Player;
|
|
52
|
+
identifier: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: EntityType.NPC;
|
|
55
|
+
id: number;
|
|
56
|
+
};
|
|
57
|
+
respawned?: number;
|
|
58
|
+
shouldSkipNextUpdate?: true;
|
|
59
|
+
tameTime?: number;
|
|
60
|
+
spawnAnimationTime: IMovementTime | undefined;
|
|
61
|
+
constructor(entityOptions?: IEntityConstructorOptions<CreatureType>, aberrant?: boolean);
|
|
49
62
|
/**
|
|
50
63
|
* Initializes the creature's stats. Used in the constructor & save conversion.
|
|
51
64
|
*/
|
|
@@ -59,33 +72,49 @@ export default class Creature extends Entity implements IUnserializedCallback, I
|
|
|
59
72
|
* - `creature.getName(false)` // "acid spitter demon"
|
|
60
73
|
* - `creature.getName(undefined, 3)` // "acid spitter demons"
|
|
61
74
|
*/
|
|
62
|
-
getName(article?:
|
|
63
|
-
|
|
75
|
+
getName(article?: Article, count?: number): Translation;
|
|
76
|
+
protected getDescription(): ICreatureDescription | undefined;
|
|
64
77
|
hasAi(aiType: AiType): boolean;
|
|
65
78
|
isHidden(): boolean;
|
|
66
|
-
|
|
79
|
+
isRetaliator(): boolean;
|
|
67
80
|
isTamed(): boolean;
|
|
68
81
|
isValid(): boolean;
|
|
69
|
-
|
|
82
|
+
getCommandedAiType(): AiType | undefined;
|
|
83
|
+
getDefense(human?: Human): Defense;
|
|
84
|
+
/**
|
|
85
|
+
* Check is a creature is allowed to attack the target (rules of engagement)
|
|
86
|
+
* @param target Target thing to attack
|
|
87
|
+
* @returns True if it can attack them
|
|
88
|
+
*/
|
|
89
|
+
canTarget(target: Human | Creature | undefined): boolean;
|
|
90
|
+
moveToIsland(targetTile: Tile, owner: Human): void;
|
|
91
|
+
restore(targetTile: Tile, preventRendering?: boolean): void;
|
|
92
|
+
skipNextUpdate(): void;
|
|
93
|
+
overrideNextMovement(tile: Tile): void;
|
|
70
94
|
preventNextMovement(): void;
|
|
71
95
|
checkForBurn(moveType?: MoveType): boolean;
|
|
96
|
+
private setOwner;
|
|
72
97
|
tame(human: Human, bonus?: number): boolean;
|
|
73
98
|
increaseTamedCount(): void;
|
|
74
|
-
release(): boolean;
|
|
75
|
-
private addTamed;
|
|
76
|
-
private removeTamed;
|
|
99
|
+
release(remainTamed?: boolean): boolean;
|
|
77
100
|
unhitch(): void;
|
|
101
|
+
animateSpawn(): void;
|
|
102
|
+
/**
|
|
103
|
+
* Gets the enemy the creature marked
|
|
104
|
+
* @returns Enemy
|
|
105
|
+
*/
|
|
78
106
|
getEnemy(): Human | Creature | undefined;
|
|
79
107
|
setEnemy(enemy: Human | Creature | undefined): void;
|
|
80
|
-
|
|
108
|
+
private incrementEnemyAttempts;
|
|
81
109
|
getMoveType(): MoveType;
|
|
82
110
|
queueSoundEffect(type: SfxType, delay?: number, speed?: number): void;
|
|
83
111
|
update(playingHumans: Human[]): boolean;
|
|
112
|
+
private determineEnemy;
|
|
84
113
|
/**
|
|
85
114
|
* Checks under the creature for getting burned, setting off traps, eating items off the ground, and more
|
|
86
115
|
* @returns Returns whether the creature can keep moving (in the case of creatures with >= 2 speed)
|
|
87
116
|
*/
|
|
88
|
-
checkUnder(x?: number, y?: number): boolean;
|
|
117
|
+
checkUnder(x?: number, y?: number, skipParticles?: boolean): boolean;
|
|
89
118
|
/**
|
|
90
119
|
* Check if this creature can swap with the player in the event that the player is moving into them
|
|
91
120
|
* @param human Human object
|
|
@@ -103,14 +132,15 @@ export default class Creature extends Entity implements IUnserializedCallback, I
|
|
|
103
132
|
* Updates the DoodadOverHidden tile flag if the creature is large.
|
|
104
133
|
* Large creatures should render over the doodad over layer, which means we should hide the doodad over layer for doodads on the creatures tile.
|
|
105
134
|
*/
|
|
106
|
-
updateDoodadOverHiddenState(
|
|
107
|
-
|
|
135
|
+
updateDoodadOverHiddenState(tile: Tile, shouldBeHidden: boolean): void;
|
|
136
|
+
getAttackOutcome(enemy: Human | Creature | undefined, force: true, humans?: Human[], description?: ICreatureDescription, moveType?: MoveType): ICreatureAttackOutcomeAttack;
|
|
137
|
+
getAttackOutcome(enemy: Human | Creature | undefined, force?: boolean, humans?: Human[], description?: ICreatureDescription, moveType?: MoveType): CreatureAttackOutcome;
|
|
138
|
+
processAttack(description: ICreatureDescription, humans: Human[], moveType: MoveType | undefined, enemyIn: Human | Creature | undefined): boolean;
|
|
108
139
|
getProducedTemperature(): number | undefined;
|
|
109
|
-
protected getApplicableStatusEffects(): Set<StatusType>;
|
|
110
140
|
protected updateDoodadOverHiddenStateForCurrentTile(hidden?: boolean): void;
|
|
111
|
-
protected
|
|
141
|
+
protected updateTile(fromTile: Tile, toTile: Tile): boolean;
|
|
112
142
|
protected onStatChange(stat: IStat, oldValue: number, info: IStatChangeInfo): void;
|
|
113
|
-
findPath(target:
|
|
143
|
+
findPath(target: Tile, moveType: MoveType, maxNodesChecked?: number, ignoreHuman?: Human): Tile[] | undefined;
|
|
114
144
|
getHitchingPostsAround(): IHitch;
|
|
115
145
|
/**
|
|
116
146
|
* Check creature move with a multiplayer sync check
|
|
@@ -125,7 +155,12 @@ export default class Creature extends Entity implements IUnserializedCallback, I
|
|
|
125
155
|
* @param willMove Set to true if the object is about to move to this tile. This method will confirm if theres an existing npc/creature there and return false if so
|
|
126
156
|
* @returns 0 if the creature can move, otherwise an error code
|
|
127
157
|
*/
|
|
128
|
-
checkCreatureMove(isClientside: boolean,
|
|
158
|
+
checkCreatureMove(isClientside: boolean, tile: Tile, moveType: MoveType, willMove: boolean, options?: Partial<ICreatureCheckMoveOptions>): number;
|
|
159
|
+
/**
|
|
160
|
+
* Returns the times a creature has been tamed.
|
|
161
|
+
* @returns number if the creature has been tamed and undefined if it has never been tamed.
|
|
162
|
+
*/
|
|
163
|
+
timesTamed(): number | undefined;
|
|
129
164
|
private findHumansWithinRadius;
|
|
130
165
|
private shouldSpecialAttack;
|
|
131
166
|
private specialAttack;
|
|
@@ -136,10 +171,22 @@ export default class Creature extends Entity implements IUnserializedCallback, I
|
|
|
136
171
|
* @param moveType The move type of the creature attempting to break the doodad
|
|
137
172
|
*/
|
|
138
173
|
private breakDoodad;
|
|
174
|
+
/**
|
|
175
|
+
* Some (untamed) creatures can break items on the ground as they move into them.
|
|
176
|
+
* @param tile The tile to check for items to damage.
|
|
177
|
+
* @param moveType The move type of the creature attempting to break items.
|
|
178
|
+
*/
|
|
179
|
+
private breakItems;
|
|
139
180
|
private processAiChanges;
|
|
181
|
+
get asCorpse(): undefined;
|
|
140
182
|
get asCreature(): Creature;
|
|
183
|
+
get asDoodad(): undefined;
|
|
141
184
|
get asHuman(): undefined;
|
|
185
|
+
get asLocalPlayer(): undefined;
|
|
142
186
|
get asNPC(): undefined;
|
|
143
187
|
get asPlayer(): undefined;
|
|
144
|
-
get
|
|
188
|
+
get asTileEvent(): undefined;
|
|
189
|
+
get asItem(): undefined;
|
|
190
|
+
get point(): IVector3;
|
|
191
|
+
get tile(): Tile;
|
|
145
192
|
}
|
|
@@ -9,56 +9,55 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { Events, IEventEmitter } from "event/EventEmitter";
|
|
12
|
+
import CombatStrengthManager from "game/entity/CombatStrengthManager";
|
|
12
13
|
import Creature from "game/entity/creature/Creature";
|
|
14
|
+
import type { ICreatureCheckMoveOptions } from "game/entity/creature/ICreature";
|
|
13
15
|
import { CreatureType, SpawnGroup, TileGroup } from "game/entity/creature/ICreature";
|
|
14
16
|
import EntityManager from "game/entity/EntityManager";
|
|
15
17
|
import type Human from "game/entity/Human";
|
|
16
18
|
import { MoveType } from "game/entity/IEntity";
|
|
17
|
-
import
|
|
18
|
-
import type {
|
|
19
|
-
import
|
|
19
|
+
import Tile from "game/tile/Tile";
|
|
20
|
+
import type { Article } from "language/Translation";
|
|
21
|
+
import type { IVector3 } from "utilities/math/IVector";
|
|
20
22
|
export interface ICreatureManagerEvents extends Events<EntityManager<Creature>> {
|
|
21
23
|
/**
|
|
22
24
|
* Called when a creature is about to be spawned
|
|
23
25
|
* @param type The type of creature
|
|
24
|
-
* @param
|
|
25
|
-
* @param y The y coordinate where the creature will be spawned
|
|
26
|
-
* @param z The z coordinate where the creature will be spawned
|
|
26
|
+
* @param tile The tile where the creature will be spawned
|
|
27
27
|
* @param aberrant True if the creature is an aberrant
|
|
28
28
|
* @returns False if the creature cannot spawn, or undefined to use the default logic
|
|
29
29
|
*/
|
|
30
|
-
canSpawn(type: CreatureType,
|
|
30
|
+
canSpawn(type: CreatureType, tile: Tile, aberrant: boolean): boolean | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Called when a creature is spawned from a creature group
|
|
33
33
|
* @param creatureGroup The creature group
|
|
34
34
|
* @param creaturePool The pool of creatures that can be spawned
|
|
35
|
-
* @param
|
|
36
|
-
* @param y The y position to spawn the creature
|
|
37
|
-
* @param z The z position to spawn the creature
|
|
35
|
+
* @param tile The tile where the creature will be spawned
|
|
38
36
|
* @returns False to cancel spawning the creature or undefined to use the default logic
|
|
39
37
|
*/
|
|
40
|
-
shouldSpawnCreatureFromGroup(creatureGroup: SpawnGroup, creaturePool: CreatureType[],
|
|
38
|
+
shouldSpawnCreatureFromGroup(creatureGroup: SpawnGroup, creaturePool: CreatureType[], tile: Tile): boolean | undefined;
|
|
41
39
|
}
|
|
42
40
|
export default class CreatureManager extends EntityManager<Creature> {
|
|
43
|
-
protected readonly creationId: CreationId;
|
|
44
41
|
readonly event: IEventEmitter<this, ICreatureManagerEvents>;
|
|
42
|
+
static combatStrength: CombatStrengthManager;
|
|
43
|
+
get combatStrength(): CombatStrengthManager;
|
|
44
|
+
static generateLookups(): void;
|
|
45
45
|
load(): void;
|
|
46
|
-
static getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?:
|
|
47
|
-
getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?:
|
|
46
|
+
static getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?: Article): import("../../../language/impl/TranslationImpl").default;
|
|
47
|
+
getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?: Article): import("../../../language/impl/TranslationImpl").default;
|
|
48
48
|
getHappinessLevel(human: Human, creature: Creature, bonus?: number): number;
|
|
49
49
|
/**
|
|
50
50
|
* Spawns a creature.
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @param y The tile Y position
|
|
54
|
-
* @param z The tile Z position
|
|
51
|
+
* @param type The type of creature to spawn.
|
|
52
|
+
* @param tile The tile
|
|
55
53
|
* @param bypass Whether to bypass checks for whether the creature can spawn there naturally. Defaults to false, if the creature can't spawn naturally, it won't.
|
|
56
54
|
* @param forceAberrant If provided, forces the spawned creature's aberrant state to be the passed boolean. True = aberrant, false = not aberrant. If not provided, the aberrant state is decided based on chance.
|
|
57
55
|
* @param spawnTiles If set, this will overwrite the creature's description for which tiles it can spawn on
|
|
58
56
|
* @param bypassCreatureLimit If set, the creature limit will be ignored and spawn the creature over the set limit
|
|
59
57
|
*/
|
|
60
|
-
spawn(
|
|
61
|
-
spawnFromGroup(creatureGroup: SpawnGroup,
|
|
58
|
+
spawn(type: CreatureType, tile: Tile, bypass?: boolean, forceAberrant?: boolean, spawnTiles?: TileGroup, bypassCreatureLimit?: boolean): Creature | undefined;
|
|
59
|
+
spawnFromGroup(creatureGroup: SpawnGroup, tile: Tile, bypass?: boolean, bypassCreatureLimit?: boolean): Creature | undefined;
|
|
60
|
+
createFake(type: CreatureType, aberrant: boolean, tile?: Tile, id?: number): Creature;
|
|
62
61
|
exists(creature: Creature): boolean;
|
|
63
62
|
maybeSpawnClawWorm(target: Human | Creature): void;
|
|
64
63
|
/**
|
|
@@ -66,14 +65,14 @@ export default class CreatureManager extends EntityManager<Creature> {
|
|
|
66
65
|
* @param target Human that we check around to find a suitable spawn.
|
|
67
66
|
*/
|
|
68
67
|
maybeSpawnDryad(target: Human): void;
|
|
69
|
-
remove(creature: Creature): void;
|
|
68
|
+
remove(creature: Creature, remainTamed?: boolean): void;
|
|
70
69
|
updateAll(playingHumans: Human[]): void;
|
|
71
70
|
/**
|
|
72
71
|
* getMovePenalty
|
|
73
72
|
* @param willMove Set to true if the object is about to move to this tile. This method will confirm if theres an existing npc/creature there and return false if so
|
|
74
73
|
* @return Blocked penalty - Do no return 0!
|
|
75
74
|
*/
|
|
76
|
-
getMovePenalty(moveType: MoveType, tile:
|
|
75
|
+
getMovePenalty(moveType: MoveType, tile: Tile, willMove: boolean, options?: Partial<ICreatureCheckMoveOptions>): number;
|
|
77
76
|
/**
|
|
78
77
|
* wasm calls this when calculating penalties for flow fields
|
|
79
78
|
*/
|
|
@@ -82,6 +81,6 @@ export default class CreatureManager extends EntityManager<Creature> {
|
|
|
82
81
|
pool: CreatureType[];
|
|
83
82
|
aberrantChance: number;
|
|
84
83
|
};
|
|
85
|
-
spawnGuardians(position:
|
|
84
|
+
spawnGuardians(position: IVector3, amount: number): number;
|
|
86
85
|
private getReputationAberrantBonus;
|
|
87
86
|
}
|
|
@@ -9,8 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { ICreatureDescription } from "game/entity/creature/ICreature";
|
|
12
|
-
import { CreatureType
|
|
13
|
-
import { TerrainType } from "game/tile/ITerrain";
|
|
12
|
+
import { CreatureType } from "game/entity/creature/ICreature";
|
|
14
13
|
export declare const creatureDescriptions: OptionalDescriptions<CreatureType, ICreatureDescription>;
|
|
15
|
-
export default creatureDescriptions;
|
|
16
|
-
export declare const tileGroups: Descriptions<TileGroup, Set<TerrainType>>;
|