@wayward/types 2.11.6-beta.dev.20220502.1 → 2.12.0-beta.dev.20220821.1
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/definitions/game/IGlobal.d.ts +4 -1
- package/definitions/game/Init.d.ts +2 -4
- package/definitions/game/Uninit.d.ts +15 -0
- package/definitions/game/audio/Audio.d.ts +3 -0
- package/definitions/game/audio/IAudio.d.ts +35 -29
- package/definitions/game/event/EventEmitter.d.ts +1 -1
- package/definitions/game/game/Game.d.ts +26 -18
- package/definitions/game/game/IGame.d.ts +27 -3
- package/definitions/game/game/ObjectManager.d.ts +6 -1
- package/definitions/game/game/biome/IBiome.d.ts +2 -1
- package/definitions/game/game/biome/arid/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/coastal/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/iceCap/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/volcanic/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/Wetlands.d.ts +23 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/doodad/Doodad.d.ts +34 -26
- package/definitions/game/game/doodad/DoodadManager.d.ts +6 -4
- package/definitions/game/game/doodad/IDoodad.d.ts +84 -22
- package/definitions/game/game/entity/Entity.d.ts +14 -8
- package/definitions/game/game/entity/EntityManager.d.ts +10 -2
- package/definitions/game/game/entity/Human.d.ts +225 -28
- package/definitions/game/game/entity/IEntity.d.ts +58 -12
- package/definitions/game/game/entity/IEntityManager.d.ts +4 -4
- package/definitions/game/game/entity/IHuman.d.ts +220 -11
- package/definitions/game/game/entity/action/Action.d.ts +30 -12
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +42 -10
- package/definitions/game/game/entity/action/Actions.d.ts +3 -109
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +145 -0
- package/definitions/game/game/entity/action/IAction.d.ts +147 -84
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +19 -0
- package/definitions/game/game/entity/action/actions/AddFuel.d.ts +5 -1
- package/definitions/game/game/entity/action/actions/Alter.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +32 -2
- package/definitions/game/game/entity/action/actions/Build.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/Butcher.d.ts +8 -1
- package/definitions/game/game/entity/action/actions/Cast.d.ts +6 -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 +6 -1
- package/definitions/game/game/entity/action/actions/CopyMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Craft.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +9 -1
- package/definitions/game/game/entity/action/actions/Dig.d.ts +17 -1
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +9 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +7 -1
- package/definitions/game/game/entity/action/actions/DrawMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +10 -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 +6 -1
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Equip.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/{Pickup.d.ts → Exude.d.ts} +5 -1
- package/definitions/game/game/entity/action/actions/Fire.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +53 -3
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +45 -1
- package/definitions/game/game/entity/action/actions/GrabAll.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Grasp.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +10 -1
- package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/HealOther.d.ts +13 -1
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Idle.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/InterruptResponse.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Jump.d.ts +7 -1
- package/definitions/game/game/entity/action/actions/Learn.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Lockpick.d.ts +8 -1
- 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 +6 -1
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +4 -2
- package/definitions/game/game/entity/action/actions/MoveTo.d.ts +6 -2
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Offer.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +1 -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/Operate.d.ts +12 -0
- package/definitions/game/game/entity/action/actions/Paddle.d.ts +1 -3
- package/definitions/game/game/entity/action/actions/Pet.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/PickUp.d.ts +27 -0
- package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +18 -0
- package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +24 -0
- package/definitions/game/game/entity/action/actions/{PickupAllItems.d.ts → 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 +13 -1
- package/definitions/game/game/entity/action/actions/Pour.d.ts +20 -1
- package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Preserve.d.ts +8 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Read.d.ts +8 -1
- package/definitions/game/game/entity/action/actions/ReadMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Refine.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Reinforce.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/Release.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +10 -1
- package/definitions/game/game/entity/action/actions/Respawn.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/{PickupItem.d.ts → RestCancel.d.ts} +1 -1
- package/definitions/game/game/entity/action/actions/Rub.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/RubClockwise.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/RubCounterClockwise.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/SailToCivilization.d.ts +6 -1
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +6 -92
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/Shoot.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +15 -1
- package/definitions/game/game/entity/action/actions/Squeeze.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +17 -1
- package/definitions/game/game/entity/action/actions/StokeFire.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/Tame.d.ts +7 -1
- package/definitions/game/game/entity/action/actions/Teleport.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/TellTime.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/TestDepth.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +12 -1
- package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +8 -1
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +11 -1
- package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +8 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +33 -0
- package/definitions/game/game/entity/action/actions/Trade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +6 -1
- 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 -1
- 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/UpdateItemQuickSlot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/{PickupExcrement.d.ts → UpdateWalkPath.d.ts} +1 -1
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +15 -1
- package/definitions/game/game/entity/action/actions/helper/ConsumeItemType.d.ts +2 -3
- package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +2 -3
- package/definitions/game/game/entity/action/actions/helper/Inventories.d.ts +1 -1
- package/definitions/game/game/entity/creature/Creature.d.ts +21 -14
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +5 -4
- package/definitions/game/game/entity/creature/Creatures.d.ts +2 -2
- package/definitions/game/game/entity/creature/ICreature.d.ts +29 -9
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +4 -1
- package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +5 -3
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +0 -11
- package/definitions/game/game/entity/flowfield/FlowField.d.ts +2 -2
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +12 -6
- package/definitions/game/game/entity/npc/NPC.d.ts +20 -10
- package/definitions/game/game/entity/npc/NPCManager.d.ts +8 -2
- package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +25 -1
- package/definitions/game/game/entity/player/IMessageManager.d.ts +15 -3
- package/definitions/game/game/entity/player/IPlayer.d.ts +6 -130
- package/definitions/game/game/entity/player/MessageManager.d.ts +11 -4
- package/definitions/game/game/entity/player/Player.d.ts +14 -194
- package/definitions/game/game/entity/player/PlayerDefense.d.ts +2 -1
- package/definitions/game/game/entity/player/PlayerManager.d.ts +11 -4
- package/definitions/game/game/entity/player/note/Corpse.d.ts +2 -2
- package/definitions/game/game/entity/player/note/NoteManager.d.ts +17 -1
- package/definitions/game/game/entity/player/quest/QuestManager.d.ts +22 -1
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/Requirement.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffect.d.ts +14 -9
- package/definitions/game/game/entity/status/handler/Bleeding.d.ts +10 -4
- package/definitions/game/game/entity/status/handler/Dehydrated.d.ts +1 -1
- package/definitions/game/game/entity/status/handler/Encumbered.d.ts +1 -1
- package/definitions/game/game/entity/status/handler/Exhausted.d.ts +1 -1
- package/definitions/game/game/entity/status/handler/IBleeding.d.ts +15 -0
- package/definitions/game/game/entity/status/handler/Starving.d.ts +1 -1
- package/definitions/game/game/inspection/IInspection.d.ts +15 -13
- package/definitions/game/game/inspection/InfoProvider.d.ts +13 -5
- package/definitions/game/game/inspection/Inspection.d.ts +5 -1
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +17 -13
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +2 -0
- package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/CollapsableInfoProvider.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/MagicalProperties.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/ObscuredValue.d.ts +10 -10
- package/definitions/game/game/inspection/infoProviders/Quality.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/Stats.d.ts +23 -0
- package/definitions/game/game/inspection/infoProviders/UnlockableRowInfoProvider.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +2 -3
- package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/entity/Health.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemProtected.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +19 -1
- package/definitions/game/game/inspection/infoProviders/item/ItemVehicle.d.ts +20 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +4 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemSetDownInfo.d.ts +31 -0
- package/definitions/game/game/inspection/infoProviders/recipe/AdditionalRequirements.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +24 -0
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +33 -0
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +5 -1
- package/definitions/game/game/inspection/inspections/CorpsesInspection.d.ts +2 -1
- package/definitions/game/game/inspection/inspections/EquipSlotInspection.d.ts +24 -0
- package/definitions/game/game/inspection/inspections/HumanInspection.d.ts +2 -1
- package/definitions/game/game/inspection/inspections/IslandInspection.d.ts +3 -2
- package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +3 -11
- package/definitions/game/game/inspection/inspections/ListInspection.d.ts +3 -1
- package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/NPCInspection.d.ts +5 -0
- package/definitions/game/game/inspection/inspections/RecipeInspection.d.ts +4 -4
- package/definitions/game/game/inspection/inspections/SelfInspection.d.ts +2 -10
- package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/StatInspection.d.ts +2 -1
- package/definitions/game/game/inspection/inspections/TileEventInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/TileInspection.d.ts +2 -1
- package/definitions/game/game/island/IIsland.d.ts +10 -7
- package/definitions/game/game/island/Island.d.ts +72 -28
- package/definitions/game/game/item/IItem.d.ts +242 -41
- package/definitions/game/game/item/IItemManager.d.ts +18 -3
- package/definitions/game/game/item/Item.d.ts +36 -19
- package/definitions/game/game/item/ItemDescriptions.d.ts +15 -0
- package/definitions/game/game/item/ItemManager.d.ts +59 -23
- package/definitions/game/game/item/ItemRecipeRequirementChecker.d.ts +3 -1
- package/definitions/game/game/item/ItemReference.d.ts +13 -5
- package/definitions/game/game/item/Items.d.ts +1 -6
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +1 -0
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +9 -1
- package/definitions/game/game/mapgen/IMapGen.d.ts +8 -3
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +246 -244
- package/definitions/game/game/mapgen/version/2.11.0.d.ts +1 -1
- package/definitions/game/game/mapgen/version/2.12.0.d.ts +16 -0
- package/definitions/game/game/mapping/DrawnMap.d.ts +2 -1
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +96 -103
- package/definitions/game/game/meta/prompt/PromptDescriptionFactory.d.ts +26 -0
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +113 -117
- package/definitions/game/game/meta/prompt/Prompts.d.ts +2 -5
- package/definitions/game/game/milestones/IMilestone.d.ts +3 -1
- package/definitions/game/game/options/IGameOptions.d.ts +21 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -5
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +2 -2
- package/definitions/game/game/options/modifiers/milestone/modifiers/Murderer.d.ts +16 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Rouseabout.d.ts +16 -0
- package/definitions/game/game/reference/IReferenceManager.d.ts +3 -1
- package/definitions/game/game/reference/ReferenceManager.d.ts +28 -8
- package/definitions/game/game/temperature/TemperatureManager.d.ts +2 -1
- package/definitions/game/game/tile/ITerrain.d.ts +72 -17
- package/definitions/game/game/tile/ITileEvent.d.ts +4 -2
- package/definitions/game/game/tile/TerrainResources.d.ts +2 -1
- package/definitions/game/game/tile/TileEvent.d.ts +2 -2
- package/definitions/game/game/tile/TileEventManager.d.ts +9 -8
- package/definitions/game/game/tile/events/Puddles.d.ts +2 -0
- package/definitions/game/language/Dictionary.d.ts +92 -88
- package/definitions/game/language/DictionaryMap.d.ts +191 -176
- package/definitions/game/language/ITranslation.d.ts +2 -2
- package/definitions/game/language/LanguageManager.d.ts +10 -5
- package/definitions/game/language/Translation.d.ts +9 -7
- package/definitions/game/language/TranslationsProvider.d.ts +5 -2
- package/definitions/game/language/dictionary/Message.d.ts +885 -855
- package/definitions/game/language/dictionary/Misc.d.ts +35 -20
- package/definitions/game/language/dictionary/UiTranslation.d.ts +822 -774
- package/definitions/game/language/english/game/islandName/IslandName.d.ts +2 -1
- package/definitions/game/language/english/game/islandName/IslandNameBiomeDescriptors.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +13 -0
- package/definitions/game/language/english/player/{Slot.d.ts → EquipSlots.d.ts} +2 -2
- package/definitions/game/language/english/player/{BadTemperatureLevels.d.ts → status/BadTemperatureLevels.d.ts} +0 -0
- package/definitions/game/language/english/player/status/BleedLevels.d.ts +19 -0
- package/definitions/game/language/english/player/{ExhaustionLevels.d.ts → status/ExhaustionLevels.d.ts} +0 -0
- package/definitions/game/language/english/ui/FontStyles.d.ts +13 -0
- package/definitions/game/language/english/ui/UiActionTypes.d.ts +13 -0
- package/definitions/game/language/english/ui/quadrant/QuadrantComponentMap.d.ts +3 -3
- package/definitions/game/language/impl/TranslationImpl.d.ts +1 -0
- package/definitions/game/language/segment/Segments.d.ts +3 -1
- package/definitions/game/mod/BaseMod.d.ts +1 -0
- package/definitions/game/mod/ModRegistry.d.ts +59 -46
- package/definitions/game/multiplayer/IMultiplayer.d.ts +1 -0
- package/definitions/game/multiplayer/Multiplayer.d.ts +1 -1
- package/definitions/game/multiplayer/networking/Connection.d.ts +8 -2
- package/definitions/game/multiplayer/networking/IConnection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +5 -3
- package/definitions/game/multiplayer/networking/WebRTCConnection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/WebSocketConnection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/WebWorkerConnection.d.ts +30 -0
- package/definitions/game/multiplayer/packets/client/PongPacket.d.ts +1 -0
- package/definitions/game/multiplayer/packets/server/PingPacket.d.ts +2 -0
- package/definitions/game/renderer/Decorations.d.ts +5 -2
- package/definitions/game/renderer/IRenderer.d.ts +13 -12
- package/definitions/game/renderer/ISpriteInfo.d.ts +6 -1
- package/definitions/game/renderer/Renderer.d.ts +2 -2
- package/definitions/game/renderer/Renderers.d.ts +41 -0
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +12 -8
- package/definitions/game/renderer/fieldOfView/IFieldOfView.d.ts +6 -5
- package/definitions/game/renderer/notifier/Notifier.d.ts +1 -1
- package/definitions/game/renderer/tile/TerrainTileInfo.d.ts +44 -42
- package/definitions/game/renderer/tile/adaptors/Default.d.ts +1 -1
- package/definitions/game/renderer/tile/adaptors/DoodadLike.d.ts +18 -0
- package/definitions/game/renderer/tile/adaptors/Fence.d.ts +1 -1
- package/definitions/game/renderer/tile/adaptors/Floor.d.ts +2 -2
- package/definitions/game/renderer/tile/adaptors/Lava.d.ts +2 -2
- package/definitions/game/renderer/tile/adaptors/Mountain.d.ts +2 -2
- package/definitions/game/renderer/tile/adaptors/MountainGround.d.ts +2 -2
- package/definitions/game/renderer/tile/adaptors/Till.d.ts +1 -1
- package/definitions/game/renderer/tile/adaptors/Track.d.ts +18 -0
- package/definitions/game/renderer/tile/adaptors/Wall.d.ts +1 -1
- package/definitions/game/renderer/tile/adaptors/Water.d.ts +2 -2
- package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +3 -0
- package/definitions/game/renderer/world/IWorldRenderer.d.ts +3 -1
- package/definitions/game/renderer/world/World.d.ts +1 -1
- package/definitions/game/renderer/world/WorldLayer.d.ts +5 -1
- package/definitions/game/renderer/world/WorldRenderer.d.ts +20 -16
- package/definitions/game/resource/IResourceLoader.d.ts +38 -33
- package/definitions/game/resource/ResourceLoader.d.ts +0 -1
- package/definitions/game/resource/ResourcePath.d.ts +1 -0
- package/definitions/game/resource/SpriteAtlas.d.ts +1 -0
- package/definitions/game/resource/SpritePack.d.ts +10 -7
- package/definitions/game/resource/SpritePacker.d.ts +3 -17
- package/definitions/game/save/SaveManager.d.ts +1 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +7 -6
- package/definitions/game/save/datastorage/FileDataStorage.d.ts +1 -0
- package/definitions/game/save/datastorage/IAsyncDataStorage.d.ts +1 -0
- package/definitions/game/save/datastorage/IndexedDbDataStorage.d.ts +2 -0
- package/definitions/game/save/datastorage/LocalStorageDataStorage.d.ts +1 -0
- package/definitions/game/save/serializer/ISerializer.d.ts +2 -1
- package/definitions/game/steamworks/ISteamworks.d.ts +1 -0
- package/definitions/game/steamworks/Steamworks.d.ts +4 -0
- package/definitions/game/ui/IUi.d.ts +11 -0
- package/definitions/game/ui/LoadingBridge.d.ts +2 -5
- package/definitions/game/ui/Ui.d.ts +8 -1
- package/definitions/game/ui/UiExperiments.d.ts +2 -1
- package/definitions/game/ui/component/Block.d.ts +3 -2
- package/definitions/game/ui/component/Button.d.ts +28 -4
- package/definitions/game/ui/component/CheckButton.d.ts +1 -3
- package/definitions/game/ui/component/Component.d.ts +27 -17
- package/definitions/game/ui/component/Contenteditable.d.ts +16 -0
- package/definitions/game/ui/component/ContextMenu.d.ts +38 -9
- package/definitions/game/ui/component/Dropdown.d.ts +1 -1
- package/definitions/game/ui/component/GroupDropdown.d.ts +1 -1
- package/definitions/game/ui/component/IComponent.d.ts +17 -25
- package/definitions/game/ui/component/Input.d.ts +3 -3
- package/definitions/game/ui/component/LabeledButtonRow.d.ts +23 -0
- package/definitions/game/ui/component/List.d.ts +1 -1
- package/definitions/game/ui/component/Text.d.ts +12 -2
- package/definitions/game/ui/component/ThreeStateButton.d.ts +0 -2
- package/definitions/game/ui/component/WarningRow.d.ts +3 -6
- package/definitions/game/ui/component/dropdown/NPCDropdown.d.ts +6 -5
- package/definitions/game/ui/component/dropdown/NPCTypeDropdown.d.ts +16 -0
- package/definitions/game/ui/component/dropdown/PlayerDropdown.d.ts +1 -1
- package/definitions/game/ui/input/Bind.d.ts +4 -2
- package/definitions/game/ui/input/Bindable.d.ts +201 -117
- package/definitions/game/ui/input/BindableManager.d.ts +44 -0
- package/definitions/game/ui/input/Bindables.d.ts +2 -1
- package/definitions/game/ui/input/Bindings.d.ts +16 -5
- package/definitions/game/ui/input/IIInput.d.ts +28 -0
- package/definitions/game/ui/input/IInput.d.ts +14 -10
- package/definitions/game/ui/input/InputManager.d.ts +4 -3
- package/definitions/game/ui/input/Macros.d.ts +6 -2
- package/definitions/game/ui/old/OldUi.d.ts +5 -4
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +22 -13
- package/definitions/game/ui/screen/ScreenManager.d.ts +1 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +6 -4
- package/definitions/game/ui/screen/screens/InterruptScreen.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +12 -7
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/IGameScreenApi.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/InspectionsTooltipHandler.d.ts +27 -20
- package/definitions/game/ui/screen/screens/game/ReferenceIconRenderer.d.ts +20 -0
- package/definitions/game/ui/screen/screens/game/ReferenceTooltipHandler.d.ts +6 -1
- package/definitions/game/ui/screen/screens/game/WorldTooltipHandler.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +36 -5
- package/definitions/game/ui/screen/screens/game/component/IQuadrantComponent.d.ts +9 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +72 -2
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +6 -1
- package/definitions/game/ui/screen/screens/game/component/TabDialog.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +48 -0
- package/definitions/game/ui/screen/screens/game/dialog/crafting/RecipeButton.d.ts +7 -1
- package/definitions/game/ui/screen/screens/game/dialog/equipment/EquipmentSlotTooltip.d.ts +44 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +118 -0
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/static/Stats.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +23 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlotTooltip.d.ts +40 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionsDrawer.d.ts +74 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ConfirmAction.d.ts +12 -0
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +26 -0
- package/definitions/game/ui/screen/screens/game/static/actions/UiAction.d.ts +183 -0
- package/definitions/game/ui/screen/screens/game/static/actions/UiActionRegistrar.d.ts +84 -0
- package/definitions/game/ui/screen/screens/game/static/actions/UiActionType.d.ts +65 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionRename.d.ts +15 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsActionBar.d.ts +10 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsCreatures.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsDynamic.d.ts +31 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsMain.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsUseNPC.d.ts +18 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsWithHands.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/UiActionsWorld.d.ts +25 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/doodad/IUiActionsDoodad.d.ts +23 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/doodad/UiActionCloseContainer.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/doodad/UiActionsDoodads.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/doodad/UiActionsDoor.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/doodad/UiActionsUseDoodad.d.ts +18 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionCraft.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsEquip.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsItemDrop.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsItemMove.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsItemPickUp.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsProtect.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsUseItem.d.ts +22 -0
- package/definitions/game/ui/screen/screens/game/static/actions/actions/item/UiActionsXWithY.d.ts +13 -0
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +18 -18
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusEffects.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/MenuManager.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/MenuMap.d.ts +17 -15
- package/definitions/game/ui/screen/screens/menu/component/IMenu.d.ts +16 -15
- package/definitions/game/ui/screen/screens/menu/component/Menu.d.ts +1 -3
- package/definitions/game/ui/screen/screens/menu/menus/{options/BindingsMenu.d.ts → BindingsMenu.d.ts} +3 -0
- package/definitions/game/ui/screen/screens/menu/menus/InterruptMenu.d.ts +3 -2
- package/definitions/game/ui/screen/screens/menu/menus/JoinServerMenu.d.ts +0 -2
- package/definitions/game/ui/screen/screens/menu/menus/LoadGameMenu.d.ts +1 -2
- package/definitions/game/ui/screen/screens/menu/menus/MainMenu.d.ts +3 -2
- package/definitions/game/ui/screen/screens/menu/menus/help/HelpArticleDescriptions.d.ts +4 -2
- package/definitions/game/ui/screen/screens/menu/menus/loadgame/SaveSlot.d.ts +2 -1
- package/definitions/game/ui/screen/screens/menu/menus/main/ChangelogMenu.d.ts +3 -0
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModInfoMenu.d.ts +2 -1
- package/definitions/game/ui/screen/screens/menu/menus/newgame/TabMultiplayer.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/CustomGameOptionsTab.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/{TabInventory.d.ts → TabItems.d.ts} +0 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/{TabIsland.d.ts → TabTravel.d.ts} +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/IOptionsTabs.d.ts +8 -8
- package/definitions/game/ui/screen/screens/menu/menus/options/TabLanguage.d.ts +2 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/TabPerformance.d.ts +2 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/TabVideo.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/menus/pause/GameOptionsIcons.d.ts +4 -1
- package/definitions/game/ui/screen/screens/menu/menus/pause/MultiplayerOptionsMenu.d.ts +1 -0
- package/definitions/game/ui/tooltip/Tooltip.d.ts +31 -1
- package/definitions/game/ui/tooltip/TooltipManager.d.ts +1 -1
- package/definitions/game/ui/util/Draggable.d.ts +34 -7
- package/definitions/game/ui/util/HighlightManager.d.ts +16 -12
- package/definitions/game/ui/util/IHighlight.d.ts +26 -0
- package/definitions/game/ui/util/IInterrupt.d.ts +2 -0
- package/definitions/game/ui/util/ImagePath.d.ts +24 -4
- package/definitions/game/ui/util/InterruptFactory.d.ts +2 -1
- package/definitions/game/ui/util/ScrollableHandler.d.ts +4 -4
- package/definitions/game/ui/util/Sortable.d.ts +5 -0
- package/definitions/game/utilities/Debouncer.d.ts +15 -0
- package/definitions/game/utilities/Functions.d.ts +14 -0
- package/definitions/game/utilities/Log.d.ts +25 -20
- package/definitions/game/utilities/Version.d.ts +1 -0
- package/definitions/game/utilities/collection/Arrays.d.ts +2 -1
- package/definitions/game/utilities/enum/Enums.d.ts +17 -4
- package/definitions/game/utilities/enum/IEnum.d.ts +7 -1
- package/definitions/game/utilities/game/TileHelpers.d.ts +7 -7
- package/definitions/game/utilities/math/Rectangle.d.ts +1 -0
- package/definitions/game/utilities/math/Vector2.d.ts +13 -1
- package/definitions/game/utilities/object/Objects.d.ts +3 -3
- package/definitions/game/utilities/prototype/Define.d.ts +4 -4
- package/definitions/game/utilities/string/Interpolator.d.ts +7 -2
- package/definitions/game/utilities/string/Strings.d.ts +2 -1
- package/definitions/game/webWorker/WebWorkerClient.d.ts +32 -0
- package/definitions/game/webWorker/WebWorkerManager.d.ts +40 -0
- package/definitions/game/webWorker/WebWorkerMessages.d.ts +35 -0
- package/definitions/hosts/browser/browserLoader.d.ts +0 -1
- package/definitions/hosts/browser/index.d.ts +1 -3
- package/definitions/hosts/browser/load.d.ts +11 -0
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +5 -1
- package/definitions/hosts/electron/main/launchOptions.d.ts +1 -0
- package/definitions/hosts/shared/globalTypes.d.ts +10 -3
- package/definitions/hosts/shared/globals.d.ts +2 -1
- package/definitions/hosts/shared/ipc/electron.d.ts +4 -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/hosts/shared/ipc.d.ts +1 -1
- package/definitions/hosts/webworker/index.d.ts +12 -0
- package/definitions/hosts/webworker/load.d.ts +11 -0
- package/definitions/test/core/applicationDom.d.ts +2 -1
- package/definitions/test/core/applicationInteractions.d.ts +3 -2
- package/definitions/test/index.d.ts +1 -0
- package/package.json +1 -1
- package/definitions/game/game/entity/action/actions/UseItem.d.ts +0 -14
- package/definitions/game/multiplayer/packets/server/KeepAlivePacket.d.ts +0 -21
- package/definitions/game/multiplayer/packets/shared/UpdateWalkPathPacket.d.ts +0 -20
- package/definitions/game/ui/screen/screens/game/static/Quickslots.d.ts +0 -20
|
@@ -22,6 +22,7 @@ import type ModManager from "mod/ModManager";
|
|
|
22
22
|
import type { IMultiplayerNetworkingOptions } from "multiplayer/IMultiplayer";
|
|
23
23
|
import type Multiplayer from "multiplayer/Multiplayer";
|
|
24
24
|
import type Renderer from "renderer/Renderer";
|
|
25
|
+
import type Renderers from "renderer/Renderers";
|
|
25
26
|
import type SaveData from "save/data/SaveData";
|
|
26
27
|
import type SaveDataGlobal from "save/data/SaveDataGlobal";
|
|
27
28
|
import type SaveManager from "save/SaveManager";
|
|
@@ -54,8 +55,9 @@ declare global {
|
|
|
54
55
|
let multiplayerNetworkingOptions: IMultiplayerNetworkingOptions;
|
|
55
56
|
let oldui: OldUi;
|
|
56
57
|
let playerManager: PlayerManager;
|
|
57
|
-
let players: Player
|
|
58
|
+
let players: Array<Player | undefined>;
|
|
58
59
|
let renderer: Renderer | undefined;
|
|
60
|
+
let renderers: Renderers;
|
|
59
61
|
let saveData: SaveData;
|
|
60
62
|
let saveDataGlobal: SaveDataGlobal;
|
|
61
63
|
let saveManager: SaveManager;
|
|
@@ -68,6 +70,7 @@ declare global {
|
|
|
68
70
|
const gameVersionPatch: number;
|
|
69
71
|
const gameVersionName: string;
|
|
70
72
|
const isNodeJs: boolean;
|
|
73
|
+
const isWebWorker: boolean;
|
|
71
74
|
const overlayWorks: boolean | undefined;
|
|
72
75
|
let webGlVersion: number;
|
|
73
76
|
const VIEWPORT_MIN_WIDTH: number;
|
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { Game } from "game/Game";
|
|
12
|
+
import "game/entity/action/ActionsRegistration";
|
|
13
|
+
import "game/item/Items";
|
|
12
14
|
export interface IInit {
|
|
13
15
|
game: Game;
|
|
14
16
|
onUnload(message?: string): Promise<void>;
|
|
15
17
|
}
|
|
16
18
|
export default function (): Promise<IInit | undefined>;
|
|
17
|
-
export declare function onBeforeUnloadAsynchronous(event?: {
|
|
18
|
-
preventDefault?: () => void;
|
|
19
|
-
returnValue?: boolean | string;
|
|
20
|
-
}): Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare function onBeforeUnloadAsynchronous(event?: {
|
|
12
|
+
preventDefault?: () => void;
|
|
13
|
+
returnValue?: boolean | string;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
export declare function onBeforeUnloadSynchronous(event: Event): void;
|
|
@@ -40,6 +40,7 @@ export default class WAudio extends EventEmitter.Host<IAudioEvents> implements I
|
|
|
40
40
|
private _audioContext;
|
|
41
41
|
private _musicGainNode;
|
|
42
42
|
private _effectsGainNode;
|
|
43
|
+
private _suspended;
|
|
43
44
|
private _musicSpeed;
|
|
44
45
|
private _soundDelay;
|
|
45
46
|
private _musicHandler;
|
|
@@ -56,6 +57,8 @@ export default class WAudio extends EventEmitter.Host<IAudioEvents> implements I
|
|
|
56
57
|
* Resets the music handler to its original state.
|
|
57
58
|
*/
|
|
58
59
|
resetMusicHandler(): Promise<void>;
|
|
60
|
+
suspendSoundEffects(): void;
|
|
61
|
+
resumeSoundEffects(): void;
|
|
59
62
|
/**
|
|
60
63
|
* Sets the current track to the first in the current music handler.
|
|
61
64
|
*/
|
|
@@ -24,36 +24,42 @@ export interface IAudio {
|
|
|
24
24
|
}
|
|
25
25
|
export default IAudio;
|
|
26
26
|
export declare enum SfxType {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
27
|
+
Boat = 0,
|
|
28
|
+
Bow = 1,
|
|
29
|
+
Chat = 2,
|
|
30
|
+
Click = 3,
|
|
31
|
+
Craft = 4,
|
|
32
|
+
CreatureHit = 5,
|
|
33
|
+
CreatureNoise = 6,
|
|
34
|
+
Damaged = 7,
|
|
35
|
+
Death = 8,
|
|
36
|
+
Eating = 9,
|
|
37
|
+
Exceptional = 10,
|
|
38
|
+
Extinguish = 11,
|
|
39
|
+
Fail = 12,
|
|
40
|
+
GraniteHit = 13,
|
|
41
|
+
Hit = 14,
|
|
42
|
+
Hurt = 15,
|
|
43
|
+
Minecart = 16,
|
|
44
|
+
Miss = 17,
|
|
45
|
+
PickUp = 18,
|
|
46
|
+
SandstoneHit = 19,
|
|
47
|
+
Swim = 20,
|
|
48
|
+
Throw = 21,
|
|
49
|
+
Trample = 22,
|
|
50
|
+
TreeHit = 23,
|
|
51
|
+
UiActivate = 24,
|
|
52
|
+
UiClose = 25,
|
|
53
|
+
UiDisable = 26,
|
|
54
|
+
UiEnable = 27,
|
|
55
|
+
UiInput = 28,
|
|
56
|
+
UiInvalid = 29,
|
|
57
|
+
UiOpen = 30,
|
|
58
|
+
UiSelect = 31,
|
|
59
|
+
Walk = 32,
|
|
60
|
+
Water = 33
|
|
56
61
|
}
|
|
62
|
+
export declare type SfxUi = Extract<keyof typeof SfxType, `Ui${string}`> extends `Ui${infer RESULT}` ? Lowercase<RESULT> : never;
|
|
57
63
|
export declare enum Music {
|
|
58
64
|
Shipwrecked = 0,
|
|
59
65
|
OpeningTheme = 1,
|
|
@@ -57,7 +57,7 @@ export interface IEventEmitter<H = any, E = any> {
|
|
|
57
57
|
until(promise: Promise<any>): IUntilSubscriber<H, E>;
|
|
58
58
|
hasHandlersForEvent(...events: Array<keyof E>): boolean;
|
|
59
59
|
}
|
|
60
|
-
interface IUntilSubscriber<H, E> {
|
|
60
|
+
export interface IUntilSubscriber<H, E> {
|
|
61
61
|
subscribe<K extends ArrayOr<keyof E>>(event: K, handler: IterableOr<Handler<H, K extends any[] ? E[K[number]] : E[Extract<K, keyof E>]>>, priority?: number): H;
|
|
62
62
|
}
|
|
63
63
|
interface IEventEmitterEvents<H, E> {
|
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
/// <reference types="node" />
|
|
12
12
|
import EventEmitter from "event/EventEmitter";
|
|
13
|
+
import type { BiomeTypes } from "game/biome/IBiome";
|
|
13
14
|
import type Entity from "game/entity/Entity";
|
|
15
|
+
import type Human from "game/entity/Human";
|
|
14
16
|
import type { Defense } from "game/entity/IEntity";
|
|
15
17
|
import { DamageType } from "game/entity/IEntity";
|
|
16
|
-
import { Delay } from "game/entity/IHuman";
|
|
18
|
+
import type { Delay } from "game/entity/IHuman";
|
|
17
19
|
import type { TurnType } from "game/entity/player/IPlayer";
|
|
18
|
-
import type
|
|
19
|
-
import
|
|
20
|
-
import { SaveType, TickFlag, TurnMode, PauseSource } from "game/IGame";
|
|
20
|
+
import type { IGameEvents, IMovementTime, IPlayOptions, ISynchronizeState } from "game/IGame";
|
|
21
|
+
import { PauseSource, SaveType, TickFlag, TurnMode } from "game/IGame";
|
|
21
22
|
import type Island from "game/island/Island";
|
|
22
23
|
import IslandManager from "game/island/IslandManager";
|
|
23
24
|
import type { MultiplayerLoadingDescription } from "game/meta/Loading";
|
|
@@ -37,6 +38,8 @@ import ReplayManager from "replay/ReplayManager";
|
|
|
37
38
|
import type { IOptions } from "save/data/ISaveDataGlobal";
|
|
38
39
|
import type StringTokenizer from "save/serializer/StringTokenizer";
|
|
39
40
|
import ItemStylesheetHandler from "ui/screen/screens/game/util/item/ItemStylesheet";
|
|
41
|
+
import type { IVector2 } from "utilities/math/IVector";
|
|
42
|
+
import type { Random } from "utilities/random/Random";
|
|
40
43
|
import type { IVersionInfo } from "utilities/Version";
|
|
41
44
|
export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
42
45
|
get isChallenge(): boolean;
|
|
@@ -85,6 +88,8 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
85
88
|
protected stringTokenizer: StringTokenizer | undefined;
|
|
86
89
|
toString(): string;
|
|
87
90
|
get isPaused(): boolean;
|
|
91
|
+
getPlayingHumans(includeGhosts?: boolean, includeConnecting?: boolean, includeServer?: boolean): Human[];
|
|
92
|
+
getNonPlayerHumans(): Human[];
|
|
88
93
|
initializeRenderer(): void;
|
|
89
94
|
globalSlotReady(): void;
|
|
90
95
|
/**
|
|
@@ -100,34 +105,37 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
100
105
|
setGlContextSize(): void;
|
|
101
106
|
resizeRenderer(): void;
|
|
102
107
|
setPaused(pause: boolean, source: PauseSource): void;
|
|
108
|
+
onPlayingEntityChange(_manager: any, entity: Entity): void;
|
|
103
109
|
gameLogicLoop: () => void;
|
|
104
110
|
isSimulatedOrRealTimeMode(): boolean;
|
|
105
111
|
getTurnMode(): TurnMode;
|
|
106
112
|
setTurnMode(turnMode: TurnMode): void;
|
|
113
|
+
/**
|
|
114
|
+
* Changes the turn mode if it's not correct
|
|
115
|
+
*/
|
|
116
|
+
ensureTurnMode(): void;
|
|
117
|
+
isTurnModeAllowed(turnMode: TurnMode): boolean;
|
|
107
118
|
getTickSpeed(): number;
|
|
108
119
|
setTickSpeed(tickSpeed: number): void;
|
|
109
|
-
|
|
120
|
+
selectBiome(position: IVector2, random: Random): BiomeTypes;
|
|
110
121
|
getGameMode(): GameMode;
|
|
111
122
|
getGameOptionsBeforeModifiers(): IGameOptions;
|
|
112
123
|
getGameOptions(): IGameOptions;
|
|
113
124
|
updateGameOptions(gameOptions: IGameOptions): void;
|
|
114
125
|
initializeGameOptions(seed: string | number, mode?: GameMode, options?: IGameOptions, milestoneModifiers?: Set<Milestone>): void;
|
|
115
126
|
initializeModifiers(): void;
|
|
116
|
-
|
|
117
|
-
getMovementProgress(timeStamp: number,
|
|
118
|
-
getAnimationProgress(timeStamp: number, finishTime: number | undefined, delay: Delay | number): number;
|
|
127
|
+
getMovementTime(delay: Delay | number): IMovementTime;
|
|
128
|
+
getMovementProgress(timeStamp: number, movementTime: IMovementTime | undefined): number;
|
|
119
129
|
getSynchronizeState(identifier: string): ISynchronizeState;
|
|
120
130
|
synchronizeState(synchronizeState: ISynchronizeState): void;
|
|
121
131
|
/**
|
|
122
|
-
* Marks that the
|
|
123
|
-
* In manual turn mode, it will tick the
|
|
124
|
-
* @param player
|
|
125
|
-
* @param turnType
|
|
132
|
+
* Marks that the human had a turn
|
|
133
|
+
* In manual turn mode, it will tick the humans stat timers & the game
|
|
126
134
|
*/
|
|
127
|
-
passTurn(
|
|
135
|
+
passTurn(human: Human, turnType?: TurnType): void;
|
|
128
136
|
tickRealtime(): void;
|
|
129
137
|
updateView(source: RenderSource, updateFov?: boolean, computeSpritesNow?: boolean): void;
|
|
130
|
-
updateTablesAndWeight(
|
|
138
|
+
updateTablesAndWeight(): void;
|
|
131
139
|
/**
|
|
132
140
|
* Gets the largest damage type weaknesses of a human or creature based on a type and damage value
|
|
133
141
|
* @param defense Defense of the human or creature
|
|
@@ -136,19 +144,19 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
136
144
|
* @returns returns DamageType array or undefined if there are no weaknesses
|
|
137
145
|
*/
|
|
138
146
|
getGreatestWeaknesses(defense: Defense, damageTypes: DamageType, damage: number): DamageType[];
|
|
139
|
-
updateOption(
|
|
147
|
+
updateOption(human: Human | undefined, id: keyof IOptions, value: boolean | number): void;
|
|
140
148
|
/**
|
|
141
149
|
* Do not call this directly. Use updateOption instead
|
|
142
150
|
*/
|
|
143
|
-
updateOptionInternal(id: keyof IOptions, value: boolean | number,
|
|
151
|
+
updateOptionInternal(id: keyof IOptions, value: boolean | number, human?: Human): void;
|
|
144
152
|
/**
|
|
145
153
|
* Collection of things to perform on each tick
|
|
146
154
|
*/
|
|
147
|
-
tick(ticks?: number,
|
|
155
|
+
tick(ticks?: number, playingHumans?: Human[], tickFlag?: TickFlag): void;
|
|
148
156
|
/**
|
|
149
157
|
* Collection of things to perform on each tick
|
|
150
158
|
*/
|
|
151
|
-
tickAsync(island: Island, ticks: number,
|
|
159
|
+
tickAsync(island: Island, ticks: number, playingHumans: Human[] | undefined, tickFlag: TickFlag | undefined, onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
152
160
|
createRenderer(entity: Entity): void;
|
|
153
161
|
/**
|
|
154
162
|
* Resets the game state. This should be called when returning to the main menu from a game and/or right before starting/joining a game.
|
|
@@ -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 { BiomeTypes } from "game/biome/IBiome";
|
|
11
12
|
import type Doodad from "game/doodad/Doodad";
|
|
12
13
|
import type Corpse from "game/entity/creature/corpse/Corpse";
|
|
13
14
|
import type Creature from "game/entity/creature/Creature";
|
|
@@ -25,7 +26,7 @@ import type TimeManager from "game/time/TimeManager";
|
|
|
25
26
|
import type { IMultiplayerOptions, IMultiplayerWorldData, ServerInfo } from "multiplayer/IMultiplayer";
|
|
26
27
|
import type { IReplayLogEntry } from "replay/IReplayLogEntry";
|
|
27
28
|
import type { IHighscoreOld, IOptions } from "save/data/ISaveDataGlobal";
|
|
28
|
-
import type { IVector3 } from "utilities/math/IVector";
|
|
29
|
+
import type { IVector2, IVector3 } from "utilities/math/IVector";
|
|
29
30
|
import type { IRange } from "utilities/math/Range";
|
|
30
31
|
export interface IGameEvents {
|
|
31
32
|
/**
|
|
@@ -55,10 +56,28 @@ export interface IGameEvents {
|
|
|
55
56
|
* Called when all game state was reset
|
|
56
57
|
*/
|
|
57
58
|
reset(): any;
|
|
59
|
+
/**
|
|
60
|
+
* Called when getting the biome type distribution for random biome selection
|
|
61
|
+
*/
|
|
62
|
+
getBiomeTypeChances(): Array<[number, BiomeTypes]> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Called when selecting the biome type for and island
|
|
65
|
+
* @param positon Island position
|
|
66
|
+
* @param biomeType Biome type
|
|
67
|
+
*/
|
|
68
|
+
getBiomeType(positon: IVector2, biomeType: BiomeTypes): BiomeTypes | undefined;
|
|
58
69
|
pause(): any;
|
|
59
70
|
resume(): any;
|
|
60
71
|
tickStart(tickFlag: TickFlag, ticks: number): any;
|
|
61
72
|
tickEnd(tickFlag: TickFlag, ticks: number): any;
|
|
73
|
+
/**
|
|
74
|
+
* Called when the playing entity count changes
|
|
75
|
+
*/
|
|
76
|
+
playingEntityChange(): any;
|
|
77
|
+
/**
|
|
78
|
+
* Called when the turn mode is set
|
|
79
|
+
*/
|
|
80
|
+
setTurnMode(turnMode: TurnMode): any;
|
|
62
81
|
glLostContext(): any;
|
|
63
82
|
glSetup(restored: boolean): any;
|
|
64
83
|
glInitialized(): any;
|
|
@@ -77,7 +96,7 @@ export declare enum TickFlag {
|
|
|
77
96
|
Creatures = 32,
|
|
78
97
|
NPCs = 64,
|
|
79
98
|
RandomEvents = 128,
|
|
80
|
-
|
|
99
|
+
StatusEffects = 256,
|
|
81
100
|
FlowFields = 512,
|
|
82
101
|
PlayerNotes = 1024,
|
|
83
102
|
Items = 2048,
|
|
@@ -203,7 +222,8 @@ export declare enum CreationId {
|
|
|
203
222
|
Corpse = 2,
|
|
204
223
|
NPC = 3,
|
|
205
224
|
Item = 4,
|
|
206
|
-
TileEvent = 5
|
|
225
|
+
TileEvent = 5,
|
|
226
|
+
Player = 6
|
|
207
227
|
}
|
|
208
228
|
export declare enum PauseSource {
|
|
209
229
|
/**
|
|
@@ -249,6 +269,10 @@ export interface ISynchronizeState {
|
|
|
249
269
|
id: string;
|
|
250
270
|
state: Map<IslandId, number[]>;
|
|
251
271
|
}
|
|
272
|
+
export interface IMovementTime {
|
|
273
|
+
start: number;
|
|
274
|
+
end: number;
|
|
275
|
+
}
|
|
252
276
|
export declare const DEFAULT_MAP_SIZE = 512;
|
|
253
277
|
export declare const DEFAULT_MAP_SIZE_SQUARED: number;
|
|
254
278
|
export declare const LINE_OF_SIGHT_RADIUS = 15;
|
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
|
+
import type { CreationId } from "game/IGame";
|
|
12
13
|
import type Island from "game/island/Island";
|
|
13
14
|
import type { IUnserializedCallback } from "save/serializer/ISerializer";
|
|
14
15
|
import type { StringableObject } from "utilities/object/Objects";
|
|
15
16
|
export declare abstract class ObjectManager<ObjectType extends StringableObject, EventsType> extends EventEmitter.Host<EventsType> implements IUnserializedCallback {
|
|
16
17
|
protected readonly island: Island;
|
|
17
18
|
protected readonly objects: SaferArray<ObjectType>;
|
|
19
|
+
private lastUsedId;
|
|
20
|
+
private sparseIds;
|
|
21
|
+
protected abstract readonly creationId: CreationId;
|
|
18
22
|
constructor(island: Island, objects?: SaferArray<ObjectType>);
|
|
19
23
|
/**
|
|
20
24
|
* Called when this object manager is not used anymore (after it was saved!)
|
|
@@ -26,6 +30,7 @@ export declare abstract class ObjectManager<ObjectType extends StringableObject,
|
|
|
26
30
|
get(id: number): ObjectType | undefined;
|
|
27
31
|
set(id: number, value: ObjectType | undefined): void;
|
|
28
32
|
getObjects(): SaferArray<ObjectType>;
|
|
33
|
+
findUnusedId<T extends object>(): number;
|
|
29
34
|
protected replaceNullsWithUndefined(): void;
|
|
30
|
-
|
|
35
|
+
protected registerForMemoryLeakDetection(object: SaferArray<ObjectType>): void;
|
|
31
36
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const aridMapGen2120: IBiomeMapGen;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const coastalMapGen2120: IBiomeMapGen;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const iceCapMapGen2120: IBiomeMapGen;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const volcanicMapGen2120: IBiomeMapGen;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { BiomeMapGen } from "game/biome/IBiome";
|
|
12
|
+
import type { IBiomeTemperature } from "game/temperature/ITemperature";
|
|
13
|
+
import { TerrainType } from "game/tile/ITerrain";
|
|
14
|
+
declare const _default: {
|
|
15
|
+
readonly defaultTerrainBackground: TerrainType.Mud;
|
|
16
|
+
readonly defaultCaveEntranceFlooring: TerrainType.Mud;
|
|
17
|
+
readonly fog: {
|
|
18
|
+
color: import("utilities/Color").IRGB;
|
|
19
|
+
};
|
|
20
|
+
mapGen: BiomeMapGen;
|
|
21
|
+
temperature: IBiomeTemperature;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const wetlandsMapGen2120: IBiomeMapGen;
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
|
-
import type { DoorOrientation, IDoodadDescription, IDoodadOptions,
|
|
12
|
+
import type { DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder } from "game/doodad/IDoodad";
|
|
13
13
|
import { DoodadType, DoodadTypeGroup, GrowingStage } from "game/doodad/IDoodad";
|
|
14
|
-
import
|
|
14
|
+
import { ActionType } from "game/entity/action/IAction";
|
|
15
15
|
import type Creature from "game/entity/creature/Creature";
|
|
16
16
|
import type Human from "game/entity/Human";
|
|
17
17
|
import { EquipType } from "game/entity/IHuman";
|
|
@@ -19,9 +19,9 @@ import type Player from "game/entity/player/Player";
|
|
|
19
19
|
import { CreationId, TileUpdateType } from "game/IGame";
|
|
20
20
|
import type { IObject } from "game/IObject";
|
|
21
21
|
import { Quality } from "game/IObject";
|
|
22
|
-
import type { IslandId } from "game/island/IIsland";
|
|
22
|
+
import type { IslandId, IWell } from "game/island/IIsland";
|
|
23
23
|
import { LiquidType } from "game/island/IIsland";
|
|
24
|
-
import type { IContainer } from "game/item/IItem";
|
|
24
|
+
import type { IContainer, ILiquidGather } from "game/item/IItem";
|
|
25
25
|
import { ItemType } from "game/item/IItem";
|
|
26
26
|
import type Item from "game/item/Item";
|
|
27
27
|
import type { IHasMagic } from "game/magic/MagicalPropertyManager";
|
|
@@ -33,6 +33,7 @@ import type { ITile } from "game/tile/ITerrain";
|
|
|
33
33
|
import type { ISerializedTranslation } from "language/ITranslation";
|
|
34
34
|
import type { IUnserializedCallback } from "save/serializer/ISerializer";
|
|
35
35
|
import type { IRGB } from "utilities/Color";
|
|
36
|
+
import type { Direction } from "utilities/math/Direction";
|
|
36
37
|
import type { IVector3 } from "utilities/math/IVector";
|
|
37
38
|
export interface IDoodadEvents {
|
|
38
39
|
/**
|
|
@@ -46,7 +47,7 @@ export interface IDoodadEvents {
|
|
|
46
47
|
* @param human The human object
|
|
47
48
|
* @returns False if the doodad cannot be picked up, or undefined to use the default logic
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
canPickUp(human: Human): boolean | undefined;
|
|
50
51
|
/**
|
|
51
52
|
* Emitted when the fire stage of this doodad changes.
|
|
52
53
|
* Note: The fire stage of doodads is not saved, so when the doodad's fire stage is first checked on load, this event will be
|
|
@@ -66,7 +67,7 @@ export interface IDoodadEvents {
|
|
|
66
67
|
*/
|
|
67
68
|
transformed(newType: DoodadType, oldType: DoodadType): any;
|
|
68
69
|
}
|
|
69
|
-
export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements IReferenceable, IUnserializedCallback, IObject<DoodadType>, IDoodadOptions, IVector3, Partial<IContainer>, ITemperatureSource, IHasInsulation,
|
|
70
|
+
export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements IReferenceable, IUnserializedCallback, IObject<DoodadType>, IDoodadOptions, IVector3, Partial<IContainer>, ITemperatureSource, IHasInsulation, IHasBuilder, IHasMagic {
|
|
70
71
|
static is(value: any): value is Doodad;
|
|
71
72
|
/**
|
|
72
73
|
* @deprecated
|
|
@@ -90,8 +91,9 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
90
91
|
itemOrders?: number[];
|
|
91
92
|
maxDur: number;
|
|
92
93
|
minDur: number;
|
|
93
|
-
orientation?: DoorOrientation;
|
|
94
|
-
|
|
94
|
+
orientation?: DoorOrientation | Direction.Cardinal;
|
|
95
|
+
crafterIdentifier?: string;
|
|
96
|
+
builderIdentifier?: string;
|
|
95
97
|
quality?: Quality;
|
|
96
98
|
renamed?: string | ISerializedTranslation;
|
|
97
99
|
spread?: number;
|
|
@@ -125,7 +127,7 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
125
127
|
* - `doodad.getName(false)` // "stone furnace"
|
|
126
128
|
* - `doodad.getName(undefined, 3)` // "stone furnaces"
|
|
127
129
|
*/
|
|
128
|
-
getName(article?:
|
|
130
|
+
getName(article?: false | "definite" | "indefinite", count?: number): import("../../language/impl/TranslationImpl").default;
|
|
129
131
|
description(): IDoodadDescription | undefined;
|
|
130
132
|
updateTile(tileUpdateType: TileUpdateType): void;
|
|
131
133
|
changeType(doodadType: DoodadType): void;
|
|
@@ -143,8 +145,9 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
143
145
|
* @returns True if the doodad is tall
|
|
144
146
|
*/
|
|
145
147
|
isTall(): boolean;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
canPickUp(human: Human): boolean;
|
|
149
|
+
getPickUpTypes(): ItemType[] | undefined;
|
|
150
|
+
getAssociatedItem(): ItemType;
|
|
148
151
|
getActions(): ActionType[] | undefined;
|
|
149
152
|
/**
|
|
150
153
|
* Can the doodad be gathered from in its current form?
|
|
@@ -155,6 +158,7 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
155
158
|
*/
|
|
156
159
|
isGatherable(): boolean;
|
|
157
160
|
isEmbers(): boolean;
|
|
161
|
+
isVehicle(): boolean;
|
|
158
162
|
canHarvest(): boolean;
|
|
159
163
|
/**
|
|
160
164
|
* Returns whether the doodad can be trampled
|
|
@@ -164,13 +168,17 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
164
168
|
isDangerous(human: Human): boolean;
|
|
165
169
|
getDamage(human: Human, equipType?: EquipType): number;
|
|
166
170
|
/**
|
|
167
|
-
* Gets the
|
|
171
|
+
* Gets the crafter of this doodad, or `undefined` if the doodad is crafterless.
|
|
168
172
|
*/
|
|
169
|
-
|
|
173
|
+
getCrafter(): Player | undefined;
|
|
170
174
|
/**
|
|
171
|
-
* Gets the
|
|
175
|
+
* Gets the crafter of this doodad. If this doodad has no crafter, and this is not a multiplayer server, returns the local player.
|
|
172
176
|
*/
|
|
173
|
-
|
|
177
|
+
getCrafterOrLocalPlayer(): Player | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Gets the builder of this doodad, or `undefined` if the doodad is builderless.
|
|
180
|
+
*/
|
|
181
|
+
getBuilder(): Player | undefined;
|
|
174
182
|
unhitch(): void;
|
|
175
183
|
damage(forceBreak?: boolean, skipDropAsItem?: boolean, skipSound?: boolean, skipResources?: boolean): void;
|
|
176
184
|
getDefaultDurability(): number;
|
|
@@ -178,9 +186,13 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
178
186
|
attachStillContainer(item: Item): void;
|
|
179
187
|
detachStillContainer(human?: Human): Item | undefined;
|
|
180
188
|
blocksMove(): boolean;
|
|
181
|
-
update(ticks: number,
|
|
189
|
+
update(ticks: number, playingHumans: Human[], updatesPerTick?: number): void;
|
|
182
190
|
canCauseStatus(): boolean;
|
|
183
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Potentially animates a skeleton (if it can spawn) and returns a message to all those who can see it.
|
|
193
|
+
*/
|
|
194
|
+
animateSkeletalRemains(): void;
|
|
195
|
+
setOffTrap(human?: Human, withMessage?: boolean, damage?: boolean): void;
|
|
184
196
|
getGrowthParticles(): IRGB | undefined;
|
|
185
197
|
/**
|
|
186
198
|
* Increased the fertility (spread) of a plant/growing doodad.
|
|
@@ -195,11 +207,15 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
195
207
|
/**
|
|
196
208
|
* Keep our wells up-to-date with what is happening underground
|
|
197
209
|
*/
|
|
198
|
-
setWellStatus():
|
|
210
|
+
setWellStatus(well?: IWell): IWell;
|
|
199
211
|
/**
|
|
200
212
|
* Switch unlimited/limited water status based on underground water changes
|
|
201
213
|
*/
|
|
202
214
|
switchWellStatus(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Returns the type of liquid that can be gathered from this doodad
|
|
217
|
+
*/
|
|
218
|
+
getLiquidGatherType(): keyof ILiquidGather | undefined;
|
|
203
219
|
getProducedTemperature(): number | undefined;
|
|
204
220
|
getInsulation(type: TempType): number | undefined;
|
|
205
221
|
/**
|
|
@@ -224,14 +240,6 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
|
|
|
224
240
|
*/
|
|
225
241
|
revert(): boolean;
|
|
226
242
|
onUnserialized(): void;
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated
|
|
229
|
-
*/
|
|
230
|
-
protected getNameTranslation(article?: boolean, count?: number): import("../../language/impl/TranslationImpl").default;
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated
|
|
233
|
-
*/
|
|
234
|
-
protected getDescriptionTranslation(): import("../../language/impl/TranslationImpl").default;
|
|
235
243
|
private setupDurabilityHandlers;
|
|
236
244
|
private processSpecials;
|
|
237
245
|
/**
|