@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
|
@@ -9,21 +9,26 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
/// <reference types="node" />
|
|
12
|
+
import CommandManager from "command/CommandManager";
|
|
12
13
|
import EventEmitter from "event/EventEmitter";
|
|
13
14
|
import type { BiomeTypes } from "game/biome/IBiome";
|
|
15
|
+
import { BiomeType } from "game/biome/IBiome";
|
|
14
16
|
import type Entity from "game/entity/Entity";
|
|
15
17
|
import type Human from "game/entity/Human";
|
|
16
18
|
import type { Defense } from "game/entity/IEntity";
|
|
17
19
|
import { DamageType } from "game/entity/IEntity";
|
|
18
20
|
import type { Delay } from "game/entity/IHuman";
|
|
19
21
|
import type { TurnTypeFlag } from "game/entity/player/IPlayer";
|
|
22
|
+
import PlayerManager from "game/entity/player/PlayerManager";
|
|
20
23
|
import type { IGameEvents, IMovementTime, IPlayOptions, ISynchronizeState } from "game/IGame";
|
|
21
24
|
import { PauseSource, SaveType, TickFlag, TurnMode } from "game/IGame";
|
|
22
25
|
import type Island from "game/island/Island";
|
|
23
26
|
import IslandManager from "game/island/IslandManager";
|
|
27
|
+
import { AutoSave } from "game/meta/AutoSave";
|
|
24
28
|
import type { MultiplayerLoadingDescription } from "game/meta/Loading";
|
|
25
|
-
import SaveLoad from "game/meta/SaveLoad";
|
|
26
|
-
import
|
|
29
|
+
import { SaveLoad } from "game/meta/SaveLoad";
|
|
30
|
+
import { Milestone } from "game/milestones/IMilestone";
|
|
31
|
+
import { MilestoneManager } from "game/milestones/MilestoneManager";
|
|
27
32
|
import type { IGameOptions } from "game/options/IGameOptions";
|
|
28
33
|
import { GameMode } from "game/options/IGameOptions";
|
|
29
34
|
import type { ChallengeModifiersCollection } from "game/options/modifiers/challenge/ChallengeModifiers";
|
|
@@ -31,63 +36,75 @@ import type { GameplayModifiersCollection } from "game/options/modifiers/Gamepla
|
|
|
31
36
|
import type MilestoneModifier from "game/options/modifiers/milestone/MilestoneModifier";
|
|
32
37
|
import ReferenceManager from "game/reference/ReferenceManager";
|
|
33
38
|
import TimeManager from "game/time/TimeManager";
|
|
34
|
-
import
|
|
35
|
-
import type
|
|
39
|
+
import ModManager from "mod/ModManager";
|
|
40
|
+
import type { IRendererOrigin } from "renderer/context/RendererOrigin";
|
|
36
41
|
import type WebGlContext from "renderer/WebGlContext";
|
|
37
42
|
import ReplayManager from "replay/ReplayManager";
|
|
38
43
|
import type { IOptions } from "save/data/ISaveDataGlobal";
|
|
44
|
+
import SaveManager from "save/SaveManager";
|
|
39
45
|
import type StringTokenizer from "save/serializer/StringTokenizer";
|
|
46
|
+
import Steamworks from "steamworks/Steamworks";
|
|
40
47
|
import ItemStylesheetHandler from "ui/screen/screens/game/util/item/ItemStylesheet";
|
|
48
|
+
import { Uninit } from "Uninit";
|
|
41
49
|
import type { IVector2 } from "utilities/math/IVector";
|
|
42
50
|
import type { Random } from "utilities/random/Random";
|
|
43
51
|
import type { IVersionInfo } from "utilities/Version";
|
|
52
|
+
import { WebWorkerManager } from "webWorker/WebWorkerManager";
|
|
44
53
|
export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
45
54
|
get isChallenge(): boolean;
|
|
46
|
-
|
|
55
|
+
private difficultyOptions;
|
|
47
56
|
customMilestoneModifiersAllowed: boolean;
|
|
48
57
|
difficulty: GameMode;
|
|
58
|
+
gameplayModifierData: Record<number, any>;
|
|
59
|
+
replay: ReplayManager | undefined;
|
|
60
|
+
saveVersion: string;
|
|
49
61
|
shouldUpdateTablesAndWeight: boolean;
|
|
50
62
|
tickSpeed: number;
|
|
51
|
-
turnMode: TurnMode;
|
|
52
63
|
time: TimeManager;
|
|
53
|
-
|
|
54
|
-
replay: ReplayManager | undefined;
|
|
55
|
-
originalPlayOptions: Partial<IPlayOptions>;
|
|
56
|
-
saveVersion: string;
|
|
64
|
+
turnMode: TurnMode;
|
|
57
65
|
upgrades: string[];
|
|
66
|
+
originalPlayOptions: Partial<IPlayOptions>;
|
|
67
|
+
worldId: string;
|
|
58
68
|
/**
|
|
59
69
|
* The version the save was originally created on
|
|
60
70
|
*/
|
|
61
71
|
version: string;
|
|
62
|
-
worldId: string;
|
|
63
|
-
private difficultyOptions;
|
|
64
72
|
readonly interval = 16.6666;
|
|
65
|
-
|
|
73
|
+
readonly autoSave: AutoSave;
|
|
74
|
+
readonly commandManager: CommandManager;
|
|
75
|
+
readonly milestoneManager: MilestoneManager;
|
|
76
|
+
readonly modManager: ModManager;
|
|
77
|
+
readonly saveLoad: SaveLoad;
|
|
78
|
+
readonly saveManager: SaveManager;
|
|
79
|
+
readonly steamworks: Steamworks;
|
|
80
|
+
readonly uninit: Uninit;
|
|
81
|
+
readonly webWorkerManager: WebWorkerManager;
|
|
82
|
+
readonly islands: IslandManager;
|
|
83
|
+
readonly playerManager: PlayerManager;
|
|
84
|
+
readonly references: ReferenceManager;
|
|
66
85
|
absoluteTime: number;
|
|
86
|
+
challengeCollection?: ChallengeModifiersCollection;
|
|
87
|
+
initialThumbnailTimeout: NodeJS.Timer | undefined;
|
|
88
|
+
lastTickTime: number | undefined;
|
|
89
|
+
milestonesCollection?: GameplayModifiersCollection<MilestoneModifier, Milestone>;
|
|
90
|
+
nextTickTime: number | undefined;
|
|
67
91
|
paused: Set<PauseSource>;
|
|
68
92
|
playing: boolean;
|
|
69
|
-
|
|
70
|
-
lastTickTime: number | undefined;
|
|
93
|
+
previousSaveVersion: IVersionInfo;
|
|
71
94
|
saveClear: boolean;
|
|
95
|
+
saveSize?: string;
|
|
96
|
+
slot: number | undefined;
|
|
72
97
|
tileDecorations: Uint16Array;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
98
|
+
protected stringTokenizer: StringTokenizer | undefined;
|
|
99
|
+
private gameOptionsCached?;
|
|
100
|
+
private synchronizeStateId;
|
|
76
101
|
readonly itemStylesheetHandler: ItemStylesheetHandler | undefined;
|
|
77
|
-
readonly voting: VotingManager;
|
|
78
|
-
milestonesCollection?: GameplayModifiersCollection<MilestoneModifier, Milestone>;
|
|
79
|
-
challengeCollection?: ChallengeModifiersCollection;
|
|
80
|
-
debugRenderer: ITextureDebugRenderer | undefined;
|
|
81
|
-
webGlContext: WebGlContext | undefined;
|
|
82
102
|
visible: boolean;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
canvas: HTMLCanvasElement | undefined;
|
|
103
|
+
webGlContext: WebGlContext | undefined;
|
|
104
|
+
canvasElement: HTMLCanvasElement | undefined;
|
|
86
105
|
private gameLoopLogicTimer;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
protected stringTokenizer: StringTokenizer | undefined;
|
|
90
|
-
readonly saveLoad: typeof SaveLoad;
|
|
106
|
+
initialize(): Promise<void>;
|
|
107
|
+
uninitialize(): Promise<void>;
|
|
91
108
|
toString(): string;
|
|
92
109
|
get isPaused(): boolean;
|
|
93
110
|
/**
|
|
@@ -102,7 +119,11 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
102
119
|
*/
|
|
103
120
|
getPlayingHumans(includeGhosts?: boolean, includeConnecting?: boolean, includeDedicatedServer?: boolean, includeAbsent?: boolean): Human[];
|
|
104
121
|
getNonPlayerHumans(): Human[];
|
|
122
|
+
getPlayingHuman(identifier: string): Human<number> | undefined;
|
|
105
123
|
initializeRenderer(): void;
|
|
124
|
+
/**
|
|
125
|
+
* It's important that this is lowest, so that it happens after modManager's globalSlotReady event
|
|
126
|
+
*/
|
|
106
127
|
globalSlotReady(): void;
|
|
107
128
|
/**
|
|
108
129
|
* Initializes WebGl
|
|
@@ -119,6 +140,10 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
119
140
|
setPaused(pause: boolean, source: PauseSource): void;
|
|
120
141
|
onPlayingEntityChange(_manager: any, entity: Entity): void;
|
|
121
142
|
gameLogicLoop: () => void;
|
|
143
|
+
/**
|
|
144
|
+
* Stops the game logic loop timer
|
|
145
|
+
*/
|
|
146
|
+
stopGameLogicLoop(): void;
|
|
122
147
|
/**
|
|
123
148
|
* Triggers a game logic loop to run in the next javascript event loop
|
|
124
149
|
*/
|
|
@@ -171,8 +196,12 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
171
196
|
/**
|
|
172
197
|
* Collection of things to perform on each tick
|
|
173
198
|
*/
|
|
174
|
-
tickAsync(island: Island, ticks: number, playingHumans: Human[] | undefined, tickFlag: TickFlag | undefined, onProgress: (progess: number) => Promise<void>, dueToAction?: boolean): Promise<void>;
|
|
175
|
-
|
|
199
|
+
tickAsync(island: Island, ticks: number, playingHumans: Human<number>[] | undefined, tickFlag: TickFlag | undefined, onProgress: (progess: number) => Promise<void>, dueToAction?: boolean): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Creates the renderer.
|
|
202
|
+
* Should only be called once when starting / loading a save
|
|
203
|
+
*/
|
|
204
|
+
createRenderer(origin: IRendererOrigin): void;
|
|
176
205
|
/**
|
|
177
206
|
* 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.
|
|
178
207
|
* This method should be able to be called multiple times in a row and nothing unexpected should occur.
|
|
@@ -182,4 +211,6 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
182
211
|
*/
|
|
183
212
|
reset(saveType?: SaveType | false, shouldDisconnect?: boolean, hasDisconnected?: boolean): Promise<void>;
|
|
184
213
|
fastForwardIsland(island: Island, ticks: number, multiplayerLoadingDescription?: MultiplayerLoadingDescription): Promise<void>;
|
|
214
|
+
testFastForwardSpeed(ticks?: number, biomeType?: BiomeType): Promise<void>;
|
|
215
|
+
unlockAllMilestones(): void;
|
|
185
216
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { BiomeTypes } from "game/biome/IBiome";
|
|
12
|
+
import type { ITemplateBiomeOptions } from "game/biome/template/Template";
|
|
12
13
|
import type Doodad from "game/doodad/Doodad";
|
|
13
14
|
import type Corpse from "game/entity/creature/corpse/Corpse";
|
|
14
15
|
import type Creature from "game/entity/creature/Creature";
|
|
@@ -16,7 +17,7 @@ import type { ICharacter, ICrafted } from "game/entity/IHuman";
|
|
|
16
17
|
import type NPC from "game/entity/npc/NPC";
|
|
17
18
|
import type { PlayerState } from "game/entity/player/IPlayer";
|
|
18
19
|
import type { Game } from "game/Game";
|
|
19
|
-
import type {
|
|
20
|
+
import type { ILegacySeeds, IslandId, IWell } from "game/island/IIsland";
|
|
20
21
|
import type Item from "game/item/Item";
|
|
21
22
|
import type { Milestone } from "game/milestones/IMilestone";
|
|
22
23
|
import type { GameMode, IGameOptions } from "game/options/IGameOptions";
|
|
@@ -144,7 +145,7 @@ export type IGameOld = Partial<Game> & Partial<{
|
|
|
144
145
|
mapGenVersion: string;
|
|
145
146
|
npcs: SaferArray<NPC>;
|
|
146
147
|
saveVersion: string;
|
|
147
|
-
seeds:
|
|
148
|
+
seeds: ILegacySeeds;
|
|
148
149
|
tileContainers: ITileContainer[];
|
|
149
150
|
tileData: Record<number, Record<number, Record<number, ITileData[]>>>;
|
|
150
151
|
tileEvents: SaferArray<TileEvent>;
|
|
@@ -159,16 +160,21 @@ export interface IPlayOptions {
|
|
|
159
160
|
difficultyOptions?: IGameOptions;
|
|
160
161
|
milestoneModifiers: Set<Milestone>;
|
|
161
162
|
character: ICharacter;
|
|
162
|
-
multiplayer: IMultiplayerOptions |
|
|
163
|
+
multiplayer: IMultiplayerOptions | boolean | undefined;
|
|
163
164
|
multiplayerServerToJoin: ServerInfo | undefined;
|
|
164
165
|
turnMode: TurnMode;
|
|
165
166
|
realTimeTickSpeed: number;
|
|
166
167
|
customMilestoneModifiersAllowed: boolean;
|
|
167
|
-
mapSize: number | undefined;
|
|
168
168
|
recordReplay: boolean;
|
|
169
169
|
multiplayerWorld?: IMultiplayerWorldData;
|
|
170
170
|
replayLog?: IReplayLogEntry[];
|
|
171
171
|
replyCompletedMilestoneCount?: number;
|
|
172
|
+
skipServerOpen?: boolean;
|
|
173
|
+
template?: IIslandTemplate;
|
|
174
|
+
}
|
|
175
|
+
export interface IIslandTemplate {
|
|
176
|
+
mapSize: number;
|
|
177
|
+
options: ITemplateBiomeOptions;
|
|
172
178
|
}
|
|
173
179
|
export interface IPlayerOptions {
|
|
174
180
|
id?: number;
|
|
@@ -198,38 +204,33 @@ export declare enum SaveType {
|
|
|
198
204
|
}
|
|
199
205
|
export declare enum TileUpdateType {
|
|
200
206
|
Batch = 0,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
Corpse = 2,
|
|
229
|
-
NPC = 3,
|
|
230
|
-
Item = 4,
|
|
231
|
-
TileEvent = 5,
|
|
232
|
-
Player = 6
|
|
207
|
+
Corpse = 1,
|
|
208
|
+
CorpseManager = 2,
|
|
209
|
+
Creature = 3,
|
|
210
|
+
CreatureRestore = 4,
|
|
211
|
+
CreatureSpawn = 5,
|
|
212
|
+
Doodad = 6,
|
|
213
|
+
DoodadAttachStillContainer = 7,
|
|
214
|
+
DoodadChangeType = 8,
|
|
215
|
+
DoodadCreate = 9,
|
|
216
|
+
DoodadDetachStillContainer = 10,
|
|
217
|
+
DoodadEmbers = 11,
|
|
218
|
+
DoodadGatherReady = 12,
|
|
219
|
+
DoodadGrowingStage = 13,
|
|
220
|
+
DoodadOrientation = 14,
|
|
221
|
+
DoodadOverHidden = 15,
|
|
222
|
+
DoodadRemove = 16,
|
|
223
|
+
Item = 17,
|
|
224
|
+
ItemDrop = 18,
|
|
225
|
+
ItemMovement = 19,
|
|
226
|
+
Mod = 20,
|
|
227
|
+
NPC = 21,
|
|
228
|
+
NPCSpawn = 22,
|
|
229
|
+
Player = 23,
|
|
230
|
+
Terrain = 24,
|
|
231
|
+
TileEvent = 25,
|
|
232
|
+
TileEventManager = 26,
|
|
233
|
+
Tilled = 27
|
|
233
234
|
}
|
|
234
235
|
export declare enum PauseSource {
|
|
235
236
|
/**
|
|
@@ -241,7 +242,8 @@ export declare enum PauseSource {
|
|
|
241
242
|
PlayerMoveToIsland = 3,
|
|
242
243
|
SyncGameState = 4,
|
|
243
244
|
WebGlContextLost = 5,
|
|
244
|
-
MultiplayerConnect = 6
|
|
245
|
+
MultiplayerConnect = 6,
|
|
246
|
+
StartGame = 7
|
|
245
247
|
}
|
|
246
248
|
/**
|
|
247
249
|
* For items and terrain that can decay, the temperature range that controls the rate of decay.
|
|
@@ -279,16 +281,13 @@ export interface IMovementTime {
|
|
|
279
281
|
start: number;
|
|
280
282
|
end: number;
|
|
281
283
|
}
|
|
282
|
-
export declare const DEFAULT_MAP_SIZE = 512;
|
|
283
|
-
export declare const DEFAULT_MAP_SIZE_SQUARED: number;
|
|
284
284
|
export declare const LINE_OF_SIGHT_RADIUS = 15;
|
|
285
285
|
export declare const LINE_OF_SIGHT_RADIUS_MAX = 20;
|
|
286
286
|
export declare const LINE_OF_SIGHT_DETAIL = 4;
|
|
287
287
|
export declare const INTERVAL = 16.6666;
|
|
288
|
+
export declare const REAL_TIME_MIN_START_DELAY = 1000;
|
|
288
289
|
export declare const TURN_DELAY_MAX: number;
|
|
289
290
|
export declare const TURN_DELAY_DEFAULT: number;
|
|
290
291
|
export declare const LIGHT_COLOR_DEFAULT: import("utilities/Color").IRGB;
|
|
291
292
|
export declare const TOOLTIP_DELAY_DEFAULT = 0;
|
|
292
293
|
export declare const TOOLTIP_DELAY_MAX = 3000;
|
|
293
|
-
export declare const ZOOM_LEVEL_MAX = 16;
|
|
294
|
-
export declare const ZOOM_LEVEL_MIN = 1;
|
|
@@ -10,29 +10,39 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { BiomeType } from "game/biome/IBiome";
|
|
12
12
|
import type { SkillType } from "game/entity/IHuman";
|
|
13
|
-
import type { CreationId } from "game/IGame";
|
|
14
13
|
import type { TerrainType } from "game/tile/ITerrain";
|
|
15
14
|
import type { WorldZ } from "game/WorldZ";
|
|
16
15
|
import type { ISerializedTranslation } from "language/ITranslation";
|
|
17
16
|
export interface IObject<T> {
|
|
18
|
-
objectType: CreationId;
|
|
19
17
|
type: T;
|
|
20
18
|
id: number;
|
|
21
19
|
renamed?: string | ISerializedTranslation;
|
|
22
20
|
}
|
|
23
21
|
export interface IObjectDescription extends IHasImagePath {
|
|
22
|
+
/**
|
|
23
|
+
* Set to true if we want to store decay, but not have it active (in the case of torches)
|
|
24
|
+
*/
|
|
24
25
|
storeDecay?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* number of game ticks until decay
|
|
28
|
+
*/
|
|
25
29
|
decayMax?: number;
|
|
26
30
|
skillUse?: SkillType;
|
|
31
|
+
/**
|
|
32
|
+
* container maximum weight
|
|
33
|
+
*/
|
|
27
34
|
weightCapacity?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Chance that things will decay inside it
|
|
37
|
+
*/
|
|
28
38
|
preservationChance?: number;
|
|
29
39
|
spawnOnWorldGen?: OptionalDescriptions<BiomeType, OptionalDescriptions<WorldZ, OptionalDescriptions<TerrainType, number>>>;
|
|
30
40
|
}
|
|
31
|
-
export interface IHasImagePath {
|
|
41
|
+
export interface IHasImagePath<ImagePathType = string> {
|
|
32
42
|
/**
|
|
33
43
|
* A replacement image to use. Used in modding.
|
|
34
44
|
*/
|
|
35
|
-
imagePath?:
|
|
45
|
+
imagePath?: ImagePathType;
|
|
36
46
|
/**
|
|
37
47
|
* The number of alternate textures that this image has. Not supported for most things.
|
|
38
48
|
*/
|
|
@@ -9,17 +9,18 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
|
-
import type { CreationId } from "game/IGame";
|
|
13
12
|
import type Island from "game/island/Island";
|
|
14
13
|
import type { IUnserializedCallback } from "save/serializer/ISerializer";
|
|
15
14
|
import type { StringableObject } from "utilities/object/Objects";
|
|
16
|
-
export declare abstract class ObjectManager<ObjectType extends StringableObject
|
|
15
|
+
export declare abstract class ObjectManager<ObjectType extends StringableObject & {
|
|
16
|
+
addReferenceId(): void;
|
|
17
|
+
}, EventsType> extends EventEmitter.Host<EventsType> implements IUnserializedCallback {
|
|
17
18
|
protected readonly island: Island;
|
|
18
19
|
protected readonly objects: SaferArray<ObjectType>;
|
|
19
20
|
private lastUsedId;
|
|
20
21
|
private sparseIds;
|
|
21
|
-
protected abstract readonly creationId: CreationId;
|
|
22
22
|
constructor(island: Island, objects?: SaferArray<ObjectType>);
|
|
23
|
+
get game(): import("./Game").Game;
|
|
23
24
|
/**
|
|
24
25
|
* Called when this object manager is not used anymore (after it was saved!)
|
|
25
26
|
*/
|
|
@@ -31,6 +32,6 @@ export declare abstract class ObjectManager<ObjectType extends StringableObject,
|
|
|
31
32
|
set(id: number, value: ObjectType | undefined): void;
|
|
32
33
|
getObjects(): SaferArray<ObjectType>;
|
|
33
34
|
findUnusedId(): number;
|
|
34
|
-
protected
|
|
35
|
+
protected removeNulls(): void;
|
|
35
36
|
protected registerForMemoryLeakDetection(object: SaferArray<ObjectType>): void;
|
|
36
37
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Player from "game/entity/player/Player";
|
|
12
|
+
import type { Game } from "game/Game";
|
|
12
13
|
import type { Prompt } from "game/meta/prompt/IPrompt";
|
|
13
14
|
import type InterruptChoice from "language/dictionary/InterruptChoice";
|
|
14
15
|
interface IVoteResult {
|
|
@@ -16,9 +17,11 @@ interface IVoteResult {
|
|
|
16
17
|
votes: Map<string, InterruptChoice | undefined>;
|
|
17
18
|
}
|
|
18
19
|
export default class VotingManager {
|
|
20
|
+
private readonly game;
|
|
19
21
|
private _active;
|
|
20
22
|
private readonly _history;
|
|
21
23
|
get activeVoteInterrupt(): Prompt | undefined;
|
|
24
|
+
constructor(game: Game);
|
|
22
25
|
/**
|
|
23
26
|
* Check if voting is active
|
|
24
27
|
* It will also end the existing vote if players left since the vote started
|
|
@@ -14,6 +14,7 @@ import type { TerrainType } from "game/tile/ITerrain";
|
|
|
14
14
|
import type { IModdable } from "mod/ModRegistry";
|
|
15
15
|
import type { IRGB } from "utilities/Color";
|
|
16
16
|
export interface IBiomeDescription extends IModdable {
|
|
17
|
+
disableTravel?: boolean;
|
|
17
18
|
defaultTerrainBackground: TerrainType;
|
|
18
19
|
defaultCaveEntranceFlooring: TerrainType;
|
|
19
20
|
terrainOverrides?: Set<TerrainType>;
|
|
@@ -51,7 +52,7 @@ export interface IFogDescription {
|
|
|
51
52
|
*/
|
|
52
53
|
nightFogColorMaxMix?: number;
|
|
53
54
|
}
|
|
54
|
-
export type BiomeMapGen = MapGenVersions<IBiomeMapGen>;
|
|
55
|
+
export type BiomeMapGen<T = void> = MapGenVersions<IBiomeMapGen>;
|
|
55
56
|
export type BiomeTypes = Exclude<BiomeType, BiomeType.Random>;
|
|
56
57
|
export declare enum BiomeType {
|
|
57
58
|
Random = 0,
|
|
@@ -59,7 +60,8 @@ export declare enum BiomeType {
|
|
|
59
60
|
IceCap = 2,
|
|
60
61
|
Arid = 3,
|
|
61
62
|
Volcanic = 4,
|
|
62
|
-
Wetlands = 5
|
|
63
|
+
Wetlands = 5,
|
|
64
|
+
Template = 6
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
67
|
* @see {@link IFogDescription.ambientColorFogBrightness }
|
package/definitions/game/{utilities/game/TilePosition.d.ts → game/biome/arid/mapGen/2.13.0.d.ts}
RENAMED
|
@@ -8,5 +8,5 @@
|
|
|
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
|
-
|
|
12
|
-
export declare
|
|
11
|
+
import type { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const aridMapGen2130: IBiomeMapGen;
|
|
@@ -8,6 +8,5 @@
|
|
|
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
|
|
12
|
-
|
|
13
|
-
export declare function createSpriteBatch(context: RendererContext, capacity: number, depthOffset?: number, yOffset?: number): ISpriteBatch;
|
|
11
|
+
import type { IBiomeMapGen } from "game/mapgen/IMapGen";
|
|
12
|
+
export declare const coastalMapGen2130: 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 iceCapMapGen2130: IBiomeMapGen;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { TemplateSpawns } from "game/mapgen/IMapGen";
|
|
13
|
+
import { TerrainType } from "game/tile/ITerrain";
|
|
14
|
+
import type { IVector3 } from "utilities/math/IVector";
|
|
15
|
+
export interface ITemplateBiomeOptions {
|
|
16
|
+
spawnCoords: IVector3;
|
|
17
|
+
defaultTerrain: TerrainType;
|
|
18
|
+
templates: TemplateSpawns;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
readonly disableTravel: true;
|
|
22
|
+
readonly defaultTerrainBackground: TerrainType.Dirt;
|
|
23
|
+
readonly defaultCaveEntranceFlooring: TerrainType.Dirt;
|
|
24
|
+
readonly fog: {
|
|
25
|
+
color: import("utilities/Color").IRGB;
|
|
26
|
+
};
|
|
27
|
+
mapGen: BiomeMapGen;
|
|
28
|
+
};
|
|
29
|
+
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 templateMapGen2120: 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 templateMapGen2130: 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 volcanicMapGen2130: 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 wetlandsMapGen2130: IBiomeMapGen;
|