@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
|
@@ -9,12 +9,20 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { BiomeType } from "game/biome/IBiome";
|
|
12
|
+
import type Creature from "game/entity/creature/Creature";
|
|
13
|
+
import type { CreatureType, IDamageOutcome, IDamageOutcomeInput } from "game/entity/creature/ICreature";
|
|
12
14
|
import type Human from "game/entity/Human";
|
|
13
|
-
import type {
|
|
15
|
+
import type { DamageType, Defense } from "game/entity/IEntity";
|
|
16
|
+
import type NPC from "game/entity/npc/NPC";
|
|
17
|
+
import type { IIslandTemplate, TickFlag, TileUpdateType } from "game/IGame";
|
|
18
|
+
import type Port from "game/island/Port";
|
|
14
19
|
import type { MultiplayerLoadingDescription } from "game/meta/Loading";
|
|
15
|
-
import type {
|
|
20
|
+
import type { TerrainType } from "game/tile/ITerrain";
|
|
21
|
+
import type Tile from "game/tile/Tile";
|
|
22
|
+
import type { ISerializedTranslation } from "language/ITranslation";
|
|
16
23
|
import type World from "renderer/world/World";
|
|
17
|
-
import type { IVector2 } from "utilities/math/IVector";
|
|
24
|
+
import type { IVector2, IVector3 } from "utilities/math/IVector";
|
|
25
|
+
import type { SeedType } from "utilities/random/IRandom";
|
|
18
26
|
export type IslandId = `${number},${number}`;
|
|
19
27
|
export declare module IslandPosition {
|
|
20
28
|
function toId(position: IVector2): IslandId;
|
|
@@ -32,6 +40,10 @@ export interface IIslandEvents {
|
|
|
32
40
|
* This means there are no longer players on the island
|
|
33
41
|
*/
|
|
34
42
|
deactivated(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Called when the island is unloaded
|
|
45
|
+
*/
|
|
46
|
+
unloaded(): void;
|
|
35
47
|
/**
|
|
36
48
|
* Called when the island is deleted
|
|
37
49
|
*/
|
|
@@ -41,16 +53,13 @@ export interface IIslandEvents {
|
|
|
41
53
|
/**
|
|
42
54
|
* Called when a tile is updated (tile type changed, doodad created on it, etc)
|
|
43
55
|
* @param tile The tile that was updated
|
|
44
|
-
* @param x The x position of the updated tile
|
|
45
|
-
* @param y The y position of the updated tile
|
|
46
|
-
* @param z The z position of the updated tile
|
|
47
56
|
* @param tileUpdateType The tile update type
|
|
48
57
|
*/
|
|
49
|
-
tileUpdate(tile:
|
|
58
|
+
tileUpdate(tile: Tile, tileUpdateType: TileUpdateType): void;
|
|
50
59
|
/**
|
|
51
60
|
* Called when a tile type changes.
|
|
52
61
|
*/
|
|
53
|
-
terrainChange(
|
|
62
|
+
terrainChange(tile: Tile, oldType: TerrainType): any;
|
|
54
63
|
/**
|
|
55
64
|
* Called when item references are loaded
|
|
56
65
|
*/
|
|
@@ -75,25 +84,50 @@ export interface IIslandEvents {
|
|
|
75
84
|
* Emitted when an island is renamed
|
|
76
85
|
*/
|
|
77
86
|
rename(human: Human, newName?: string, oldName?: string): any;
|
|
87
|
+
/**
|
|
88
|
+
* Emitted when island ports have changed
|
|
89
|
+
*/
|
|
90
|
+
portsChanged(addedPort?: Port, removedPort?: Port): any;
|
|
91
|
+
getDefense(defense: Defense | undefined, target: Human | Creature | CreatureType, damageType?: DamageType): Defense | undefined;
|
|
92
|
+
calculateAttackOutcome(damageOutcome: IDamageOutcome, input: IDamageOutcomeInput, attackValue: number, defenseValue: number): IDamageOutcome | undefined;
|
|
78
93
|
}
|
|
79
|
-
export interface
|
|
94
|
+
export interface ILegacySeeds {
|
|
95
|
+
type: SeedType.Legacy;
|
|
80
96
|
base: number;
|
|
81
97
|
saved: number;
|
|
82
98
|
}
|
|
99
|
+
export interface IPCGSeeds {
|
|
100
|
+
type: SeedType.PCG;
|
|
101
|
+
base: number;
|
|
102
|
+
saved: Uint16Array;
|
|
103
|
+
}
|
|
104
|
+
export type ISeeds = ILegacySeeds | IPCGSeeds;
|
|
83
105
|
export interface IIslandLoadOptions {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Set to true when the island load is happening for everyone eveywhere all at once
|
|
108
|
+
*/
|
|
109
|
+
isSynced: boolean;
|
|
110
|
+
isNewSave?: boolean;
|
|
111
|
+
travelTime?: number;
|
|
112
|
+
pauseAndShowLoadingScreen?: boolean;
|
|
113
|
+
multiplayerLoadingDescription?: MultiplayerLoadingDescription;
|
|
114
|
+
newIslandOverrides?: Partial<INewIslandOverrides>;
|
|
115
|
+
disableLoadingScreen?: boolean;
|
|
90
116
|
}
|
|
91
117
|
export interface IMoveToIslandOptions {
|
|
92
118
|
spawnPosition: IVector2;
|
|
93
|
-
newWorldBiomeTypeOverride: BiomeType;
|
|
94
119
|
noTravelingEffects: true;
|
|
120
|
+
noTravelingTime: true;
|
|
95
121
|
distanceFromEdge: number;
|
|
96
122
|
respawn: boolean;
|
|
123
|
+
newIslandOverrides: Partial<INewIslandOverrides>;
|
|
124
|
+
targetPortId: number;
|
|
125
|
+
disableLoadingScreen: boolean;
|
|
126
|
+
nestedTravelCount: number;
|
|
127
|
+
}
|
|
128
|
+
export interface INewIslandOverrides {
|
|
129
|
+
biomeType: BiomeType;
|
|
130
|
+
template: IIslandTemplate;
|
|
97
131
|
}
|
|
98
132
|
export interface IWell {
|
|
99
133
|
quantity: number;
|
|
@@ -125,4 +159,24 @@ export declare enum LiquidType {
|
|
|
125
159
|
}
|
|
126
160
|
export declare const ISLAND_NAME_MAX_LENGTH = 32;
|
|
127
161
|
export declare const DEFAULT_ISLAND_ID = "0,0";
|
|
128
|
-
export declare const
|
|
162
|
+
export declare const DEFAULT_ISLAND_MAP_SIZE = 512;
|
|
163
|
+
export declare const TRAVEL_ANIMATION_ISLAND_ID: IslandId;
|
|
164
|
+
export interface IIslandPort {
|
|
165
|
+
id: number;
|
|
166
|
+
name: string | ISerializedTranslation;
|
|
167
|
+
position: IVector3;
|
|
168
|
+
}
|
|
169
|
+
export interface IMobCheck extends IVector3 {
|
|
170
|
+
tile: Tile;
|
|
171
|
+
creature?: Creature;
|
|
172
|
+
player?: Human;
|
|
173
|
+
npc?: NPC;
|
|
174
|
+
obstacle?: boolean;
|
|
175
|
+
water?: boolean;
|
|
176
|
+
freshWater?: boolean;
|
|
177
|
+
shallowWater?: boolean;
|
|
178
|
+
swampWater?: boolean;
|
|
179
|
+
noTile?: boolean;
|
|
180
|
+
waterTiles?: number;
|
|
181
|
+
voidTiles?: number;
|
|
182
|
+
}
|
|
@@ -9,21 +9,24 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
|
+
import type { Game } from "game/Game";
|
|
13
|
+
import type { IGameOld } from "game/IGame";
|
|
14
|
+
import { TickFlag, TileUpdateType } from "game/IGame";
|
|
15
|
+
import { Quality } from "game/IObject";
|
|
12
16
|
import type { BiomeTypes } from "game/biome/IBiome";
|
|
17
|
+
import type { ITemplateBiomeOptions } from "game/biome/template/Template";
|
|
13
18
|
import DoodadManager from "game/doodad/DoodadManager";
|
|
14
|
-
import
|
|
19
|
+
import Human from "game/entity/Human";
|
|
20
|
+
import type { SkillType } from "game/entity/IHuman";
|
|
15
21
|
import Creature from "game/entity/creature/Creature";
|
|
16
22
|
import CreatureManager from "game/entity/creature/CreatureManager";
|
|
17
23
|
import type { IDamageInfo, IDamageOutcome, IDamageOutcomeInput } from "game/entity/creature/ICreature";
|
|
24
|
+
import CorpseManager from "game/entity/creature/corpse/CorpseManager";
|
|
18
25
|
import FlowFieldManager from "game/entity/flowfield/FlowFieldManager";
|
|
19
|
-
import Human from "game/entity/Human";
|
|
20
|
-
import { SkillType } from "game/entity/IHuman";
|
|
21
26
|
import NPCManager from "game/entity/npc/NPCManager";
|
|
22
|
-
import type {
|
|
23
|
-
import { FireType, TickFlag, TileUpdateType } from "game/IGame";
|
|
24
|
-
import { Quality } from "game/IObject";
|
|
25
|
-
import type { IIslandEvents, IIslandLoadOptions, ISeeds, IslandId, IWaterContamination, IWaterFill, IWell } from "game/island/IIsland";
|
|
27
|
+
import type { IIslandEvents, IIslandLoadOptions, IMobCheck, ISeeds, IWaterContamination, IWaterFill, IWell, IslandId } from "game/island/IIsland";
|
|
26
28
|
import { WaterType } from "game/island/IIsland";
|
|
29
|
+
import { PortManager } from "game/island/Port";
|
|
27
30
|
import type { ILiquidGather } from "game/item/IItem";
|
|
28
31
|
import type { IRequirementInfo } from "game/item/IItemManager";
|
|
29
32
|
import ItemManager from "game/item/ItemManager";
|
|
@@ -32,22 +35,23 @@ import type { IGameOptions } from "game/options/IGameOptions";
|
|
|
32
35
|
import type { IslandModifiersCollection } from "game/options/modifiers/island/IslandModifiers";
|
|
33
36
|
import type { IReferenceable } from "game/reference/IReferenceManager";
|
|
34
37
|
import TemperatureManager from "game/temperature/TemperatureManager";
|
|
35
|
-
import type { ITerrainDescription,
|
|
38
|
+
import type { ITerrainDescription, ITileContainer, ITileData } from "game/tile/ITerrain";
|
|
36
39
|
import { TerrainType } from "game/tile/ITerrain";
|
|
37
40
|
import type { ITerrainLoot, ITerrainLootItem } from "game/tile/TerrainResources";
|
|
41
|
+
import Tile from "game/tile/Tile";
|
|
38
42
|
import TileEventManager from "game/tile/TileEventManager";
|
|
39
43
|
import TimeManager from "game/time/TimeManager";
|
|
40
44
|
import Translation from "language/Translation";
|
|
41
45
|
import World from "renderer/world/World";
|
|
42
|
-
import type { IPreSerializeCallback, ISerializer } from "save/serializer/ISerializer";
|
|
46
|
+
import type { IPostSerializeCallback, IPreSerializeCallback, ISerializer } from "save/serializer/ISerializer";
|
|
47
|
+
import type { IVersionInfo } from "utilities/Version";
|
|
43
48
|
import { Direction } from "utilities/math/Direction";
|
|
44
49
|
import type { IVector2, IVector3 } from "utilities/math/IVector";
|
|
45
|
-
import
|
|
46
|
-
import type {
|
|
47
|
-
import type {
|
|
50
|
+
import type { Random } from "utilities/random/Random";
|
|
51
|
+
import type { LegacySeededGenerator } from "utilities/random/generators/LegacySeededGenerator";
|
|
52
|
+
import type { PCGSeededGenerator } from "utilities/random/generators/PCGSeededGenerator";
|
|
48
53
|
export interface IIslandDetails {
|
|
49
54
|
seed: number;
|
|
50
|
-
random: Random;
|
|
51
55
|
biomeType: BiomeTypes;
|
|
52
56
|
offset: IVector2;
|
|
53
57
|
}
|
|
@@ -58,63 +62,70 @@ export declare module IIslandDetails {
|
|
|
58
62
|
* Represents the worlds island
|
|
59
63
|
* Items, Creatures, Npcs, etc.. all exist on the island
|
|
60
64
|
*/
|
|
61
|
-
export default class Island extends EventEmitter.Host<IIslandEvents> implements IReferenceable, IPreSerializeCallback {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
export default class Island extends EventEmitter.Host<IIslandEvents> implements IReferenceable, IPreSerializeCallback, IPostSerializeCallback {
|
|
66
|
+
readonly corpses: CorpseManager;
|
|
67
|
+
readonly creatures: CreatureManager;
|
|
68
|
+
readonly doodads: DoodadManager;
|
|
69
|
+
readonly flowFieldManager: FlowFieldManager;
|
|
70
|
+
readonly items: ItemManager;
|
|
71
|
+
readonly npcs: NPCManager;
|
|
72
|
+
readonly ports: PortManager;
|
|
73
|
+
readonly temperature: TemperatureManager;
|
|
74
|
+
readonly tileEvents: TileEventManager;
|
|
75
|
+
readonly time: TimeManager;
|
|
76
|
+
saveBuildTime?: number;
|
|
77
|
+
saveVersion: string;
|
|
74
78
|
biomeType: BiomeTypes;
|
|
75
79
|
civilizationScore: number;
|
|
76
80
|
civilizationScoreTiles: Record<number, number>;
|
|
77
81
|
contaminatedWater: IWaterContamination[];
|
|
78
82
|
creatureSpawnTimer: number;
|
|
83
|
+
loadCount: number;
|
|
79
84
|
mapGenVersion: string;
|
|
80
85
|
name?: string;
|
|
81
86
|
position: IVector2;
|
|
87
|
+
readonly mapSize: number;
|
|
88
|
+
readonly treasureMaps: DrawnMap[];
|
|
89
|
+
readonly wellData: SaferNumberIndexedObject<IWell>;
|
|
82
90
|
referenceId?: number;
|
|
83
|
-
|
|
91
|
+
templateBiomeOptions: ITemplateBiomeOptions | undefined;
|
|
84
92
|
tileContainers: ITileContainer[];
|
|
85
|
-
tileData: SaferNumberIndexedObject<SaferNumberIndexedObject<SaferNumberIndexedObject<ITileData[]>>>;
|
|
86
|
-
treasureMaps: DrawnMap[];
|
|
87
93
|
version: string;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
readonly
|
|
94
|
+
tileData: SaferNumberIndexedObject<SaferNumberIndexedObject<SaferNumberIndexedObject<ITileData[]>>>;
|
|
95
|
+
readonly seeds: ISeeds;
|
|
96
|
+
readonly seededRandom: Random<LegacySeededGenerator | PCGSeededGenerator>;
|
|
97
|
+
readonly game: Game;
|
|
92
98
|
/**
|
|
93
99
|
* Set of players on this island
|
|
94
100
|
*/
|
|
95
|
-
readonly players: Set<Human
|
|
101
|
+
readonly players: Set<Human<number>>;
|
|
96
102
|
/**
|
|
97
103
|
* Entity move types in fov on this island
|
|
98
|
-
* `${z}-${moveType}` -> Humans
|
|
99
104
|
*/
|
|
100
|
-
readonly moveTypesInFov: Map<
|
|
105
|
+
readonly moveTypesInFov: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-15", Set<Human<number>>>;
|
|
101
106
|
previousSaveVersion: IVersionInfo | undefined;
|
|
102
107
|
brokenReferencesCount: number;
|
|
108
|
+
readonly id: IslandId;
|
|
109
|
+
readonly mapSizeSq: number;
|
|
103
110
|
spawnPoint: IVector3;
|
|
104
111
|
private _loadedReferences;
|
|
105
112
|
private _tiles;
|
|
106
113
|
private _world;
|
|
107
114
|
modifiersCollection?: IslandModifiersCollection;
|
|
108
115
|
details?: IIslandDetails;
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
private _ranUpgrade;
|
|
117
|
+
private serializeObjectStats?;
|
|
118
|
+
constructor(game?: Game, position?: IVector2, seed?: number, mapSize?: number);
|
|
111
119
|
toString(): string;
|
|
112
120
|
private registerMemoryLeakDetector;
|
|
113
121
|
preSerializeObject(serializer: ISerializer): void;
|
|
114
|
-
|
|
115
|
-
|
|
122
|
+
postSerializeObject(serializer: ISerializer): void;
|
|
123
|
+
preSerializeProperty(serializer: ISerializer, key: string): void;
|
|
124
|
+
postSerializeProperty(serializer: ISerializer, key: string): void;
|
|
125
|
+
onUnserialized(serializer: ISerializer): void;
|
|
116
126
|
get biome(): import("game/biome/IBiome").IBiomeDescription;
|
|
117
127
|
get isLoaded(): boolean;
|
|
128
|
+
get tiles(): Record<number, Tile | undefined>;
|
|
118
129
|
get hasLoadedItemReferences(): boolean;
|
|
119
130
|
get isLocalIsland(): boolean;
|
|
120
131
|
get world(): World;
|
|
@@ -135,7 +146,11 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
135
146
|
private getNameDescriptor;
|
|
136
147
|
private getNameNoun;
|
|
137
148
|
getNeighboringIslands(): Island[];
|
|
138
|
-
|
|
149
|
+
ensureUpgraded(isSynced: boolean): void;
|
|
150
|
+
/**
|
|
151
|
+
* Loads the island
|
|
152
|
+
*/
|
|
153
|
+
load(options: IIslandLoadOptions): Promise<void>;
|
|
139
154
|
private initializeIslandModifiers;
|
|
140
155
|
/**
|
|
141
156
|
* Unload the island from memory
|
|
@@ -154,118 +169,51 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
154
169
|
getIslandDistance(): number;
|
|
155
170
|
/**
|
|
156
171
|
* Gets the default terrain type that should be under a tile (in the case of melting or removing it in some way).
|
|
157
|
-
* @param tile
|
|
172
|
+
* @param tile Tile that we are getting the default terrain type for.
|
|
158
173
|
* @returns The default terrain type with a fallback to dirt (which shouldn't happen without mods or bugs).
|
|
159
174
|
*/
|
|
160
|
-
getDefaultTerrainType(tile:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
getTileSafe(x: number, y: number, z: number): ITile | undefined;
|
|
170
|
-
setTile(x: number, y: number, z: number, tile: ITile): ITile;
|
|
171
|
-
setTiles(tiles: ITile[]): void;
|
|
172
|
-
getOrCreateTile(index: number): ITile;
|
|
173
|
-
changeTile(newTileInfo: TerrainType | ITileData, x: number, y: number, z: number, stackTiles: boolean, dropTiles?: boolean): void;
|
|
174
|
-
makeLavaPassage(human: Human): TerrainType | undefined;
|
|
175
|
-
makeCaveEntrance(human: Human, chance?: number): TerrainType | undefined;
|
|
176
|
-
getTileData(x: number, y: number, z: number): ITileData[] | undefined;
|
|
177
|
-
getOrCreateTileData(x: number, y: number, z: number): ITileData[];
|
|
178
|
-
updateFlowFieldTile(tile: ITile, x: number, y: number, z: number, tileUpdateType: TileUpdateType, updatedRenderer?: boolean): void;
|
|
179
|
-
isTilled(x: number, y: number, z: number): boolean;
|
|
180
|
-
packGround(x: number, y: number, z: number): void;
|
|
175
|
+
getDefaultTerrainType(tile: Tile): TerrainType;
|
|
176
|
+
getDirectionFromMovement(x: number, y: number): Direction.East | Direction.North | Direction.West | Direction.South;
|
|
177
|
+
getTileFromPoint(point: IVector3): Tile;
|
|
178
|
+
getTile(x: number, y: number, z: number, disableLog?: boolean): Tile;
|
|
179
|
+
getTileSafe(x: number, y: number, z: number): Tile | undefined;
|
|
180
|
+
createTile(x: number, y: number, z: number, index: number): Tile;
|
|
181
|
+
setTile(x: number, y: number, z: number, tile: Tile): Tile;
|
|
182
|
+
getOrCreateTile(index: number, x: number, y: number, z: number): Tile;
|
|
183
|
+
updateFlowFieldTile(tile: Tile, tileUpdateType: TileUpdateType, updatedRenderer?: boolean): void;
|
|
181
184
|
/**
|
|
182
|
-
*
|
|
183
|
-
* If there is no remaining tile data, a new tile data will be added with the newTileTypeWhenEmpty type
|
|
184
|
-
*/
|
|
185
|
-
removeTopTile(x: number, y: number, z: number, newTileTypeWhenEmpty: TerrainType | ((tile: ITile) => TerrainType)): void;
|
|
186
|
-
/**
|
|
187
|
-
* Checks if island.tileData is synced with ITile.data
|
|
185
|
+
* Checks if island.tileData is synced with Tile.data
|
|
188
186
|
*/
|
|
189
187
|
checkTileState(): void;
|
|
190
|
-
isPositionFull(x: number, y: number, z: number): boolean;
|
|
191
|
-
isTileFull(tile: ITile): boolean;
|
|
192
|
-
isOnFire(tile: ITile): FireType;
|
|
193
|
-
isTileEmpty(tile: ITile): boolean;
|
|
194
|
-
isPositionEmpty(x: number, y: number, z: number): boolean;
|
|
195
188
|
processWaterContamination(): void;
|
|
196
189
|
addPlayer(human: Human, refreshStatusEffects?: boolean): void;
|
|
197
190
|
removePlayer(human: Human, isAbsentPlayer?: boolean): void;
|
|
198
191
|
getPlayers(includeGhosts?: boolean, includeConnecting?: boolean): Human[];
|
|
199
|
-
isPlayerAtTile(tile: ITile, includeGhosts?: boolean, includeConnecting?: boolean): boolean;
|
|
200
|
-
isPlayerAtPosition(x: number, y: number, z: number, includeGhosts?: boolean, includeConnecting?: boolean): boolean;
|
|
201
|
-
getPlayersAtTile(tile: ITile, includeGhosts?: boolean, includeConnecting?: boolean): Human[];
|
|
202
|
-
getPlayersAtPosition(position: IVector3, includeGhosts?: boolean, includeConnecting?: boolean): Human[];
|
|
203
|
-
getPlayersAtPosition(x: number, y: number, z: number, includeGhosts?: boolean, includeConnecting?: boolean): Human[];
|
|
204
|
-
getPlayersThatSeePosition(x: number, y: number, z: number): Human[];
|
|
205
|
-
/**
|
|
206
|
-
* Gets the nearest player based on x/y/z coordinates.
|
|
207
|
-
* @param x The x coord to get the closest player.
|
|
208
|
-
* @param y The y coord to get the closest player.
|
|
209
|
-
* @param z The z coord to get the closest player.
|
|
210
|
-
* @param canSee If set to true, check if the player can see the x/y/z coords. Defaults to false.
|
|
211
|
-
*/
|
|
212
|
-
getNearestPlayer(x: number, y: number, z?: number, canSee?: boolean, includeGhosts?: boolean, includeConnecting?: boolean): {
|
|
213
|
-
player?: Human;
|
|
214
|
-
distance?: number;
|
|
215
|
-
};
|
|
216
192
|
getReputation(): number;
|
|
217
193
|
getMalignity(): number;
|
|
218
194
|
getBenignity(): number;
|
|
219
195
|
getMaxHealth(): number;
|
|
220
196
|
getMaxWeight(): number;
|
|
221
|
-
getTactics(): number;
|
|
222
197
|
getSkillPercent(skill: SkillType): number;
|
|
223
198
|
getPlayerAverage(calc: (player: Human) => number | undefined, round?: boolean): number;
|
|
224
199
|
updateReputation(reputation: number): void;
|
|
225
200
|
/**
|
|
226
201
|
* Check the amount of water tiles there is connected to a supplied x/y area
|
|
227
202
|
*/
|
|
228
|
-
checkWaterFill(
|
|
229
|
-
getSpawnPoint():
|
|
230
|
-
|
|
203
|
+
checkWaterFill(tile: Tile, needed: number, waterType: WaterType, waterFill?: IWaterFill): number;
|
|
204
|
+
getSpawnPoint(): Tile;
|
|
205
|
+
getSuitableSpawnPoint(): Tile;
|
|
231
206
|
calculateDamageOutcome(input: IDamageOutcomeInput): IDamageOutcome | undefined;
|
|
232
207
|
damage(target: Human | Creature, damageInfo: IDamageInfo, causesBlood?: boolean): number | undefined;
|
|
233
208
|
/**
|
|
234
209
|
* Calculates the light level of a tile.
|
|
235
210
|
* @returns 32bit number representing RED GREEN BLUE ALPHA
|
|
236
211
|
*/
|
|
237
|
-
calculateTileLightLevel(tile:
|
|
212
|
+
calculateTileLightLevel(tile: Tile): number;
|
|
238
213
|
getLightSourceAt(x: number, y: number, z: number): number;
|
|
214
|
+
checkForTargetInRange(tile: Tile, direction: Direction.Cardinal, range: number, includePlayers?: boolean): IMobCheck;
|
|
239
215
|
fireBreath(x: number, y: number, z: number, facingDirection: Direction, itemName?: Translation, player?: boolean): void;
|
|
240
216
|
coolFires(requirements: IRequirementInfo, human: Human): void;
|
|
241
|
-
isFlammable(x: number, y: number, z: number): boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Converts shallow single bodies of fresh/swamp water into seawater.
|
|
244
|
-
* @param point x/y/z of the tile to check against.
|
|
245
|
-
*/
|
|
246
|
-
contaminateNonSeawater(point: IVector3): void;
|
|
247
|
-
/**
|
|
248
|
-
* Create puddles around a point and limit them (so they can't expand infinitely).
|
|
249
|
-
* @param point x/y/z of the splash/puddle source.
|
|
250
|
-
*/
|
|
251
|
-
createPuddles(point: IVector3): void;
|
|
252
|
-
/**
|
|
253
|
-
* Cools the tile (such as lava) and reveals to any in-LOS players about it.
|
|
254
|
-
* @param point x/y/z of the lava tile.
|
|
255
|
-
* @param islandId The island ID of where we are checking so we can tell players about the cooled lava/tile.
|
|
256
|
-
*/
|
|
257
|
-
coolTile(point: IVector3, islandId?: IslandId): void;
|
|
258
|
-
/**
|
|
259
|
-
* Finds either lava or water ajacent to either lava or water, and cools the lava down based its findings.
|
|
260
|
-
* @param point x/y/z of the lava or water source.
|
|
261
|
-
* @param islandId The island ID of where we are checking so we can tell players about the cooled lava.
|
|
262
|
-
*/
|
|
263
|
-
coolLava(point: IVector3, islandId?: IslandId): void;
|
|
264
|
-
/**
|
|
265
|
-
* Contaminate water sources when new ones are created based on the surrounding water.
|
|
266
|
-
* @param point x/y/z of the water tile created.
|
|
267
|
-
*/
|
|
268
|
-
contaminateWater(point: IVector3): void;
|
|
269
217
|
/**
|
|
270
218
|
* Resets & recalculates the civilization score
|
|
271
219
|
*/
|
|
@@ -273,7 +221,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
273
221
|
/**
|
|
274
222
|
* Refreshes the provided civ score for the given tile
|
|
275
223
|
*/
|
|
276
|
-
refreshTileCivilizationScore(tile:
|
|
224
|
+
refreshTileCivilizationScore(tile: Tile, isRecalculating?: boolean): void;
|
|
277
225
|
/**
|
|
278
226
|
* Adds civilization score
|
|
279
227
|
*/
|
|
@@ -285,30 +233,9 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
285
233
|
getGrowingSpeed(terrainType: TerrainType, quality?: Quality, magicValue?: number): number;
|
|
286
234
|
processTickFlags(tickFlag: TickFlag, ticks: number, playingHumans: Human[]): void;
|
|
287
235
|
processTickFlagsAsync(tickFlag: TickFlag, ticks: number, playingHumans: Human[], onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
288
|
-
/**
|
|
289
|
-
* Possibly collapses or opens up a cave (on both sides) and breaks any doodads.
|
|
290
|
-
* @param point Vector3 of the location to collapse or open the caves (if it exists).
|
|
291
|
-
* @param checkType TerrainType to check if the tile point equals this before switching.
|
|
292
|
-
*/
|
|
293
|
-
switchCave(point: Vector3, checkType?: TerrainType): void;
|
|
294
|
-
/**
|
|
295
|
-
* Checks to see if there is a cave and if it can be switched to collapsed from open or vice versa.
|
|
296
|
-
* @param terrainType TerrainType to get the description of.
|
|
297
|
-
* @param checkType TerrainType to check if the tile point equals this before switching.
|
|
298
|
-
* @returns TerrainType that we should switch the tile into.
|
|
299
|
-
*/
|
|
300
|
-
canSwitchCave(terrainType: TerrainType, checkType?: TerrainType): TerrainType | undefined;
|
|
301
236
|
private updateEntityFov;
|
|
302
237
|
private processTimers;
|
|
303
238
|
private runRandomEvents;
|
|
304
|
-
/**
|
|
305
|
-
* Plants a random seed at the given coordinates based on what can grow on that tile naturally. This will replace any doodad that is there.
|
|
306
|
-
* @param x X coordinates.
|
|
307
|
-
* @param y Y coordinates.
|
|
308
|
-
* @param z Z coordinates.
|
|
309
|
-
* @returns True if a seed was planted.
|
|
310
|
-
*/
|
|
311
|
-
plantRandomSeed(x: number, y: number, z: number): boolean;
|
|
312
239
|
/**
|
|
313
240
|
* Synchronizes player events
|
|
314
241
|
* Usually called when a new player joins
|
|
@@ -324,7 +251,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
324
251
|
* Only allow loading references once
|
|
325
252
|
* Even if an island is unloaded, the loaded references will remain
|
|
326
253
|
*/
|
|
327
|
-
loadReferences(
|
|
254
|
+
loadReferences(allowFixes: boolean): void;
|
|
328
255
|
/**
|
|
329
256
|
* Gets the items/resources from terrain based on the TerrainResources definition and checks if it is based on the current biome type.
|
|
330
257
|
* @param terrainLoot The resource to check.
|
|
@@ -335,5 +262,5 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
335
262
|
/**
|
|
336
263
|
* Returns the type of liquid that can be gathered from the tile
|
|
337
264
|
*/
|
|
338
|
-
getLiquidGatherType(terrainType: TerrainType, terrainDescription
|
|
265
|
+
getLiquidGatherType(terrainType: TerrainType, terrainDescription: ITerrainDescription): keyof ILiquidGather | undefined;
|
|
339
266
|
}
|
|
@@ -8,9 +8,15 @@
|
|
|
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 { Game } from "game/Game";
|
|
11
12
|
import type { IslandId } from "game/island/IIsland";
|
|
13
|
+
import type { IIslandDetails } from "game/island/Island";
|
|
12
14
|
import Island from "game/island/Island";
|
|
15
|
+
import type { IVector2 } from "utilities/math/IVector";
|
|
16
|
+
import type { SeedType } from "utilities/random/IRandom";
|
|
13
17
|
export default class IslandManager extends Map<IslandId, Island> {
|
|
18
|
+
private readonly game;
|
|
19
|
+
constructor(game: Game);
|
|
14
20
|
/**
|
|
15
21
|
* Get the list of islands that contain players
|
|
16
22
|
*/
|
|
@@ -32,7 +38,7 @@ export default class IslandManager extends Map<IslandId, Island> {
|
|
|
32
38
|
* Gets an island by id. Try to use "get" instead!
|
|
33
39
|
* @returns Island or undefined if it does not exist
|
|
34
40
|
*/
|
|
35
|
-
getIfExists(islandId
|
|
41
|
+
getIfExists(islandId?: IslandId): Island | undefined;
|
|
36
42
|
/**
|
|
37
43
|
* Gets an island by position
|
|
38
44
|
*/
|
|
@@ -41,9 +47,12 @@ export default class IslandManager extends Map<IslandId, Island> {
|
|
|
41
47
|
/**
|
|
42
48
|
* Gets or creates a new island by id
|
|
43
49
|
*/
|
|
44
|
-
getOrCreate(islandId: IslandId, ensureUpgraded?: boolean): Island;
|
|
50
|
+
getOrCreate(islandId: IslandId, ensureUpgraded?: boolean, mapSize?: number): Island;
|
|
45
51
|
/**
|
|
46
52
|
* Unloads islands that are no longer needed
|
|
47
53
|
*/
|
|
48
54
|
cleanup(): void;
|
|
55
|
+
getBiomeType(x: number, y: number): import("../biome/IBiome").BiomeTypes;
|
|
56
|
+
getDetails(x: number, y: number): IIslandDetails;
|
|
57
|
+
generateDetails(position: IVector2, seedType: SeedType, seed?: number): IIslandDetails;
|
|
49
58
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import type Doodad from "game/doodad/Doodad";
|
|
12
|
+
import type { IslandId } from "game/island/IIsland";
|
|
13
|
+
import type Island from "game/island/Island";
|
|
14
|
+
import type { Reference, ReferenceType } from "game/reference/IReferenceManager";
|
|
15
|
+
import { type ISerializedTranslation } from "language/ITranslation";
|
|
16
|
+
import TranslationImpl from "language/impl/TranslationImpl";
|
|
17
|
+
import { type ISerializer, type IUnserializedCallback } from "save/serializer/ISerializer";
|
|
18
|
+
import type { IVector3 } from "utilities/math/IVector";
|
|
19
|
+
interface IPort {
|
|
20
|
+
id: number;
|
|
21
|
+
islandId: IslandId;
|
|
22
|
+
renamed?: string | ISerializedTranslation;
|
|
23
|
+
name: ISerializedTranslation;
|
|
24
|
+
position: IVector3;
|
|
25
|
+
doodadRef?: Reference<ReferenceType.Doodad>;
|
|
26
|
+
}
|
|
27
|
+
interface Port extends Readonly<IPort> {
|
|
28
|
+
}
|
|
29
|
+
declare class Port {
|
|
30
|
+
static fromDoodad(doodad: Doodad): Port;
|
|
31
|
+
constructor(port: IPort);
|
|
32
|
+
get doodad(): Doodad | undefined;
|
|
33
|
+
get island(): Island | undefined;
|
|
34
|
+
getName(): TranslationImpl;
|
|
35
|
+
}
|
|
36
|
+
export default Port;
|
|
37
|
+
export declare class PortManager extends Map<number, Port> implements IUnserializedCallback {
|
|
38
|
+
private readonly island;
|
|
39
|
+
constructor(island: Island);
|
|
40
|
+
onUnserialized(serializer: ISerializer): void;
|
|
41
|
+
register(doodad: Doodad): void;
|
|
42
|
+
deregister(doodad: Doodad): boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { IIslandLoadOptions, IslandId } from "game/island/IIsland";
|
|
13
|
+
import type Island from "game/island/Island";
|
|
14
|
+
import type { Direction } from "utilities/math/Direction";
|
|
15
|
+
import type { IVector3 } from "utilities/math/IVector";
|
|
16
|
+
/**
|
|
17
|
+
* An island that won't exist for long
|
|
18
|
+
*/
|
|
19
|
+
export declare class TransientIsland {
|
|
20
|
+
readonly island: Island;
|
|
21
|
+
static create(islandId: IslandId, islandOptions?: Partial<IIslandLoadOptions>): Promise<TransientIsland>;
|
|
22
|
+
private deleted;
|
|
23
|
+
private constructor();
|
|
24
|
+
delete(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a human you can do stuff with
|
|
27
|
+
* @param spawnPoint Spawn point. Set to undefined to use the default island spawn point
|
|
28
|
+
* @param facingDirection Direction they should face when spawing
|
|
29
|
+
* @param copyFromHuman Human object to copy customizations, items, and vehicles from
|
|
30
|
+
* @returns Human
|
|
31
|
+
*/
|
|
32
|
+
createHuman(spawnPoint?: IVector3, facingDirection?: Direction.Cardinal, copyFromHuman?: Human): Human;
|
|
33
|
+
}
|