@wayward/types 2.12.3-beta.dev.20230104.1 → 2.13.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +10 -10
- package/definitions/cplusplus/index.d.ts +5 -9
- package/definitions/game/IGlobal.d.ts +0 -12
- package/definitions/game/Uninit.d.ts +11 -5
- package/definitions/game/audio/Audio.d.ts +22 -12
- package/definitions/game/audio/IAudio.d.ts +32 -46
- package/definitions/game/audio/Music.d.ts +1 -2
- package/definitions/game/audio/SoundEffects.d.ts +1 -1
- package/definitions/game/command/ICommand.d.ts +7 -6
- package/definitions/game/{game/entity/npc/npcs/IMerchant.d.ts → command/commands/Noclip.d.ts} +3 -2
- package/definitions/game/event/EventBuses.d.ts +71 -61
- package/definitions/game/event/EventEmitter.d.ts +24 -16
- package/definitions/game/event/EventManager.d.ts +4 -1
- package/definitions/game/game/Game.d.ts +63 -32
- package/definitions/game/game/IGame.d.ts +40 -41
- package/definitions/game/game/IObject.d.ts +14 -4
- package/definitions/game/game/ObjectManager.d.ts +5 -4
- package/definitions/game/game/VotingManager.d.ts +3 -0
- package/definitions/game/game/biome/IBiome.d.ts +4 -2
- package/definitions/game/{utilities/game/TilePosition.d.ts → game/biome/arid/mapGen/2.13.0.d.ts} +2 -2
- package/definitions/game/{renderer/spriteBatch/SpriteBatch.d.ts → game/biome/coastal/mapGen/2.13.0.d.ts} +2 -3
- package/definitions/game/game/biome/iceCap/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/template/Template.d.ts +29 -0
- package/definitions/game/game/biome/template/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/template/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/volcanic/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/doodad/Doodad.d.ts +99 -53
- package/definitions/game/game/doodad/DoodadInfo.d.ts +5 -5
- package/definitions/game/game/doodad/DoodadManager.d.ts +39 -27
- package/definitions/game/game/doodad/Doodads.d.ts +0 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +67 -6
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +68 -0
- package/definitions/game/game/entity/Entity.d.ts +74 -122
- package/definitions/game/game/entity/EntityManager.d.ts +2 -9
- package/definitions/game/game/entity/EntityMovable.d.ts +121 -0
- package/definitions/game/game/entity/EntityWithStats.d.ts +73 -0
- package/definitions/game/game/entity/Human.d.ts +81 -38
- package/definitions/game/game/entity/IEntity.d.ts +109 -29
- package/definitions/game/game/entity/IHuman.d.ts +38 -23
- package/definitions/game/game/entity/Stats.d.ts +1 -1
- package/definitions/game/game/entity/action/Action.d.ts +9 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +6 -19
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +135 -113
- package/definitions/game/game/entity/action/IAction.d.ts +48 -11
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/AddFuel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Alter.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +7 -6
- package/definitions/game/game/entity/action/actions/Build.d.ts +3 -5
- package/definitions/game/game/entity/action/actions/Butcher.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Cast.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CopyMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CreateControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DamageMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dig.d.ts +5 -6
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DrawMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enchant.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Equip.d.ts +5 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Exude.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Fire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +4 -7
- package/definitions/game/game/entity/action/actions/GrabAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Grasp.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/HealOther.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Idle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Jump.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Learn.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Lockpick.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Move.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveTo.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Noclip.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Offer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Pet.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUp.d.ts +4 -3
- package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Pour.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Preserve.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Read.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ReadMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Refine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Reinforce.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Release.d.ts +4 -1
- package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -2
- package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RestCancel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rub.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubCounterClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +23 -0
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +4 -5
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Shoot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Squeeze.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/StokeFire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Summon.d.ts +24 -0
- package/definitions/game/game/entity/action/actions/Tame.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Teleport.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/TellTime.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/TestDepth.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +5 -2
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +4 -6
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Trade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Unequip.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +3 -2
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateWalkPath.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmGatherHarvest.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmOnFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/Inventories.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +9 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionDrink.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCommands.d.ts +14 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCreatures.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsHidden.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +30 -26
- package/definitions/game/game/entity/action/usable/actions/UsableActionsUseNPC.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/doodad/IUsableActionsDoodad.d.ts +2 -2
- package/definitions/game/game/entity/creature/Creature.d.ts +86 -39
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +22 -23
- package/definitions/game/game/entity/creature/Creatures.d.ts +1 -4
- package/definitions/game/game/entity/creature/ICreature.d.ts +148 -9
- package/definitions/game/game/{inspection/infoProviders/creature/CreatureHealth.d.ts → entity/creature/SpecialAbilities.d.ts} +2 -6
- package/definitions/game/game/entity/creature/TileGroups.d.ts +13 -0
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +33 -26
- package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +6 -6
- package/definitions/game/game/entity/creature/corpse/Corpses.d.ts +0 -1
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +17 -0
- package/definitions/game/game/entity/flowfield/FlowField.d.ts +2 -2
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -2
- package/definitions/game/game/entity/flowfield/IFlowFieldManager.d.ts +4 -1
- package/definitions/game/game/entity/npc/INPC.d.ts +7 -0
- package/definitions/game/game/entity/npc/INPCs.d.ts +2 -1
- package/definitions/game/game/entity/npc/NPC.d.ts +96 -26
- package/definitions/game/game/entity/npc/NPCManager.d.ts +18 -7
- package/definitions/game/game/entity/npc/NPCS.d.ts +2 -2
- package/definitions/game/game/entity/npc/npcs/Controllable.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/DeathKnight.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +29 -30
- package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +66 -0
- package/definitions/game/game/entity/player/Customizations.d.ts +4 -4
- package/definitions/game/game/entity/player/IMessageManager.d.ts +7 -4
- package/definitions/game/game/entity/player/IPlayer.d.ts +8 -29
- package/definitions/game/game/entity/player/MessageManager.d.ts +8 -4
- package/definitions/game/game/entity/player/Player.d.ts +27 -16
- package/definitions/game/game/entity/player/PlayerManager.d.ts +23 -13
- package/definitions/game/game/entity/player/note/Corpse.d.ts +2 -2
- package/definitions/game/game/entity/player/note/NoteManager.d.ts +10 -4
- package/definitions/game/game/entity/player/quest/QuestManager.d.ts +3 -4
- package/definitions/game/game/entity/player/quest/Quests.d.ts +1 -2
- package/definitions/game/game/entity/player/quest/quest/Challenge.d.ts +8 -3
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +5 -5
- package/definitions/game/game/entity/skill/ISkills.d.ts +6 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffect.d.ts +4 -4
- package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
- package/definitions/game/game/inspection/IInfoProvider.d.ts +5 -3
- package/definitions/game/game/inspection/IInspection.d.ts +2 -1
- package/definitions/game/game/inspection/InfoProvider.d.ts +29 -3
- package/definitions/game/game/inspection/InfoProviderContext.d.ts +10 -6
- package/definitions/game/game/inspection/Inspection.d.ts +4 -4
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +4 -25
- package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +5 -8
- package/definitions/game/game/inspection/infoProviders/CivilizationScore.d.ts +30 -0
- package/definitions/game/game/inspection/infoProviders/ContainedItems.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/DoodadSkill.d.ts +29 -0
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +8 -8
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/creature/Aberrant.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +27 -0
- package/definitions/game/game/inspection/infoProviders/creature/{Happiness.d.ts → Difficulty.d.ts} +7 -4
- package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts +9 -3
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/doodad/GrowthStage.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/entity/Health.d.ts +5 -5
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +22 -17
- package/definitions/game/game/inspection/infoProviders/item/MagicalDamageType.d.ts +17 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +9 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +5 -6
- package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDismantleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemOfferInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemRangedInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemSetDownInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemShootInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemStokeInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTelescopyInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTrapDamageInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +3 -3
- package/definitions/game/game/inspection/infoProviders/skill/MagicalItemBonuses.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/DefenseInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CorpsesInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CreatureInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/EquipSlotInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/IslandInspection.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/ItemsInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +3 -1
- package/definitions/game/game/inspection/inspections/NPCInspection.d.ts +5 -2
- package/definitions/game/game/inspection/inspections/PlayerInspection.d.ts +4 -2
- package/definitions/game/game/inspection/inspections/RecipeInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/SelfInspection.d.ts +4 -5
- package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/StatInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/TileEventInspection.d.ts +4 -4
- package/definitions/game/game/inspection/inspections/TileInspection.d.ts +5 -6
- package/definitions/game/game/island/IIsland.d.ts +71 -17
- package/definitions/game/game/island/Island.d.ts +75 -148
- package/definitions/game/game/island/IslandManager.d.ts +11 -2
- package/definitions/game/game/island/Port.d.ts +43 -0
- package/definitions/game/game/island/TransientIsland.d.ts +33 -0
- package/definitions/game/game/item/IItem.d.ts +175 -25
- package/definitions/game/game/item/IItemManager.d.ts +21 -8
- package/definitions/game/game/item/Item.d.ts +95 -44
- package/definitions/game/game/item/ItemDescriptions.d.ts +2 -2
- package/definitions/game/game/item/ItemFinder.d.ts +2 -2
- package/definitions/game/game/item/ItemManager.d.ts +123 -94
- package/definitions/game/game/item/ItemMapManager.d.ts +3 -2
- package/definitions/game/game/item/WorldContainer.d.ts +16 -0
- package/definitions/game/game/item/recipe/Crafter.d.ts +3 -3
- package/definitions/game/game/item/recipe/RecipeRequirement.d.ts +2 -2
- package/definitions/game/game/item/recipe/requirement/FireRequirement.d.ts +2 -2
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -9
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +13 -1
- package/definitions/game/game/mapgen/IMapGen.d.ts +16 -5
- package/definitions/game/game/mapgen/MapGen.d.ts +2 -7
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +4 -5
- package/definitions/game/game/mapgen/version/2.12.0.d.ts +7 -3
- package/definitions/game/game/mapgen/version/2.12.1.d.ts +8 -4
- package/definitions/game/game/mapgen/version/2.13.0.d.ts +20 -0
- package/definitions/game/game/mapping/DrawnMap.d.ts +2 -2
- package/definitions/game/game/mapping/IMapTile.d.ts +2 -1
- package/definitions/game/game/mapping/IRegion.d.ts +22 -0
- package/definitions/game/game/meta/AutoSave.d.ts +12 -5
- package/definitions/game/game/meta/SaveLoad.d.ts +15 -9
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +88 -88
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
- package/definitions/game/game/meta/prompt/Prompts.d.ts +1 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +4 -1
- package/definitions/game/game/milestones/MilestoneManager.d.ts +12 -6
- package/definitions/game/game/options/IGameOptions.d.ts +6 -2
- package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +10 -6
- package/definitions/game/game/options/modifiers/GameplayModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -4
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +16 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +23 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +36 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -2
- package/definitions/game/game/reference/IReferenceManager.d.ts +4 -2
- package/definitions/game/game/reference/ReferenceManager.d.ts +8 -3
- package/definitions/game/game/temperature/TemperatureManager.d.ts +51 -26
- package/definitions/game/game/tile/ITerrain.d.ts +15 -27
- package/definitions/game/game/tile/ITileEvent.d.ts +3 -2
- package/definitions/game/game/tile/TerrainTemplates.d.ts +2 -2
- package/definitions/game/game/tile/Terrains.d.ts +1 -3
- package/definitions/game/game/tile/Tile.d.ts +311 -0
- package/definitions/game/game/tile/TileBits.d.ts +28 -0
- package/definitions/game/game/tile/TileEvent.d.ts +34 -31
- package/definitions/game/game/tile/TileEventManager.d.ts +21 -36
- package/definitions/game/game/tile/TileEvents.d.ts +1 -2
- package/definitions/game/game/tile/events/IFire.d.ts +4 -5
- package/definitions/game/game/tile/events/MeltingTile.d.ts +6 -6
- package/definitions/game/language/Dictionary.d.ts +109 -99
- package/definitions/game/language/DictionaryMap.d.ts +237 -314
- package/definitions/game/language/ITranslation.d.ts +6 -1
- package/definitions/game/language/LanguageManager.d.ts +12 -1
- package/definitions/game/language/Translation.d.ts +35 -8
- package/definitions/game/language/TranslationsProvider.d.ts +1 -1
- package/definitions/game/language/dictionary/Health.d.ts +24 -0
- package/definitions/game/language/dictionary/Message.d.ts +762 -917
- package/definitions/game/language/dictionary/Misc.d.ts +37 -32
- package/definitions/game/language/dictionary/UiTranslation.d.ts +842 -850
- package/definitions/game/language/english/Terrains.d.ts +2 -2
- package/definitions/game/language/english/creature/AiTypes.d.ts +13 -0
- package/definitions/game/language/english/creature/Corpses.d.ts +1 -1
- package/definitions/game/language/english/doodad/DoodadGroups.d.ts +1 -1
- package/definitions/game/language/english/game/Actions.d.ts +2 -2
- package/definitions/game/language/english/game/CombatDangerLevels.d.ts +13 -0
- package/definitions/game/language/english/game/CombatStrengths.d.ts +13 -0
- package/definitions/game/language/english/game/LighthouseName.d.ts +15 -0
- package/definitions/game/language/english/game/Regions.d.ts +13 -0
- package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameOverrunWithCreatureDescriptors.d.ts +1 -1
- package/definitions/game/language/english/item/DoodadsExtra.d.ts +13 -0
- package/definitions/game/language/english/item/ItemGroups.d.ts +2 -2
- package/definitions/game/language/english/item/Items.d.ts +2 -2
- package/definitions/game/language/english/living/HealthAccuracies.d.ts +13 -0
- package/definitions/game/language/english/living/Healths.d.ts +13 -0
- package/definitions/game/language/english/player/Milestones.d.ts +1 -1
- package/definitions/game/language/english/player/Skills.d.ts +2 -2
- package/definitions/game/language/english/ui/ModLoadErrors.d.ts +1 -1
- package/definitions/game/language/english/ui/UsableActionTypes.d.ts +2 -2
- package/definitions/game/language/english/ui/sort/MilestoneSorts.d.ts +13 -0
- package/definitions/game/language/english/ui/sort/SkillSorts.d.ts +13 -0
- package/definitions/game/language/impl/TranslationImpl.d.ts +7 -6
- package/definitions/game/language/segment/FormatListSegment.d.ts +1 -1
- package/definitions/game/language/utility/TranslationSorter.d.ts +3 -3
- package/definitions/game/mod/IMod.d.ts +1 -1
- package/definitions/game/mod/Mod.d.ts +2 -6
- package/definitions/game/mod/ModManager.d.ts +4 -0
- package/definitions/game/mod/ModRegistry.d.ts +96 -91
- package/definitions/game/multiplayer/IMultiplayer.d.ts +14 -1
- package/definitions/game/multiplayer/Multiplayer.d.ts +9 -4
- package/definitions/game/multiplayer/dedicatedServer/ssh/DefaultShell.d.ts +2 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/ISshShell.d.ts +2 -0
- package/definitions/game/multiplayer/dedicatedServer/ssh/Shell.d.ts +3 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/SshServer.d.ts +2 -1
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -0
- package/definitions/game/multiplayer/packets/BasePacket.d.ts +6 -1
- package/definitions/game/multiplayer/packets/IndexedPacket.d.ts +4 -1
- package/definitions/game/multiplayer/packets/Packets.d.ts +1 -1
- package/definitions/game/multiplayer/packets/client/LoadIslandPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/ConnectPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/UpdateActionBarPacket.d.ts +3 -2
- package/definitions/game/renderer/IRenderer.d.ts +81 -61
- package/definitions/game/renderer/Overlays.d.ts +1 -1
- package/definitions/game/renderer/Renderer.d.ts +54 -12
- package/definitions/game/renderer/Renderers.d.ts +20 -10
- package/definitions/game/renderer/WebGlContext.d.ts +2 -2
- package/definitions/game/renderer/context/BaseRendererContext.d.ts +8 -2
- package/definitions/game/renderer/context/RendererContext.d.ts +5 -1
- package/definitions/game/renderer/context/RendererOrigin.d.ts +6 -13
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +7 -6
- package/definitions/game/renderer/fieldOfView/IFieldOfView.d.ts +19 -9
- package/definitions/game/renderer/notifier/INotifier.d.ts +8 -6
- package/definitions/game/renderer/notifier/Notifier.d.ts +9 -8
- package/definitions/game/renderer/overlay/GenericOverlay.d.ts +26 -0
- package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleSystem.d.ts +4 -5
- package/definitions/game/renderer/spriteBatch/ISpriteBatch.d.ts +3 -1
- package/definitions/game/renderer/spriteBatch/PersistantSpriteBatch.d.ts +29 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +3 -26
- package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +5 -30
- package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +54 -0
- package/definitions/game/renderer/tile/TileLayer.d.ts +8 -0
- package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +15 -14
- package/definitions/game/renderer/world/IWorldLayer.d.ts +6 -2
- package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +26 -0
- package/definitions/game/renderer/world/IWorldRenderer.d.ts +8 -0
- package/definitions/game/renderer/world/World.d.ts +5 -5
- package/definitions/game/renderer/world/WorldLayer.d.ts +12 -7
- package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +22 -16
- package/definitions/game/renderer/world/WorldRenderer.d.ts +30 -25
- package/definitions/game/replay/IReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayManager.d.ts +3 -0
- package/definitions/game/resource/IResourcePath.d.ts +1 -1
- package/definitions/game/resource/ResourceLoader.d.ts +2 -1
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/SaveManager.d.ts +4 -2
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -5
- package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/datastorage/FileDataStorage.d.ts +3 -1
- package/definitions/game/save/datastorage/IndexedDbDataStorage.d.ts +2 -1
- package/definitions/game/save/serializer/ISerializer.d.ts +18 -4
- package/definitions/game/save/serializer/Serializer.d.ts +5 -3
- package/definitions/game/save/serializer/StringTokenizer.d.ts +4 -0
- package/definitions/game/save/upgrade/UpgradeGame.d.ts +2 -1
- package/definitions/game/save/upgrade/UpgradePlayer.d.ts +2 -1
- package/definitions/game/steamworks/Steamworks.d.ts +9 -1
- package/definitions/game/ui/IUi.d.ts +2 -1
- package/definitions/game/ui/Ui.d.ts +2 -0
- package/definitions/game/ui/component/ArticleComponent.d.ts +14 -0
- package/definitions/game/ui/component/Component.d.ts +4 -3
- package/definitions/game/ui/component/Dropdown.d.ts +21 -4
- package/definitions/game/ui/component/EnumContextMenu.d.ts +1 -3
- package/definitions/game/ui/component/GroupDropdown.d.ts +1 -1
- package/definitions/game/ui/component/IComponent.d.ts +1 -19
- package/definitions/game/ui/component/SortRow.d.ts +1 -1
- package/definitions/game/ui/component/Text.d.ts +6 -1
- package/definitions/game/ui/component/dropdown/EnumDropdown.d.ts +2 -2
- package/definitions/game/ui/component/dropdown/IslandPortsDropdown.d.ts +21 -0
- package/definitions/game/ui/component/dropdown/ItemDropdown.d.ts +3 -1
- package/definitions/game/ui/input/Bind.d.ts +7 -21
- package/definitions/game/ui/input/Bindable.d.ts +108 -97
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/InputManager.d.ts +1 -0
- package/definitions/game/ui/old/IOldUi.d.ts +5 -4
- package/definitions/game/ui/old/OldUi.d.ts +7 -11
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +56 -20
- package/definitions/game/ui/screen/Screen.d.ts +3 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -3
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +6 -5
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +4 -2
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/IMessages.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/CanvasDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +11 -7
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/CraftingDialog.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/dialog/IMilestonesDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/ISkillsDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/InspectDialog.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +31 -0
- package/definitions/game/ui/screen/screens/game/dialog/IslandsShippingDialog.d.ts +34 -0
- package/definitions/game/ui/screen/screens/game/dialog/MapDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/MessagesEditFiltersDialog.d.ts +7 -0
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/dialog/crafting/RecipeCache.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IIslandsDialog.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IslandsDialog.d.ts +95 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +9 -3
- package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts +1 -2
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +10 -9
- package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +7 -6
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusEffects.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/util/item/ItemStylesheet.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/MovementHandler.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/WalkToTileHandler.d.ts +3 -3
- package/definitions/game/ui/screen/screens/menu/menus/GameEndMenu.d.ts +4 -2
- package/definitions/game/ui/screen/screens/menu/menus/character/Swatch.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModInfoMenu.d.ts +2 -2
- package/definitions/game/ui/tooltip/Tooltip.d.ts +4 -17
- package/definitions/game/utilities/Files.d.ts +0 -1
- package/definitions/game/utilities/Log.d.ts +71 -67
- package/definitions/game/utilities/Version.d.ts +15 -9
- package/definitions/game/utilities/WebWorkerHelpers.d.ts +3 -6
- package/definitions/game/utilities/class/Inject.d.ts +2 -6
- package/definitions/game/utilities/collection/Arrays.d.ts +1 -42
- package/definitions/game/utilities/collection/Tuple.d.ts +53 -0
- package/definitions/game/utilities/collection/map/PriorityMap.d.ts +2 -1
- package/definitions/game/utilities/enum/EnumCursor.d.ts +1 -3
- package/definitions/game/utilities/enum/Enums.d.ts +7 -16
- package/definitions/game/utilities/enum/IEnum.d.ts +2 -1
- package/definitions/game/utilities/generic/GenericManager.d.ts +3 -1
- package/definitions/game/utilities/math/Bound3.d.ts +2 -2
- package/definitions/game/utilities/math/IVector.d.ts +7 -2
- package/definitions/game/utilities/math/Math2.d.ts +66 -0
- package/definitions/game/utilities/math/Range.d.ts +3 -0
- package/definitions/game/utilities/math/Rectangle.d.ts +3 -1
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -0
- package/definitions/game/utilities/object/Objects.d.ts +1 -1
- package/definitions/game/utilities/random/IRandom.d.ts +36 -0
- package/definitions/game/utilities/random/Random.d.ts +20 -54
- package/definitions/game/utilities/random/RandomReference.d.ts +16 -0
- package/definitions/game/utilities/random/RandomUtilities.d.ts +33 -0
- package/definitions/game/utilities/random/RandomValueGenerator.d.ts +3 -3
- package/definitions/game/utilities/random/SeededGenerator.d.ts +37 -0
- package/definitions/game/utilities/random/generators/LegacySeededGenerator.d.ts +21 -0
- package/definitions/game/utilities/random/generators/PCGSeededGenerator.d.ts +34 -0
- package/definitions/game/utilities/random/generators/{RandomItem.d.ts → specific/RandomItem.d.ts} +4 -2
- package/definitions/game/utilities/random/generators/{RandomRange.d.ts → specific/RandomRange.d.ts} +2 -1
- package/definitions/game/utilities/string/Interpolator.d.ts +3 -4
- package/definitions/game/utilities/string/Strings.d.ts +4 -0
- package/definitions/game/utilities/typesglobal/Descriptions.d.ts +1 -3
- package/definitions/game/webWorker/WebWorkerManager.d.ts +4 -3
- package/definitions/hosts/electron/main/interfaces.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/os/os.d.ts +5 -2
- package/definitions/hosts/electron/main/launchOptions.d.ts +3 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
- package/definitions/hosts/shared/ipc/handlers/os/os.d.ts +1 -0
- package/definitions/hosts/shared/ipc/os.d.ts +1 -0
- package/definitions/language-sync/index.d.ts +11 -0
- package/definitions/launcher/App.d.ts +29 -0
- package/definitions/launcher/Init.d.ts +16 -0
- package/definitions/launcher/Production.d.ts +10 -0
- package/definitions/launcher/ui/Article.d.ts +19 -0
- package/definitions/launcher/ui/Button.d.ts +36 -0
- package/definitions/launcher/ui/Component.d.ts +95 -0
- package/definitions/launcher/ui/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/LauncherUI.d.ts +32 -0
- package/definitions/launcher/ui/Section.d.ts +17 -0
- package/definitions/launcher/ui/component/Article.d.ts +22 -0
- package/definitions/launcher/ui/component/Button.d.ts +36 -0
- package/definitions/launcher/ui/component/Component.d.ts +95 -0
- package/definitions/launcher/ui/component/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/component/Section.d.ts +17 -0
- package/definitions/launcher/ui/launcher/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/launcher/FolderSelector.d.ts +63 -0
- package/definitions/launcher/ui/launcher/Mods.d.ts +16 -0
- package/definitions/launcher/ui/launcher/Resources.d.ts +18 -0
- package/definitions/launcher/ui/main/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/main/FolderSelector.d.ts +48 -0
- package/definitions/launcher/ui/main/Mods.d.ts +20 -0
- package/definitions/launcher/ui/main/Resources.d.ts +23 -0
- package/definitions/launcher/utilities/EventManager.d.ts +49 -0
- package/definitions/launcher/utilities/prototype/Apply.d.ts +11 -0
- package/definitions/test/core/application.d.ts +17 -15
- package/definitions/test/core/applicationDom.d.ts +8 -5
- package/definitions/test/core/applicationInteractions.d.ts +16 -13
- package/definitions/test/core/applicationLogger.d.ts +1 -1
- package/definitions/test/core/applicationManager.d.ts +12 -15
- package/definitions/test/core/chromeDriver.d.ts +2 -2
- package/definitions/test/index.d.ts +2 -3
- package/definitions/test/interfaces.d.ts +2 -6
- package/definitions/test/suite/functionalTests/multiplayer/Multiplayer.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/SaveImport.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/Singleplayer.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Actions.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Island.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/KdTree.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/MagicalPropertyManager.spec.d.ts +3 -3
- package/definitions/test/testRunner.d.ts +224 -0
- package/definitions/test/util/helpers.d.ts +12 -0
- package/definitions/test/util/ports.d.ts +11 -0
- package/definitions/test/util/random.d.ts +3 -2
- package/package.json +24 -24
- package/tsconfig.json +7 -7
- package/tsconfig.mod.base.json +44 -44
- package/definitions/game/game/entity/creature/Pathing.d.ts +0 -30
- package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +0 -65
- package/definitions/game/utilities/game/TileHelpers.d.ts +0 -123
- package/definitions/test/util/mochaNUnitReporter.d.ts +0 -38
|
@@ -79,49 +79,50 @@ export declare enum ModRegistrationType {
|
|
|
79
79
|
Dialog = 6,
|
|
80
80
|
Dictionary = 7,
|
|
81
81
|
Doodad = 8,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
82
|
+
DoodadExtra = 9,
|
|
83
|
+
DoodadGroup = 10,
|
|
84
|
+
DoodadTag = 11,
|
|
85
|
+
EntityTag = 12,
|
|
86
|
+
HelpArticle = 13,
|
|
87
|
+
InspectionType = 14,
|
|
88
|
+
InterModRegistration = 15,
|
|
89
|
+
InterModRegistry = 16,
|
|
90
|
+
Interrupt = 17,
|
|
91
|
+
InterruptChoice = 18,
|
|
92
|
+
Item = 19,
|
|
93
|
+
ItemExtra = 20,
|
|
94
|
+
ItemGroup = 21,
|
|
95
|
+
ItemTag = 22,
|
|
96
|
+
Language = 23,
|
|
97
|
+
LanguageExtension = 24,
|
|
98
|
+
Load = 25,
|
|
99
|
+
MagicalProperty = 26,
|
|
100
|
+
MenuBarButton = 27,
|
|
101
|
+
Message = 28,
|
|
102
|
+
MessageSource = 29,
|
|
103
|
+
MusicTrack = 30,
|
|
104
|
+
Note = 31,
|
|
105
|
+
NPC = 32,
|
|
106
|
+
OptionsSection = 33,
|
|
107
|
+
Overlay = 34,
|
|
108
|
+
Packet = 35,
|
|
109
|
+
Prompt = 36,
|
|
110
|
+
QuadrantComponent = 37,
|
|
111
|
+
Quest = 38,
|
|
112
|
+
QuestRequirement = 39,
|
|
113
|
+
Registry = 40,
|
|
114
|
+
Skill = 41,
|
|
115
|
+
SoundEffect = 42,
|
|
116
|
+
Stat = 43,
|
|
117
|
+
StatusEffect = 44,
|
|
118
|
+
Terrain = 45,
|
|
119
|
+
TerrainDecoration = 46,
|
|
120
|
+
TileEvent = 47,
|
|
121
|
+
TileLayerType = 48,
|
|
122
|
+
UsableActions = 49,
|
|
123
|
+
UsableActionType = 50,
|
|
124
|
+
UsableActionTypePlaceholder = 51,
|
|
125
|
+
WorldLayer = 52
|
|
125
126
|
}
|
|
126
127
|
export interface ILanguageRegistration extends IBaseModRegistration {
|
|
127
128
|
type: ModRegistrationType.Language;
|
|
@@ -268,6 +269,10 @@ export interface IItemExtraRegistration extends IBaseModRegistration {
|
|
|
268
269
|
type: ModRegistrationType.ItemExtra;
|
|
269
270
|
name: string;
|
|
270
271
|
}
|
|
272
|
+
export interface IDoodadExtraRegistration extends IBaseModRegistration {
|
|
273
|
+
type: ModRegistrationType.DoodadExtra;
|
|
274
|
+
name: string;
|
|
275
|
+
}
|
|
271
276
|
export interface ICreatureRegistration extends IBaseModRegistration {
|
|
272
277
|
type: ModRegistrationType.Creature;
|
|
273
278
|
name: string;
|
|
@@ -373,7 +378,7 @@ export interface IEntityTagRegistration extends IBaseModRegistration {
|
|
|
373
378
|
export interface IInheritsRegistrationTime {
|
|
374
379
|
useRegistrationTime: ModRegistrationType;
|
|
375
380
|
}
|
|
376
|
-
export type ModRegistration = IActionRegistration | IBindableRegistration | IBiomeRegistration | IBulkRegistration | ICommandRegistration | ICreatureRegistration | IDialogRegistration | IDictionaryRegistration | IDoodadGroupRegistration | IDoodadRegistration | IHelpArticleRegistration | IInspectionTypeRegistration | IInterModRegistration | IInterModRegistryRegistration | IInterruptChoiceRegistration | IInterruptRegistration | IItemGroupRegistration | IItemRegistration | ILanguageExtensionRegistration | ILanguageRegistration | ILoadRegistration | IMagicalPropertyRegistration | IMenuBarButtonRegistration | IMessageRegistration | IMessageSourceRegistration | IMusicTrackRegistration | INoteRegistration | INPCRegistration | IOptionsSectionRegistration | IOverlayRegistration | IPacketRegistration | IPromptRegistration | IQuadrantComponentRegistration | IQuestRegistration | IQuestRequirementRegistration | IRegistryRegistration | ISkillRegistration | ISoundEffectRegistration | IStatRegistration | IStatusEffectRegistration | ITerrainDecorationRegistration | ITerrainRegistration | ITileEventRegistration | ITileLayerTypeRegistration | IUsableActionsRegistration | IUsableActionTypePlaceholderRegistration | IUsableActionTypeRegistration
|
|
381
|
+
export type ModRegistration = IActionRegistration | IBindableRegistration | IBiomeRegistration | IBulkRegistration | ICommandRegistration | ICreatureRegistration | IDialogRegistration | IDictionaryRegistration | IDoodadGroupRegistration | IDoodadRegistration | IDoodadTagRegistration | IEntityTagRegistration | IHelpArticleRegistration | IInspectionTypeRegistration | IInterModRegistration | IInterModRegistryRegistration | IInterruptChoiceRegistration | IInterruptRegistration | IItemGroupRegistration | IItemRegistration | IItemTagRegistration | ILanguageExtensionRegistration | ILanguageRegistration | ILoadRegistration | IMagicalPropertyRegistration | IMenuBarButtonRegistration | IMessageRegistration | IMessageSourceRegistration | IMusicTrackRegistration | INoteRegistration | INPCRegistration | IOptionsSectionRegistration | IOverlayRegistration | IPacketRegistration | IPromptRegistration | IQuadrantComponentRegistration | IQuestRegistration | IQuestRequirementRegistration | IRegistryRegistration | ISkillRegistration | ISoundEffectRegistration | IStatRegistration | IStatusEffectRegistration | ITerrainDecorationRegistration | ITerrainRegistration | ITileEventRegistration | ITileLayerTypeRegistration | IUsableActionsRegistration | IUsableActionTypePlaceholderRegistration | IUsableActionTypeRegistration;
|
|
377
382
|
export declare const SYMBOL_SUPER_REGISTRY: unique symbol;
|
|
378
383
|
declare module Register {
|
|
379
384
|
/**
|
|
@@ -381,21 +386,21 @@ declare module Register {
|
|
|
381
386
|
*
|
|
382
387
|
* The decorated property will be injected with the constructed instance of the provided registry class.
|
|
383
388
|
*/
|
|
384
|
-
export function registry(cls: new (upperRegistry: any) => any): <K extends string | number | symbol, T extends
|
|
389
|
+
export function registry(cls: new (upperRegistry: any) => any): <K extends string | number | symbol, T extends Record<K, object>>(target: T, key: K) => void;
|
|
385
390
|
/**
|
|
386
391
|
* Registers a language.
|
|
387
392
|
* @param instance The language instance.
|
|
388
393
|
*
|
|
389
394
|
* The decorated property will be injected with the provided language instance.
|
|
390
395
|
*/
|
|
391
|
-
export function language<L extends Language>(instance: L): <K extends string | number | symbol, T extends
|
|
396
|
+
export function language<L extends Language>(instance: L): <K extends string | number | symbol, T extends Record<K, L>>(target: T, key: K) => void;
|
|
392
397
|
/**
|
|
393
398
|
* Registers a language extension.
|
|
394
399
|
* @param instance The language extension instance.
|
|
395
400
|
*
|
|
396
401
|
* The decorated property will be injected with the provided language extension instance.
|
|
397
402
|
*/
|
|
398
|
-
export function languageExtension<L extends LanguageExtension>(instance: L): <K extends string | number | symbol, T extends
|
|
403
|
+
export function languageExtension<L extends LanguageExtension>(instance: L): <K extends string | number | symbol, T extends Record<K, L>>(target: T, key: K) => void;
|
|
399
404
|
/**
|
|
400
405
|
* Registers a music track.
|
|
401
406
|
* @param name The name of the music track.
|
|
@@ -403,7 +408,7 @@ declare module Register {
|
|
|
403
408
|
*
|
|
404
409
|
* The decorated property will be injected with the id of the registered music track.
|
|
405
410
|
*/
|
|
406
|
-
export function musicTrack(name: string): <K extends string | number | symbol, T extends
|
|
411
|
+
export function musicTrack(name: string): <K extends string | number | symbol, T extends Record<K, Music>>(target: T, key: K) => void;
|
|
407
412
|
/**
|
|
408
413
|
* Registers a sound effect.
|
|
409
414
|
* @param name The name of the sound effect.
|
|
@@ -411,21 +416,21 @@ declare module Register {
|
|
|
411
416
|
*
|
|
412
417
|
* The decorated property will be injected with the id of the registered sound effect.
|
|
413
418
|
*/
|
|
414
|
-
export function soundEffect(name: string, variations?: number): <K extends string | number | symbol, T extends
|
|
419
|
+
export function soundEffect(name: string, variations?: number): <K extends string | number | symbol, T extends Record<K, SfxType>>(target: T, key: K) => void;
|
|
415
420
|
/**
|
|
416
421
|
* Registers a packet.
|
|
417
422
|
* @param cls The packet class.
|
|
418
423
|
*
|
|
419
424
|
* The decorated property will be injected with the passed packet class.
|
|
420
425
|
*/
|
|
421
|
-
export function packet<C extends IPacketClass>(cls: C): <K extends string | number | symbol, T extends
|
|
426
|
+
export function packet<C extends IPacketClass>(cls: C): <K extends string | number | symbol, T extends Record<K, C>>(target: T, key: K) => void;
|
|
422
427
|
/**
|
|
423
428
|
* Registers an NPC.
|
|
424
429
|
* @param cls The NPC class.
|
|
425
430
|
*
|
|
426
431
|
* The decorated property will be injected with the NPCType of the registered NPC.
|
|
427
432
|
*/
|
|
428
|
-
export function npc<C extends INPCClass>(name: string, cls: C): <K extends string | number | symbol, T extends
|
|
433
|
+
export function npc<C extends INPCClass>(name: string, cls: C): <K extends string | number | symbol, T extends Record<K, NPCType>>(target: T, key: K) => void;
|
|
429
434
|
/**
|
|
430
435
|
* Registers a help article.
|
|
431
436
|
* @param name The name of the help article.
|
|
@@ -433,7 +438,7 @@ declare module Register {
|
|
|
433
438
|
*
|
|
434
439
|
* The decorated property will be injected with the id of the registered help article.
|
|
435
440
|
*/
|
|
436
|
-
export function helpArticle(name: string, description: IHelpArticle): <K extends string | number | symbol, T extends
|
|
441
|
+
export function helpArticle(name: string, description: IHelpArticle): <K extends string | number | symbol, T extends Record<K, HelpArticle>>(target: T, key: K) => void;
|
|
437
442
|
/**
|
|
438
443
|
* Registers a note.
|
|
439
444
|
* @param name The name of the note.
|
|
@@ -441,7 +446,7 @@ declare module Register {
|
|
|
441
446
|
*
|
|
442
447
|
* The decorated property will be injected with the id of the registered note.
|
|
443
448
|
*/
|
|
444
|
-
export function note(name: string, description?: INoteDescription): <K extends string | number | symbol, T extends
|
|
449
|
+
export function note(name: string, description?: INoteDescription): <K extends string | number | symbol, T extends Record<K, Note>>(target: T, key: K) => void;
|
|
445
450
|
/**
|
|
446
451
|
* Registers a skill.
|
|
447
452
|
* @param name The name of the skill.
|
|
@@ -449,7 +454,7 @@ declare module Register {
|
|
|
449
454
|
*
|
|
450
455
|
* The decorated property will be injected with the id of the registered skill.
|
|
451
456
|
*/
|
|
452
|
-
export function skill(name: string, description?: ISkillDescription): <K extends string | number | symbol, T extends
|
|
457
|
+
export function skill(name: string, description?: ISkillDescription): <K extends string | number | symbol, T extends Record<K, SkillType>>(target: T, key: K) => void;
|
|
453
458
|
/**
|
|
454
459
|
* Registers a stat.
|
|
455
460
|
* @param name The name of the stat.
|
|
@@ -457,7 +462,7 @@ declare module Register {
|
|
|
457
462
|
*
|
|
458
463
|
* The decorated property will be injected with the id of the registered stat.
|
|
459
464
|
*/
|
|
460
|
-
export function stat(name: string, description?: IStatDisplayDescription): <K extends string | number | symbol, T extends
|
|
465
|
+
export function stat(name: string, description?: IStatDisplayDescription): <K extends string | number | symbol, T extends Record<K, Stat>>(target: T, key: K) => void;
|
|
461
466
|
/**
|
|
462
467
|
* Registers a status effect.
|
|
463
468
|
* @param name The name of the status effect.
|
|
@@ -465,7 +470,7 @@ declare module Register {
|
|
|
465
470
|
*
|
|
466
471
|
* The decorated property will be injected with the id of the registered status effect.
|
|
467
472
|
*/
|
|
468
|
-
export function statusEffect(name: string, handlerClass: StatusEffectClass): <K extends string | number | symbol, T extends
|
|
473
|
+
export function statusEffect(name: string, handlerClass: StatusEffectClass): <K extends string | number | symbol, T extends Record<K, StatusType>>(target: T, key: K) => void;
|
|
469
474
|
/**
|
|
470
475
|
* Registers an item.
|
|
471
476
|
* @param name The name of the item.
|
|
@@ -473,7 +478,7 @@ declare module Register {
|
|
|
473
478
|
*
|
|
474
479
|
* The decorated property will be injected with the id of the registered item.
|
|
475
480
|
*/
|
|
476
|
-
export function item(name: string, description?: IItemRegistrationDescription): <K extends string | number | symbol, T extends
|
|
481
|
+
export function item(name: string, description?: IItemRegistrationDescription): <K extends string | number | symbol, T extends Record<K, ItemType>>(target: T, key: K) => void;
|
|
477
482
|
/**
|
|
478
483
|
* Registers a biome.
|
|
479
484
|
* @param name The name of the biome.
|
|
@@ -481,7 +486,7 @@ declare module Register {
|
|
|
481
486
|
*
|
|
482
487
|
* The decorated property will be injected with the id of the registered biome.
|
|
483
488
|
*/
|
|
484
|
-
export function biome(name: string, description: IBiomeDescription): <K extends string | number | symbol, T extends
|
|
489
|
+
export function biome(name: string, description: IBiomeDescription): <K extends string | number | symbol, T extends Record<K, BiomeType>>(target: T, key: K) => void;
|
|
485
490
|
/**
|
|
486
491
|
* Registers a creature.
|
|
487
492
|
* @param name The name of the creature.
|
|
@@ -489,7 +494,7 @@ declare module Register {
|
|
|
489
494
|
*
|
|
490
495
|
* The decorated property will be injected with the id of the registered creature.
|
|
491
496
|
*/
|
|
492
|
-
export function creature(name: string, description: ICreatureDescription, corpseDescription?: ICorpseDescription): <K extends string | number | symbol, T extends
|
|
497
|
+
export function creature(name: string, description: ICreatureDescription, corpseDescription?: ICorpseDescription): <K extends string | number | symbol, T extends Record<K, CreatureType>>(target: T, key: K) => void;
|
|
493
498
|
/**
|
|
494
499
|
* Registers a terrain.
|
|
495
500
|
* @param name The name of the terrain.
|
|
@@ -497,14 +502,14 @@ declare module Register {
|
|
|
497
502
|
*
|
|
498
503
|
* The decorated property will be injected with the id of the registered terrain.
|
|
499
504
|
*/
|
|
500
|
-
export function terrain(name: string, description?: ITerrainRegistrationDescription): <K extends string | number | symbol, T extends
|
|
505
|
+
export function terrain(name: string, description?: ITerrainRegistrationDescription): <K extends string | number | symbol, T extends Record<K, TerrainType>>(target: T, key: K) => void;
|
|
501
506
|
/**
|
|
502
507
|
* Registers a terrain decoration.
|
|
503
508
|
* @param description The definition of the terrain decoration.
|
|
504
509
|
*
|
|
505
510
|
* The decorated property will be injected with the id of the registered terrain.
|
|
506
511
|
*/
|
|
507
|
-
export function terrainDecoration(name: string, description: ITerrainDecorationBase): <K extends string | number | symbol, T extends
|
|
512
|
+
export function terrainDecoration(name: string, description: ITerrainDecorationBase): <K extends string | number | symbol, T extends Record<K, TerrainDecoration>>(target: T, key: K) => void;
|
|
508
513
|
/**
|
|
509
514
|
* Registers a doodad.
|
|
510
515
|
* @param name The name of the doodad.
|
|
@@ -512,7 +517,7 @@ declare module Register {
|
|
|
512
517
|
*
|
|
513
518
|
* The decorated property will be injected with the id of the registered doodad.
|
|
514
519
|
*/
|
|
515
|
-
export function doodad(name: string, description?: IDoodadDescription): <K extends string | number | symbol, T extends
|
|
520
|
+
export function doodad(name: string, description?: IDoodadDescription): <K extends string | number | symbol, T extends Record<K, DoodadType>>(target: T, key: K) => void;
|
|
516
521
|
/**
|
|
517
522
|
* Registers a tile event.
|
|
518
523
|
* @param name The name of the tile event.
|
|
@@ -520,7 +525,7 @@ declare module Register {
|
|
|
520
525
|
*
|
|
521
526
|
* The decorated property will be injected with the id of the registered tile event.
|
|
522
527
|
*/
|
|
523
|
-
export function tileEvent(name: string, description?: ITileEventDescription): <K extends string | number | symbol, T extends
|
|
528
|
+
export function tileEvent(name: string, description?: ITileEventDescription): <K extends string | number | symbol, T extends Record<K, TileEventType>>(target: T, key: K) => void;
|
|
524
529
|
/**
|
|
525
530
|
* Registers a dialog.
|
|
526
531
|
* @param name The name of the dialog.
|
|
@@ -529,7 +534,7 @@ declare module Register {
|
|
|
529
534
|
*
|
|
530
535
|
* The decorated property will be injected with the id of the registered dialog.
|
|
531
536
|
*/
|
|
532
|
-
export function dialog(name: string, description: IDialogDescription, cls: new (id: number) => Dialog): <K extends string | number | symbol, T extends
|
|
537
|
+
export function dialog(name: string, description: IDialogDescription, cls: new (id: number) => Dialog): <K extends string | number | symbol, T extends Record<K, DialogId>>(target: T, key: K) => void;
|
|
533
538
|
/**
|
|
534
539
|
* Registers a quadrant component.
|
|
535
540
|
* @param name The name of this component.
|
|
@@ -544,7 +549,7 @@ declare module Register {
|
|
|
544
549
|
*
|
|
545
550
|
* The decorated property will be injected with the id of the registered note.
|
|
546
551
|
*/
|
|
547
|
-
export function bindable(name: string, ...defaultBindings: Binding[]): <K extends string | number | symbol, T extends
|
|
552
|
+
export function bindable(name: string, ...defaultBindings: Binding[]): <K extends string | number | symbol, T extends Record<K, Bindable>>(target: T, key: K) => void;
|
|
548
553
|
/**
|
|
549
554
|
* Registers a dictionary.
|
|
550
555
|
* @param name The name of the dictionary.
|
|
@@ -552,7 +557,7 @@ declare module Register {
|
|
|
552
557
|
*
|
|
553
558
|
* The decorated property will be injected with the id of the registered dictionary.
|
|
554
559
|
*/
|
|
555
|
-
export function dictionary(name: string, dictionaryEnum: any): <K extends string | number | symbol, T extends
|
|
560
|
+
export function dictionary(name: string, dictionaryEnum: any): <K extends string | number | symbol, T extends Record<K, Dictionary>>(target: T, key: K) => void;
|
|
556
561
|
/**
|
|
557
562
|
* Registers a message.
|
|
558
563
|
* @param name The name of the message.
|
|
@@ -562,21 +567,21 @@ declare module Register {
|
|
|
562
567
|
* Note: The method does not support passing a translated English string. To translate your message, create a language
|
|
563
568
|
* file that extends English.
|
|
564
569
|
*/
|
|
565
|
-
export function message(name: string): <K extends string | number | symbol, T extends
|
|
570
|
+
export function message(name: string): <K extends string | number | symbol, T extends Record<K, Message>>(target: T, key: K) => void;
|
|
566
571
|
/**
|
|
567
572
|
* Registers a prompt.
|
|
568
573
|
* @param name The name of the prompt.
|
|
569
574
|
*
|
|
570
575
|
* The decorated property will be injected with the id of the registered prompt.
|
|
571
576
|
*/
|
|
572
|
-
export function prompt(name: string): <K extends string | number | symbol, T extends
|
|
577
|
+
export function prompt(name: string): <K extends string | number | symbol, T extends Record<K, Prompt>>(target: T, key: K) => void;
|
|
573
578
|
/**
|
|
574
579
|
* Registers an interrupt choice.
|
|
575
580
|
* @param name The name of the interrupt choice.
|
|
576
581
|
*
|
|
577
582
|
* The decorated property will be injected with the id of the registered interrupt choice.
|
|
578
583
|
*/
|
|
579
|
-
export function interruptChoice(name: string): <K extends string | number | symbol, T extends
|
|
584
|
+
export function interruptChoice(name: string): <K extends string | number | symbol, T extends Record<K, InterruptChoice>>(target: T, key: K) => void;
|
|
580
585
|
/**
|
|
581
586
|
* Registers a load type.
|
|
582
587
|
* @param name The name of the load type.
|
|
@@ -584,87 +589,87 @@ declare module Register {
|
|
|
584
589
|
*
|
|
585
590
|
* The decorated property will be injected with the id of the registered load type.
|
|
586
591
|
*/
|
|
587
|
-
export function load(name: string, description: ILoadingDescription<any[]>): <K extends string | number | symbol, T extends
|
|
592
|
+
export function load(name: string, description: ILoadingDescription<any[]>): <K extends string | number | symbol, T extends Record<K, Message>>(target: T, key: K) => void;
|
|
588
593
|
/**
|
|
589
594
|
* Registers a message source.
|
|
590
595
|
* @param name The name of the message source.
|
|
591
596
|
*
|
|
592
597
|
* The decorated property will be injected with the id of the registered message source.
|
|
593
598
|
*/
|
|
594
|
-
export function messageSource(name: string): <K extends string | number | symbol, T extends
|
|
599
|
+
export function messageSource(name: string): <K extends string | number | symbol, T extends Record<K, Source>>(target: T, key: K) => void;
|
|
595
600
|
/**
|
|
596
601
|
* Registers an overlay.
|
|
597
602
|
* @param description The definition of the overlay.
|
|
598
603
|
*/
|
|
599
|
-
export function overlay(name: string, description?: IOverlayDescription): <K extends string | number | symbol, T extends
|
|
604
|
+
export function overlay(name: string, description?: IOverlayDescription): <K extends string | number | symbol, T extends Record<K, OverlayType>>(target: T, key: K) => void;
|
|
600
605
|
/**
|
|
601
606
|
* Registers an inspection type, which will appear in tile tooltips or the inspect dialog.
|
|
602
607
|
* @param handlerClass The class for the handler of the inspection type.
|
|
603
608
|
*/
|
|
604
|
-
export function inspectionType(name: string, handlerClass: InspectionClass): <K extends string | number | symbol, T extends
|
|
609
|
+
export function inspectionType(name: string, handlerClass: InspectionClass): <K extends string | number | symbol, T extends Record<K, InspectType>>(target: T, key: K) => void;
|
|
605
610
|
/**
|
|
606
611
|
* Registers a menu bar button.
|
|
607
612
|
* @param description The definition of the menu bar button.
|
|
608
613
|
*/
|
|
609
|
-
export function menuBarButton(name: string, description: IMenuBarButtonDescription): <K extends string | number | symbol, T extends
|
|
614
|
+
export function menuBarButton(name: string, description: IMenuBarButtonDescription): <K extends string | number | symbol, T extends Record<K, MenuBarButtonType>>(target: T, key: K) => void;
|
|
610
615
|
/**
|
|
611
616
|
* Registers an item group.
|
|
612
617
|
* @param description The definition of the item group.
|
|
613
618
|
*/
|
|
614
|
-
export function itemGroup(name: string, description: IItemGroupDescription): <K extends string | number | symbol, T extends
|
|
619
|
+
export function itemGroup(name: string, description: IItemGroupDescription): <K extends string | number | symbol, T extends Record<K, ItemTypeGroup>>(target: T, key: K) => void;
|
|
615
620
|
/**
|
|
616
621
|
* Registers a doodad group.
|
|
617
622
|
* @param description The definition of the doodad group.
|
|
618
623
|
*/
|
|
619
|
-
export function doodadGroup(name: string, description: IDoodadGroupDescription): <K extends string | number | symbol, T extends
|
|
624
|
+
export function doodadGroup(name: string, description: IDoodadGroupDescription): <K extends string | number | symbol, T extends Record<K, DoodadTypeGroup>>(target: T, key: K) => void;
|
|
620
625
|
/**
|
|
621
626
|
* Registers a world layer.
|
|
622
627
|
*/
|
|
623
|
-
export function worldLayer(name: string): <K extends string | number | symbol, T extends
|
|
628
|
+
export function worldLayer(name: string): <K extends string | number | symbol, T extends Record<K, WorldZ>>(target: T, key: K) => void;
|
|
624
629
|
/**
|
|
625
630
|
* Registers a world renderer layer.
|
|
626
631
|
*/
|
|
627
|
-
export function tileLayer(name: string): <K extends string | number | symbol, T extends
|
|
632
|
+
export function tileLayer(name: string): <K extends string | number | symbol, T extends Record<K, TileLayerType>>(target: T, key: K) => void;
|
|
628
633
|
/**
|
|
629
634
|
* Registers a quest.
|
|
630
635
|
* @param description The definition of the quest.
|
|
631
636
|
*/
|
|
632
|
-
export function quest(name: string, description: Quest): <K extends string | number | symbol, T extends
|
|
637
|
+
export function quest(name: string, description: Quest): <K extends string | number | symbol, T extends Record<K, QuestType>>(target: T, key: K) => void;
|
|
633
638
|
/**
|
|
634
639
|
* Registers a quest requirement.
|
|
635
640
|
* @param description The definition of the quest requirement.
|
|
636
641
|
*/
|
|
637
|
-
export function questRequirement(name: string, description: QuestRequirement<any, any>): <K extends string | number | symbol, T extends
|
|
642
|
+
export function questRequirement(name: string, description: QuestRequirement<any, any>): <K extends string | number | symbol, T extends Record<K, QuestRequirementType>>(target: T, key: K) => void;
|
|
638
643
|
/**
|
|
639
644
|
* Registers an action.
|
|
640
645
|
* @param description The definition of this action.
|
|
641
646
|
*/
|
|
642
|
-
export function action(name: string, description?: IActionDescription): <K extends string | number | symbol, T extends
|
|
647
|
+
export function action(name: string, description?: IActionDescription): <K extends string | number | symbol, T extends Record<K, ActionType>>(target: T, key: K) => void;
|
|
643
648
|
/**
|
|
644
649
|
* Registers a magical property.
|
|
645
650
|
* @param description The definition of this magical property.
|
|
646
651
|
*
|
|
647
652
|
* See — [Adding Magical Properties](https://github.com/WaywardGame/types/wiki/Adding-Magical-Properties)
|
|
648
653
|
*/
|
|
649
|
-
export function magicalProperty(name: string, description: IMagicalPropertyDescription): <K extends string | number | symbol, T extends
|
|
654
|
+
export function magicalProperty(name: string, description: IMagicalPropertyDescription): <K extends string | number | symbol, T extends Record<K, MagicalPropertyType>>(target: T, key: K) => void;
|
|
650
655
|
/**
|
|
651
656
|
* Registers an item tag.
|
|
652
657
|
*/
|
|
653
|
-
export function itemTag(name: string): <K extends string | number | symbol, T extends
|
|
658
|
+
export function itemTag(name: string): <K extends string | number | symbol, T extends Record<K, ItemTag>>(target: T, key: K) => void;
|
|
654
659
|
/**
|
|
655
660
|
* Registers a doodad tag.
|
|
656
661
|
*/
|
|
657
|
-
export function doodadTag(name: string): <K extends string | number | symbol, T extends
|
|
662
|
+
export function doodadTag(name: string): <K extends string | number | symbol, T extends Record<K, DoodadTag>>(target: T, key: K) => void;
|
|
658
663
|
/**
|
|
659
664
|
* Registers an entity tag.
|
|
660
665
|
*/
|
|
661
|
-
export function entityTag(name: string): <K extends string | number | symbol, T extends
|
|
666
|
+
export function entityTag(name: string): <K extends string | number | symbol, T extends Record<K, EntityTag>>(target: T, key: K) => void;
|
|
662
667
|
/**
|
|
663
668
|
* Registers a "usable" action generator — actions that appear in the UI, and can be slotted in the action bar.
|
|
664
669
|
* @param set Where to append the usable actions
|
|
665
670
|
* @param registrationHandler The handler that will register the new actions
|
|
666
671
|
*/
|
|
667
|
-
export function usableActions<SET extends UsableActionSet>(name: string, set: SET, registrationHandler: (registrar: UsableActionRegistrar, ...args: (typeof usableActionSets)[SET] extends UsableActionGenerator<infer ARGS> ? ARGS : []) => any): <K extends string | number | symbol, T extends
|
|
672
|
+
export function usableActions<SET extends UsableActionSet>(name: string, set: SET, registrationHandler: (registrar: UsableActionRegistrar, ...args: (typeof usableActionSets)[SET] extends UsableActionGenerator<infer ARGS> ? ARGS : []) => any): <K extends string | number | symbol, T extends Record<K, UsableActionGenerator<[]>>>(target: T, key: K) => void;
|
|
668
673
|
/**
|
|
669
674
|
* **Trying to register an action with the UI?** You may be looking for `@Register.`{@link usableActions}
|
|
670
675
|
*
|
|
@@ -677,7 +682,7 @@ declare module Register {
|
|
|
677
682
|
* - If your definition doesn't have a custom `icon` provided, it will automatically attempt to use the icon at
|
|
678
683
|
* `<your mod directory>/static/image/ui/icons/action/mod<your mod name><this registration name>.png`.
|
|
679
684
|
*/
|
|
680
|
-
export function usableActionType(name: string): <K extends string | number | symbol, T extends
|
|
685
|
+
export function usableActionType(name: string): <K extends string | number | symbol, T extends Record<K, UsableActionType>>(target: T, key: K) => void;
|
|
681
686
|
/**
|
|
682
687
|
* **Trying to register an action with the UI?** You may be looking for `@Register.`{@link usableActions}
|
|
683
688
|
*
|
|
@@ -687,9 +692,9 @@ declare module Register {
|
|
|
687
692
|
* IE: If a UsableAction definition's `icon` property is this placeholder ID's name, it will automatically attempt to use the icon at
|
|
688
693
|
* `<your mod directory>/static/image/ui/icons/action/mod<your mod name><this registration name>.png`.
|
|
689
694
|
*/
|
|
690
|
-
export function usableActionTypePlaceholder(name: string): <K extends string | number | symbol, T extends
|
|
691
|
-
export function interModRegistry<V>(name: string): <K extends string | number | symbol, T extends
|
|
692
|
-
export function interModRegistration<V>(modName: string, registryName: string, value: V): <K extends string | number | symbol, T extends
|
|
695
|
+
export function usableActionTypePlaceholder(name: string): <K extends string | number | symbol, T extends Record<K, UsableActionType>>(target: T, key: K) => void;
|
|
696
|
+
export function interModRegistry<V>(name: string): <K extends string | number | symbol, T extends Record<K, InterModRegistry<V>>>(target: T, key: K) => void;
|
|
697
|
+
export function interModRegistration<V>(modName: string, registryName: string, value: V): <K extends string | number | symbol, T extends Record<K, InterModRegistration<V>>>(target: T, key: K) => void;
|
|
693
698
|
type ExtractRegisteredType<F> = F extends (...args: any) => infer F2 ? F2 extends (t: infer T, k: infer K) => any ? T[Extract<K, keyof T>] : never : never;
|
|
694
699
|
/**
|
|
695
700
|
* Registers any number of registrations of a single type. Any other registration type can be used.
|
|
@@ -709,7 +714,7 @@ declare module Register {
|
|
|
709
714
|
* }
|
|
710
715
|
* ```
|
|
711
716
|
*/
|
|
712
|
-
export function bulk<REG_TYPE extends keyof typeof Register, REG extends AnyFunction = (typeof Register)[REG_TYPE]>(type: REG_TYPE, ...entries: Array<Parameters<REG>>): <K extends string | number | symbol, T extends
|
|
717
|
+
export function bulk<REG_TYPE extends keyof typeof Register, REG extends AnyFunction = (typeof Register)[REG_TYPE]>(type: REG_TYPE, ...entries: Array<Parameters<REG>>): <K extends string | number | symbol, T extends Record<K, ExtractRegisteredType<REG>[]>>(target: T, key: K) => void;
|
|
713
718
|
/**
|
|
714
719
|
* Registers a command.
|
|
715
720
|
* @param name The name of this command (what players will type to use it, eg: `/heal`).
|
|
@@ -12,8 +12,9 @@ import { LobbyType } from "@hosts/shared/interfaces";
|
|
|
12
12
|
import type { ICharacter } from "game/entity/IHuman";
|
|
13
13
|
import type { PlayerState } from "game/entity/player/IPlayer";
|
|
14
14
|
import type Player from "game/entity/player/Player";
|
|
15
|
-
import type { ISynchronizeState } from "game/IGame";
|
|
15
|
+
import type { ISynchronizeState, PauseSource } from "game/IGame";
|
|
16
16
|
import { TurnMode } from "game/IGame";
|
|
17
|
+
import type { Load } from "game/meta/Loading";
|
|
17
18
|
import type { Milestone } from "game/milestones/IMilestone";
|
|
18
19
|
import type { GameMode, IGameOptions } from "game/options/IGameOptions";
|
|
19
20
|
import type { IMatchmakingInfo } from "multiplayer/matchmaking/IMatchmaking";
|
|
@@ -213,3 +214,15 @@ export interface IJoinServerOptions {
|
|
|
213
214
|
automaticallyRetry: boolean;
|
|
214
215
|
enableSteamNetworkConnections: boolean;
|
|
215
216
|
}
|
|
217
|
+
export interface IMultiplayerRunSafelyOptions {
|
|
218
|
+
isSynced: boolean;
|
|
219
|
+
pauseGame?: PauseSource;
|
|
220
|
+
pauseIncomingPacketProcessing?: boolean;
|
|
221
|
+
showLoadingScreen?: {
|
|
222
|
+
load: Load;
|
|
223
|
+
args?: any[];
|
|
224
|
+
excludeTargets?: PacketTarget;
|
|
225
|
+
disableDelayAfter?: boolean;
|
|
226
|
+
hostInitiatesHide?: boolean;
|
|
227
|
+
};
|
|
228
|
+
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
12
|
import Player from "game/entity/player/Player";
|
|
13
13
|
import type Island from "game/island/Island";
|
|
14
|
-
import type { IJoinServerOptions, IMultiplayerEvents, IMultiplayerOptions, PacketTarget, ServerInfo } from "multiplayer/IMultiplayer";
|
|
15
|
-
import { DisconnectReason, JoinServerRetryReason, MultiplayerSyncCheck,
|
|
14
|
+
import type { IJoinServerOptions, IMultiplayerEvents, IMultiplayerOptions, IMultiplayerRunSafelyOptions, PacketTarget, ServerInfo } from "multiplayer/IMultiplayer";
|
|
15
|
+
import { DisconnectReason, JoinServerRetryReason, MultiplayerSyncCheck, MultiplayerSyncCheckLevel, UnableToJoinReason } from "multiplayer/IMultiplayer";
|
|
16
16
|
import type { IMatchmakingInfo } from "multiplayer/matchmaking/IMatchmaking";
|
|
17
17
|
import type { IConnection } from "multiplayer/networking/IConnection";
|
|
18
18
|
import type { IPacket } from "multiplayer/packets/IPacket";
|
|
@@ -146,10 +146,15 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
146
146
|
markCurrentProcessingPacket(packetId: number, processing: boolean): void;
|
|
147
147
|
clearSyncPacketWaiting(packet: IPacket, wait: number): void;
|
|
148
148
|
clearSyncPacketsWaiting(waitId?: string): void;
|
|
149
|
-
pauseIncomingPacketProcessing
|
|
149
|
+
private pauseIncomingPacketProcessing;
|
|
150
|
+
/**
|
|
151
|
+
* Execute an async function while applying some temporary state changes
|
|
152
|
+
*/
|
|
153
|
+
runSafely<T = void>(executor: () => Promise<T>, options: IMultiplayerRunSafelyOptions): Promise<T>;
|
|
150
154
|
updatePlayerId(oldPid: number, newPid: number): void;
|
|
151
155
|
suppressSyncChecks(suppress: boolean): void;
|
|
152
|
-
syncGameState(): void
|
|
156
|
+
syncGameState(): Promise<void>;
|
|
157
|
+
isKeepAliveTimeoutPaused(): boolean;
|
|
153
158
|
pauseKeepAliveTimeouts(): void;
|
|
154
159
|
resumeKeepAliveTimeouts(): void;
|
|
155
160
|
updateGlobalServerDirectory(): void;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import type { Game } from "game/Game";
|
|
11
12
|
import type { ISshSession, ISshStream } from "multiplayer/dedicatedServer/ssh/ISsh";
|
|
12
13
|
import type { ISshCommandManager } from "multiplayer/dedicatedServer/ssh/ISshCommandManager";
|
|
13
14
|
import type ISshShell from "multiplayer/dedicatedServer/ssh/ISshShell";
|
|
@@ -16,7 +17,7 @@ export default class DefaultShell extends Shell implements ISshShell {
|
|
|
16
17
|
private readonly username;
|
|
17
18
|
private readonly serverName;
|
|
18
19
|
readonly sshCommandManager: ISshCommandManager;
|
|
19
|
-
constructor(session: ISshSession, stream: ISshStream, username: string, serverName: string);
|
|
20
|
+
constructor(session: ISshSession, stream: ISshStream, game: Game, username: string, serverName: string);
|
|
20
21
|
/**
|
|
21
22
|
* Writes the marker
|
|
22
23
|
*/
|
|
@@ -8,9 +8,11 @@
|
|
|
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 { ISshSession, ISshStream } from "multiplayer/dedicatedServer/ssh/ISsh";
|
|
12
13
|
import type { ISshCommandManager } from "multiplayer/dedicatedServer/ssh/ISshCommandManager";
|
|
13
14
|
export default interface ISshShell {
|
|
15
|
+
readonly game: Game;
|
|
14
16
|
readonly session: ISshSession;
|
|
15
17
|
readonly stream: ISshStream;
|
|
16
18
|
readonly sshCommandManager?: ISshCommandManager;
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { IMessage } from "game/entity/player/IMessageManager";
|
|
12
12
|
import type Player from "game/entity/player/Player";
|
|
13
|
+
import type { Game } from "game/Game";
|
|
13
14
|
import type { ISshSession, ISshStream } from "multiplayer/dedicatedServer/ssh/ISsh";
|
|
14
15
|
export default abstract class Shell {
|
|
15
16
|
readonly session: ISshSession;
|
|
16
17
|
readonly stream: ISshStream;
|
|
18
|
+
readonly game: Game;
|
|
17
19
|
protected active: boolean;
|
|
18
20
|
protected line: string;
|
|
19
21
|
protected cursor: number;
|
|
@@ -21,7 +23,7 @@ export default abstract class Shell {
|
|
|
21
23
|
private history;
|
|
22
24
|
private historyCursor;
|
|
23
25
|
private watchMessages;
|
|
24
|
-
constructor(session: ISshSession, stream: ISshStream);
|
|
26
|
+
constructor(session: ISshSession, stream: ISshStream, game: Game);
|
|
25
27
|
start(): Promise<boolean>;
|
|
26
28
|
stop(): void;
|
|
27
29
|
allowHistory(): void;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type * as ssh2 from "ssh2";
|
|
12
12
|
import type { IFileSystem } from "@hosts/shared/ipc/fileSystem";
|
|
13
|
+
import type { Game } from "game/Game";
|
|
13
14
|
export interface ISshServerOptions {
|
|
14
15
|
ssh2: typeof ssh2;
|
|
15
16
|
crypto: any;
|
|
@@ -21,4 +22,4 @@ export interface ISshServerOptions {
|
|
|
21
22
|
username: string;
|
|
22
23
|
password?: string;
|
|
23
24
|
}
|
|
24
|
-
export declare function start(options: ISshServerOptions): Promise<void>;
|
|
25
|
+
export declare function start(game: Game, options: ISshServerOptions): Promise<void>;
|
|
@@ -41,6 +41,7 @@ export declare class SmartConnection extends Connection {
|
|
|
41
41
|
protected onClosed(): void;
|
|
42
42
|
addKeepAliveTimeout(): void;
|
|
43
43
|
sendKeepAlive(): void;
|
|
44
|
+
clearTimeout(): boolean;
|
|
44
45
|
send(data: Uint8Array, byteOffset: number, length?: number): boolean;
|
|
45
46
|
processMatchmakingMessage(message: MatchmakingMessageData): Promise<boolean>;
|
|
46
47
|
private trySteamNetwork;
|
|
@@ -19,6 +19,7 @@ import type Player from "game/entity/player/Player";
|
|
|
19
19
|
import type Island from "game/island/Island";
|
|
20
20
|
import type { IContainer } from "game/item/IItem";
|
|
21
21
|
import type Item from "game/item/Item";
|
|
22
|
+
import type Tile from "game/tile/Tile";
|
|
22
23
|
import type TileEvent from "game/tile/TileEvent";
|
|
23
24
|
import type { IConnection } from "multiplayer/networking/IConnection";
|
|
24
25
|
import type { PacketType } from "multiplayer/packets/IPacket";
|
|
@@ -80,7 +81,7 @@ export default abstract class BasePacket {
|
|
|
80
81
|
protected writeNPC(value: NPC): void;
|
|
81
82
|
protected readCorpse(): Corpse | undefined;
|
|
82
83
|
protected writeCorpse(value: Corpse): void;
|
|
83
|
-
protected readEntity(): Player | Creature | NPC | undefined;
|
|
84
|
+
protected readEntity(): Player | Creature | NPC | Doodad | TileEvent | Corpse | Item | undefined;
|
|
84
85
|
protected writeEntity(value: Entity): undefined;
|
|
85
86
|
protected writeHuman(value: Human): void;
|
|
86
87
|
protected readHuman(): Player | NPC | undefined;
|
|
@@ -96,6 +97,10 @@ export default abstract class BasePacket {
|
|
|
96
97
|
protected writeOptionalItems(value: Array<Item | undefined>): void;
|
|
97
98
|
protected readTileEvent(): TileEvent | undefined;
|
|
98
99
|
protected writeTileEvent(value: TileEvent): void;
|
|
100
|
+
protected readTile(): Tile;
|
|
101
|
+
protected writeTile(value: Tile): void;
|
|
102
|
+
protected readTileArray(): Tile[];
|
|
103
|
+
protected writeTileArray(value: Tile[]): void;
|
|
99
104
|
protected readObject(): any;
|
|
100
105
|
protected writeObject(value: any): void;
|
|
101
106
|
protected readVector2Array(): IVector2[];
|