@wayward/types 2.12.3-beta.dev.20221230.1 → 2.13.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +10 -10
- package/definitions/cplusplus/index.d.ts +5 -9
- package/definitions/game/IGlobal.d.ts +0 -12
- package/definitions/game/Uninit.d.ts +11 -5
- package/definitions/game/audio/Audio.d.ts +22 -12
- package/definitions/game/audio/IAudio.d.ts +32 -46
- package/definitions/game/audio/Music.d.ts +1 -2
- package/definitions/game/audio/SoundEffects.d.ts +1 -1
- package/definitions/game/command/ICommand.d.ts +7 -6
- package/definitions/game/{game/entity/npc/npcs/IMerchant.d.ts → command/commands/Noclip.d.ts} +3 -2
- package/definitions/game/event/EventBuses.d.ts +71 -61
- package/definitions/game/event/EventEmitter.d.ts +24 -16
- package/definitions/game/event/EventManager.d.ts +4 -1
- package/definitions/game/game/Game.d.ts +63 -32
- package/definitions/game/game/IGame.d.ts +40 -41
- package/definitions/game/game/IObject.d.ts +14 -4
- package/definitions/game/game/ObjectManager.d.ts +5 -4
- package/definitions/game/game/VotingManager.d.ts +3 -0
- package/definitions/game/game/biome/IBiome.d.ts +4 -2
- package/definitions/game/{utilities/game/TilePosition.d.ts → game/biome/arid/mapGen/2.13.0.d.ts} +2 -2
- package/definitions/game/{renderer/spriteBatch/SpriteBatch.d.ts → game/biome/coastal/mapGen/2.13.0.d.ts} +2 -3
- package/definitions/game/game/biome/iceCap/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/template/Template.d.ts +29 -0
- package/definitions/game/game/biome/template/mapGen/2.12.0.d.ts +12 -0
- package/definitions/game/game/biome/template/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/volcanic/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.13.0.d.ts +12 -0
- package/definitions/game/game/doodad/Doodad.d.ts +99 -53
- package/definitions/game/game/doodad/DoodadInfo.d.ts +5 -5
- package/definitions/game/game/doodad/DoodadManager.d.ts +39 -27
- package/definitions/game/game/doodad/Doodads.d.ts +0 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +67 -6
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +68 -0
- package/definitions/game/game/entity/Entity.d.ts +74 -122
- package/definitions/game/game/entity/EntityManager.d.ts +2 -9
- package/definitions/game/game/entity/EntityMovable.d.ts +121 -0
- package/definitions/game/game/entity/EntityWithStats.d.ts +73 -0
- package/definitions/game/game/entity/Human.d.ts +81 -38
- package/definitions/game/game/entity/IEntity.d.ts +109 -29
- package/definitions/game/game/entity/IHuman.d.ts +38 -23
- package/definitions/game/game/entity/Stats.d.ts +1 -1
- package/definitions/game/game/entity/action/Action.d.ts +9 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +6 -19
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +135 -113
- package/definitions/game/game/entity/action/IAction.d.ts +48 -11
- package/definitions/game/game/entity/action/actions/Absorb.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/AddFuel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Alter.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/AttachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +7 -6
- package/definitions/game/game/entity/action/actions/Build.d.ts +3 -5
- package/definitions/game/game/entity/action/actions/Butcher.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Cast.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ConsumeItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CopyMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CreateControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DamageMap.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DetachContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dig.d.ts +5 -6
- package/definitions/game/game/entity/action/actions/Disassemble.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/DrawMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkInFront.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enchant.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Enhance.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Equip.d.ts +5 -1
- package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Exude.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Fire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +4 -7
- package/definitions/game/game/entity/action/actions/GrabAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Grasp.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/HealOther.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Idle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Jump.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Learn.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Lockpick.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Move.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/MoveTo.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/NPCInteract.d.ts +21 -0
- package/definitions/game/game/entity/action/actions/Navigate.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Noclip.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Offer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenBottle.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Pet.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUp.d.ts +4 -3
- package/definitions/game/game/entity/action/actions/PickUpAllItems.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PickUpExcrement.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/PickUpItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Pour.d.ts +5 -7
- package/definitions/game/game/entity/action/actions/PourOnYourself.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Preserve.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Read.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ReadMap.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/Refine.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Reinforce.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Release.d.ts +4 -1
- package/definitions/game/game/entity/action/actions/RemoveControllableNPC.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -2
- package/definitions/game/game/entity/action/actions/RenameIsland.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RestCancel.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Rub.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/RubCounterClockwise.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +23 -0
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +4 -5
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/ShipToIsland.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Shoot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SmotherFire.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Squeeze.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/StartFire.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/StokeFire.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Summon.d.ts +24 -0
- package/definitions/game/game/entity/action/actions/Tame.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Teleport.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/TellTime.d.ts +3 -1
- package/definitions/game/game/entity/action/actions/TestDepth.d.ts +3 -4
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleContainer.d.ts +5 -2
- package/definitions/game/game/entity/action/actions/ToggleDoor.d.ts +3 -3
- package/definitions/game/game/entity/action/actions/ToggleHitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleTilled.d.ts +4 -6
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +4 -4
- package/definitions/game/game/entity/action/actions/Trade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Transmogrify.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +26 -0
- package/definitions/game/game/entity/action/actions/Unequip.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +3 -2
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemOrder.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateOption.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateWalkPath.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmGatherHarvest.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/helper/ConfirmOnFire.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/Inventories.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +9 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionDrink.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCommands.d.ts +14 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsCreatures.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsHidden.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsMain.d.ts +30 -26
- package/definitions/game/game/entity/action/usable/actions/UsableActionsUseNPC.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/doodad/IUsableActionsDoodad.d.ts +2 -2
- package/definitions/game/game/entity/creature/Creature.d.ts +86 -39
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +22 -23
- package/definitions/game/game/entity/creature/Creatures.d.ts +1 -4
- package/definitions/game/game/entity/creature/ICreature.d.ts +148 -9
- package/definitions/game/game/{inspection/infoProviders/creature/CreatureHealth.d.ts → entity/creature/SpecialAbilities.d.ts} +2 -6
- package/definitions/game/game/entity/creature/TileGroups.d.ts +13 -0
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +33 -26
- package/definitions/game/game/entity/creature/corpse/CorpseManager.d.ts +6 -6
- package/definitions/game/game/entity/creature/corpse/Corpses.d.ts +0 -1
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +17 -0
- package/definitions/game/game/entity/flowfield/FlowField.d.ts +2 -2
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -2
- package/definitions/game/game/entity/flowfield/IFlowFieldManager.d.ts +4 -1
- package/definitions/game/game/entity/npc/INPC.d.ts +7 -0
- package/definitions/game/game/entity/npc/INPCs.d.ts +2 -1
- package/definitions/game/game/entity/npc/NPC.d.ts +96 -26
- package/definitions/game/game/entity/npc/NPCManager.d.ts +18 -7
- package/definitions/game/game/entity/npc/NPCS.d.ts +2 -2
- package/definitions/game/game/entity/npc/npcs/Controllable.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/DeathKnight.d.ts +2 -3
- package/definitions/game/game/entity/npc/npcs/Merchant.d.ts +29 -30
- package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +66 -0
- package/definitions/game/game/entity/player/Customizations.d.ts +4 -4
- package/definitions/game/game/entity/player/IMessageManager.d.ts +7 -4
- package/definitions/game/game/entity/player/IPlayer.d.ts +8 -29
- package/definitions/game/game/entity/player/MessageManager.d.ts +8 -4
- package/definitions/game/game/entity/player/Player.d.ts +27 -16
- package/definitions/game/game/entity/player/PlayerManager.d.ts +23 -13
- package/definitions/game/game/entity/player/note/Corpse.d.ts +2 -2
- package/definitions/game/game/entity/player/note/NoteManager.d.ts +10 -4
- package/definitions/game/game/entity/player/quest/QuestManager.d.ts +3 -4
- package/definitions/game/game/entity/player/quest/Quests.d.ts +1 -2
- package/definitions/game/game/entity/player/quest/quest/Challenge.d.ts +8 -3
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +5 -5
- package/definitions/game/game/entity/skill/ISkills.d.ts +6 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffect.d.ts +4 -4
- package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
- package/definitions/game/game/inspection/IInfoProvider.d.ts +5 -3
- package/definitions/game/game/inspection/IInspection.d.ts +2 -1
- package/definitions/game/game/inspection/InfoProvider.d.ts +29 -3
- package/definitions/game/game/inspection/InfoProviderContext.d.ts +10 -6
- package/definitions/game/game/inspection/Inspection.d.ts +4 -4
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
- package/definitions/game/game/inspection/InspectionsHandler.d.ts +4 -25
- package/definitions/game/game/inspection/handlers/TilePositionInspection.d.ts +5 -8
- package/definitions/game/game/inspection/infoProviders/CivilizationScore.d.ts +30 -0
- package/definitions/game/game/inspection/infoProviders/ContainedItems.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/DoodadSkill.d.ts +29 -0
- package/definitions/game/game/inspection/infoProviders/LabelledValue.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/UseInfo.d.ts +8 -8
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/creature/Aberrant.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +27 -0
- package/definitions/game/game/inspection/infoProviders/creature/{Happiness.d.ts → Difficulty.d.ts} +7 -4
- package/definitions/game/game/inspection/infoProviders/creature/ResistancesAndVulnerabilities.d.ts +9 -3
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/doodad/GrowthStage.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/entity/Health.d.ts +5 -5
- package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +22 -17
- package/definitions/game/game/inspection/infoProviders/item/MagicalDamageType.d.ts +17 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +9 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +5 -6
- package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemDismantleInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemOfferInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemRangedInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemSetDownInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemShootInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemStokeInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTelescopyInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemTrapDamageInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +3 -3
- package/definitions/game/game/inspection/infoProviders/skill/MagicalItemBonuses.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/stat/DefenseInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CorpsesInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/CreatureInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/EquipSlotInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/IslandInspection.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +3 -3
- package/definitions/game/game/inspection/inspections/ItemsInspection.d.ts +2 -2
- package/definitions/game/game/inspection/inspections/MilestoneInspection.d.ts +3 -1
- package/definitions/game/game/inspection/inspections/NPCInspection.d.ts +5 -2
- package/definitions/game/game/inspection/inspections/PlayerInspection.d.ts +4 -2
- package/definitions/game/game/inspection/inspections/RecipeInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/SelfInspection.d.ts +4 -5
- package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/StatInspection.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/TileEventInspection.d.ts +4 -4
- package/definitions/game/game/inspection/inspections/TileInspection.d.ts +5 -6
- package/definitions/game/game/island/IIsland.d.ts +71 -17
- package/definitions/game/game/island/Island.d.ts +75 -148
- package/definitions/game/game/island/IslandManager.d.ts +11 -2
- package/definitions/game/game/island/Port.d.ts +43 -0
- package/definitions/game/game/island/TransientIsland.d.ts +33 -0
- package/definitions/game/game/item/IItem.d.ts +175 -25
- package/definitions/game/game/item/IItemManager.d.ts +21 -8
- package/definitions/game/game/item/Item.d.ts +95 -44
- package/definitions/game/game/item/ItemDescriptions.d.ts +2 -2
- package/definitions/game/game/item/ItemFinder.d.ts +2 -2
- package/definitions/game/game/item/ItemManager.d.ts +123 -94
- package/definitions/game/game/item/ItemMapManager.d.ts +3 -2
- package/definitions/game/game/item/WorldContainer.d.ts +16 -0
- package/definitions/game/game/item/recipe/Crafter.d.ts +3 -3
- package/definitions/game/game/item/recipe/RecipeRequirement.d.ts +2 -2
- package/definitions/game/game/item/recipe/requirement/FireRequirement.d.ts +2 -2
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -9
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +13 -1
- package/definitions/game/game/mapgen/IMapGen.d.ts +16 -5
- package/definitions/game/game/mapgen/MapGen.d.ts +2 -7
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +4 -5
- package/definitions/game/game/mapgen/version/2.12.0.d.ts +7 -3
- package/definitions/game/game/mapgen/version/2.12.1.d.ts +8 -4
- package/definitions/game/game/mapgen/version/2.13.0.d.ts +20 -0
- package/definitions/game/game/mapping/DrawnMap.d.ts +2 -2
- package/definitions/game/game/mapping/IMapTile.d.ts +2 -1
- package/definitions/game/game/mapping/IRegion.d.ts +22 -0
- package/definitions/game/game/meta/AutoSave.d.ts +12 -5
- package/definitions/game/game/meta/SaveLoad.d.ts +15 -9
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +88 -88
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -1
- package/definitions/game/game/meta/prompt/Prompts.d.ts +1 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +4 -1
- package/definitions/game/game/milestones/MilestoneManager.d.ts +12 -6
- package/definitions/game/game/options/IGameOptions.d.ts +6 -2
- package/definitions/game/game/options/modifiers/GameplayModifier.d.ts +10 -6
- package/definitions/game/game/options/modifiers/GameplayModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifier.d.ts +5 -4
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Challenger.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Masochist.d.ts +16 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Retailer.d.ts +23 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +36 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/shared/TamedCreatureMilestoneModifier.d.ts +2 -2
- package/definitions/game/game/reference/IReferenceManager.d.ts +4 -2
- package/definitions/game/game/reference/ReferenceManager.d.ts +8 -3
- package/definitions/game/game/temperature/TemperatureManager.d.ts +51 -26
- package/definitions/game/game/tile/ITerrain.d.ts +15 -27
- package/definitions/game/game/tile/ITileEvent.d.ts +3 -2
- package/definitions/game/game/tile/TerrainTemplates.d.ts +2 -2
- package/definitions/game/game/tile/Terrains.d.ts +1 -3
- package/definitions/game/game/tile/Tile.d.ts +311 -0
- package/definitions/game/game/tile/TileBits.d.ts +28 -0
- package/definitions/game/game/tile/TileEvent.d.ts +34 -31
- package/definitions/game/game/tile/TileEventManager.d.ts +21 -36
- package/definitions/game/game/tile/TileEvents.d.ts +1 -2
- package/definitions/game/game/tile/events/IFire.d.ts +4 -5
- package/definitions/game/game/tile/events/MeltingTile.d.ts +6 -6
- package/definitions/game/language/Dictionary.d.ts +109 -99
- package/definitions/game/language/DictionaryMap.d.ts +237 -314
- package/definitions/game/language/ITranslation.d.ts +6 -1
- package/definitions/game/language/LanguageManager.d.ts +12 -1
- package/definitions/game/language/Translation.d.ts +35 -8
- package/definitions/game/language/TranslationsProvider.d.ts +1 -1
- package/definitions/game/language/dictionary/Health.d.ts +24 -0
- package/definitions/game/language/dictionary/Message.d.ts +762 -917
- package/definitions/game/language/dictionary/Misc.d.ts +37 -32
- package/definitions/game/language/dictionary/UiTranslation.d.ts +842 -850
- package/definitions/game/language/english/Terrains.d.ts +2 -2
- package/definitions/game/language/english/creature/AiTypes.d.ts +13 -0
- package/definitions/game/language/english/creature/Corpses.d.ts +1 -1
- package/definitions/game/language/english/doodad/DoodadGroups.d.ts +1 -1
- package/definitions/game/language/english/game/Actions.d.ts +2 -2
- package/definitions/game/language/english/game/CombatDangerLevels.d.ts +13 -0
- package/definitions/game/language/english/game/CombatStrengths.d.ts +13 -0
- package/definitions/game/language/english/game/LighthouseName.d.ts +15 -0
- package/definitions/game/language/english/game/Regions.d.ts +13 -0
- package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameBiomeNouns.d.ts +1 -1
- package/definitions/game/language/english/game/islandName/IslandNameOverrunWithCreatureDescriptors.d.ts +1 -1
- package/definitions/game/language/english/item/DoodadsExtra.d.ts +13 -0
- package/definitions/game/language/english/item/ItemGroups.d.ts +2 -2
- package/definitions/game/language/english/item/Items.d.ts +2 -2
- package/definitions/game/language/english/living/HealthAccuracies.d.ts +13 -0
- package/definitions/game/language/english/living/Healths.d.ts +13 -0
- package/definitions/game/language/english/player/Milestones.d.ts +1 -1
- package/definitions/game/language/english/player/Skills.d.ts +2 -2
- package/definitions/game/language/english/ui/ModLoadErrors.d.ts +1 -1
- package/definitions/game/language/english/ui/UsableActionTypes.d.ts +2 -2
- package/definitions/game/language/english/ui/sort/MilestoneSorts.d.ts +13 -0
- package/definitions/game/language/english/ui/sort/SkillSorts.d.ts +13 -0
- package/definitions/game/language/impl/TranslationImpl.d.ts +7 -6
- package/definitions/game/language/segment/FormatListSegment.d.ts +1 -1
- package/definitions/game/language/utility/TranslationSorter.d.ts +3 -3
- package/definitions/game/mod/IMod.d.ts +1 -1
- package/definitions/game/mod/Mod.d.ts +2 -6
- package/definitions/game/mod/ModManager.d.ts +4 -0
- package/definitions/game/mod/ModRegistry.d.ts +96 -91
- package/definitions/game/multiplayer/IMultiplayer.d.ts +14 -1
- package/definitions/game/multiplayer/Multiplayer.d.ts +9 -4
- package/definitions/game/multiplayer/dedicatedServer/ssh/DefaultShell.d.ts +2 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/ISshShell.d.ts +2 -0
- package/definitions/game/multiplayer/dedicatedServer/ssh/Shell.d.ts +3 -1
- package/definitions/game/multiplayer/dedicatedServer/ssh/SshServer.d.ts +2 -1
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -0
- package/definitions/game/multiplayer/packets/BasePacket.d.ts +6 -1
- package/definitions/game/multiplayer/packets/IndexedPacket.d.ts +4 -1
- package/definitions/game/multiplayer/packets/Packets.d.ts +1 -1
- package/definitions/game/multiplayer/packets/client/LoadIslandPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/ConnectPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/server/UpdateActionBarPacket.d.ts +3 -2
- package/definitions/game/renderer/IRenderer.d.ts +81 -61
- package/definitions/game/renderer/Overlays.d.ts +1 -1
- package/definitions/game/renderer/Renderer.d.ts +54 -12
- package/definitions/game/renderer/Renderers.d.ts +20 -10
- package/definitions/game/renderer/WebGlContext.d.ts +2 -2
- package/definitions/game/renderer/context/BaseRendererContext.d.ts +8 -2
- package/definitions/game/renderer/context/RendererContext.d.ts +5 -1
- package/definitions/game/renderer/context/RendererOrigin.d.ts +6 -13
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +7 -6
- package/definitions/game/renderer/fieldOfView/IFieldOfView.d.ts +19 -9
- package/definitions/game/renderer/notifier/INotifier.d.ts +8 -6
- package/definitions/game/renderer/notifier/Notifier.d.ts +9 -8
- package/definitions/game/renderer/overlay/GenericOverlay.d.ts +26 -0
- package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleSystem.d.ts +4 -5
- package/definitions/game/renderer/spriteBatch/ISpriteBatch.d.ts +3 -1
- package/definitions/game/renderer/spriteBatch/PersistantSpriteBatch.d.ts +29 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +3 -26
- package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +5 -30
- package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +54 -0
- package/definitions/game/renderer/tile/TileLayer.d.ts +8 -0
- package/definitions/game/renderer/tile/atlas/TileAtlas.d.ts +15 -14
- package/definitions/game/renderer/world/IWorldLayer.d.ts +6 -2
- package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +26 -0
- package/definitions/game/renderer/world/IWorldRenderer.d.ts +8 -0
- package/definitions/game/renderer/world/World.d.ts +5 -5
- package/definitions/game/renderer/world/WorldLayer.d.ts +12 -7
- package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +22 -16
- package/definitions/game/renderer/world/WorldRenderer.d.ts +30 -25
- package/definitions/game/replay/IReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayLogEntry.d.ts +3 -3
- package/definitions/game/replay/ReplayManager.d.ts +3 -0
- package/definitions/game/resource/IResourcePath.d.ts +1 -1
- package/definitions/game/resource/ResourceLoader.d.ts +2 -1
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/SaveManager.d.ts +4 -2
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -5
- package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/datastorage/FileDataStorage.d.ts +3 -1
- package/definitions/game/save/datastorage/IndexedDbDataStorage.d.ts +2 -1
- package/definitions/game/save/serializer/ISerializer.d.ts +18 -4
- package/definitions/game/save/serializer/Serializer.d.ts +5 -3
- package/definitions/game/save/serializer/StringTokenizer.d.ts +4 -0
- package/definitions/game/save/upgrade/UpgradeGame.d.ts +2 -1
- package/definitions/game/save/upgrade/UpgradePlayer.d.ts +2 -1
- package/definitions/game/steamworks/Steamworks.d.ts +9 -1
- package/definitions/game/ui/IUi.d.ts +2 -1
- package/definitions/game/ui/Ui.d.ts +2 -0
- package/definitions/game/ui/component/ArticleComponent.d.ts +14 -0
- package/definitions/game/ui/component/Component.d.ts +4 -3
- package/definitions/game/ui/component/Dropdown.d.ts +21 -4
- package/definitions/game/ui/component/EnumContextMenu.d.ts +1 -3
- package/definitions/game/ui/component/GroupDropdown.d.ts +1 -1
- package/definitions/game/ui/component/IComponent.d.ts +1 -19
- package/definitions/game/ui/component/SortRow.d.ts +1 -1
- package/definitions/game/ui/component/Text.d.ts +6 -1
- package/definitions/game/ui/component/dropdown/EnumDropdown.d.ts +2 -2
- package/definitions/game/ui/component/dropdown/IslandPortsDropdown.d.ts +21 -0
- package/definitions/game/ui/component/dropdown/ItemDropdown.d.ts +3 -1
- package/definitions/game/ui/input/Bind.d.ts +7 -21
- package/definitions/game/ui/input/Bindable.d.ts +108 -97
- package/definitions/game/ui/input/BindableManager.d.ts +2 -2
- package/definitions/game/ui/input/InputManager.d.ts +1 -0
- package/definitions/game/ui/old/IOldUi.d.ts +5 -4
- package/definitions/game/ui/old/OldUi.d.ts +7 -11
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +56 -20
- package/definitions/game/ui/screen/Screen.d.ts +3 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +2 -4
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +6 -5
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +4 -2
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/IMessages.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/CanvasDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +11 -7
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/Item.d.ts +5 -5
- package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/CraftingDialog.d.ts +4 -4
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +3 -2
- package/definitions/game/ui/screen/screens/game/dialog/IMilestonesDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/ISkillsDialog.d.ts +14 -0
- package/definitions/game/ui/screen/screens/game/dialog/InspectDialog.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +31 -0
- package/definitions/game/ui/screen/screens/game/dialog/IslandsShippingDialog.d.ts +34 -0
- package/definitions/game/ui/screen/screens/game/dialog/MapDialog.d.ts +3 -3
- package/definitions/game/ui/screen/screens/game/dialog/MessagesEditFiltersDialog.d.ts +7 -0
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/dialog/crafting/RecipeCache.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IIslandsDialog.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/dialog/islands/IslandsDialog.d.ts +95 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +9 -3
- package/definitions/game/ui/screen/screens/game/static/MenuBar.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/menubar/MenuBarButtonDescriptions.d.ts +1 -2
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +10 -9
- package/definitions/game/ui/screen/screens/game/static/stats/StatDisplayDescriptions.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/static/stats/component/Stat.d.ts +7 -6
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusEffects.d.ts +2 -2
- package/definitions/game/ui/screen/screens/game/util/item/ItemStylesheet.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/MovementHandler.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/util/movement/WalkToTileHandler.d.ts +3 -3
- package/definitions/game/ui/screen/screens/menu/menus/GameEndMenu.d.ts +4 -2
- package/definitions/game/ui/screen/screens/menu/menus/character/Swatch.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModInfoMenu.d.ts +2 -2
- package/definitions/game/ui/tooltip/Tooltip.d.ts +4 -17
- package/definitions/game/utilities/Files.d.ts +0 -1
- package/definitions/game/utilities/Log.d.ts +71 -67
- package/definitions/game/utilities/Version.d.ts +15 -9
- package/definitions/game/utilities/WebWorkerHelpers.d.ts +3 -6
- package/definitions/game/utilities/class/Inject.d.ts +2 -6
- package/definitions/game/utilities/collection/Arrays.d.ts +1 -42
- package/definitions/game/utilities/collection/Tuple.d.ts +53 -0
- package/definitions/game/utilities/collection/map/PriorityMap.d.ts +2 -1
- package/definitions/game/utilities/enum/EnumCursor.d.ts +1 -3
- package/definitions/game/utilities/enum/Enums.d.ts +7 -16
- package/definitions/game/utilities/enum/IEnum.d.ts +2 -1
- package/definitions/game/utilities/generic/GenericManager.d.ts +3 -1
- package/definitions/game/utilities/math/Bound3.d.ts +2 -2
- package/definitions/game/utilities/math/IVector.d.ts +7 -2
- package/definitions/game/utilities/math/Math2.d.ts +66 -0
- package/definitions/game/utilities/math/Range.d.ts +3 -0
- package/definitions/game/utilities/math/Rectangle.d.ts +3 -1
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -0
- package/definitions/game/utilities/object/Objects.d.ts +1 -1
- package/definitions/game/utilities/random/IRandom.d.ts +36 -0
- package/definitions/game/utilities/random/Random.d.ts +20 -54
- package/definitions/game/utilities/random/RandomReference.d.ts +16 -0
- package/definitions/game/utilities/random/RandomUtilities.d.ts +33 -0
- package/definitions/game/utilities/random/RandomValueGenerator.d.ts +3 -3
- package/definitions/game/utilities/random/SeededGenerator.d.ts +37 -0
- package/definitions/game/utilities/random/generators/LegacySeededGenerator.d.ts +21 -0
- package/definitions/game/utilities/random/generators/PCGSeededGenerator.d.ts +34 -0
- package/definitions/game/utilities/random/generators/{RandomItem.d.ts → specific/RandomItem.d.ts} +4 -2
- package/definitions/game/utilities/random/generators/{RandomRange.d.ts → specific/RandomRange.d.ts} +2 -1
- package/definitions/game/utilities/string/Interpolator.d.ts +3 -4
- package/definitions/game/utilities/string/Strings.d.ts +4 -0
- package/definitions/game/utilities/typesglobal/Descriptions.d.ts +1 -3
- package/definitions/game/webWorker/WebWorkerManager.d.ts +4 -3
- package/definitions/hosts/electron/main/interfaces.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
- package/definitions/hosts/electron/main/ipc/handlers/os/os.d.ts +5 -2
- package/definitions/hosts/electron/main/launchOptions.d.ts +3 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
- package/definitions/hosts/shared/ipc/handlers/os/os.d.ts +1 -0
- package/definitions/hosts/shared/ipc/os.d.ts +1 -0
- package/definitions/language-sync/index.d.ts +11 -0
- package/definitions/launcher/App.d.ts +29 -0
- package/definitions/launcher/Init.d.ts +16 -0
- package/definitions/launcher/Production.d.ts +10 -0
- package/definitions/launcher/ui/Article.d.ts +19 -0
- package/definitions/launcher/ui/Button.d.ts +36 -0
- package/definitions/launcher/ui/Component.d.ts +95 -0
- package/definitions/launcher/ui/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/LauncherUI.d.ts +32 -0
- package/definitions/launcher/ui/Section.d.ts +17 -0
- package/definitions/launcher/ui/component/Article.d.ts +22 -0
- package/definitions/launcher/ui/component/Button.d.ts +36 -0
- package/definitions/launcher/ui/component/Component.d.ts +95 -0
- package/definitions/launcher/ui/component/InputButton.d.ts +23 -0
- package/definitions/launcher/ui/component/Section.d.ts +17 -0
- package/definitions/launcher/ui/launcher/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/launcher/FolderSelector.d.ts +63 -0
- package/definitions/launcher/ui/launcher/Mods.d.ts +16 -0
- package/definitions/launcher/ui/launcher/Resources.d.ts +18 -0
- package/definitions/launcher/ui/main/FolderButton.d.ts +29 -0
- package/definitions/launcher/ui/main/FolderSelector.d.ts +48 -0
- package/definitions/launcher/ui/main/Mods.d.ts +20 -0
- package/definitions/launcher/ui/main/Resources.d.ts +23 -0
- package/definitions/launcher/utilities/EventManager.d.ts +49 -0
- package/definitions/launcher/utilities/prototype/Apply.d.ts +11 -0
- package/definitions/test/core/application.d.ts +17 -15
- package/definitions/test/core/applicationDom.d.ts +8 -5
- package/definitions/test/core/applicationInteractions.d.ts +16 -13
- package/definitions/test/core/applicationLogger.d.ts +1 -1
- package/definitions/test/core/applicationManager.d.ts +12 -15
- package/definitions/test/core/chromeDriver.d.ts +2 -2
- package/definitions/test/index.d.ts +2 -3
- package/definitions/test/interfaces.d.ts +2 -6
- package/definitions/test/suite/functionalTests/multiplayer/Multiplayer.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/SaveImport.spec.d.ts +3 -3
- package/definitions/test/suite/functionalTests/singleplayer/Singleplayer.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Actions.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/game/Island.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/KdTree.spec.d.ts +3 -3
- package/definitions/test/suite/unitTests/utilities/MagicalPropertyManager.spec.d.ts +3 -3
- package/definitions/test/testRunner.d.ts +224 -0
- package/definitions/test/util/helpers.d.ts +12 -0
- package/definitions/test/util/ports.d.ts +11 -0
- package/definitions/test/util/random.d.ts +3 -2
- package/package.json +24 -24
- package/tsconfig.json +7 -7
- package/tsconfig.mod.base.json +44 -44
- package/definitions/game/game/entity/creature/Pathing.d.ts +0 -30
- package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +0 -65
- package/definitions/game/utilities/game/TileHelpers.d.ts +0 -123
- package/definitions/test/util/mochaNUnitReporter.d.ts +0 -38
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { CreatureType } from "game/entity/creature/ICreature";
|
|
12
12
|
import { StatusEffectChangeReason } from "game/entity/IEntity";
|
|
13
13
|
import type StatusEffect from "game/entity/status/StatusEffect";
|
|
14
|
-
import type {
|
|
14
|
+
import type { DisplayableItemType } from "game/item/IItem";
|
|
15
15
|
import type { INotificationLocation } from "renderer/notifier/INotifier";
|
|
16
16
|
import { CreatureNotifierType, ItemNotifierType, NotifierIconType, StatNotificationType } from "renderer/notifier/INotifier";
|
|
17
17
|
import type RendererContext from "renderer/context/RendererContext";
|
|
@@ -19,19 +19,20 @@ import type { IResourceContainer } from "resource/IResourceLoader";
|
|
|
19
19
|
export default class Notifier {
|
|
20
20
|
private readonly context;
|
|
21
21
|
private readonly capacity;
|
|
22
|
+
private readonly spriteBatch;
|
|
23
|
+
private spriteAtlas;
|
|
24
|
+
private count;
|
|
22
25
|
private mostRecent;
|
|
23
26
|
private mostRecentLife;
|
|
24
|
-
private count;
|
|
25
|
-
private notificationCount;
|
|
26
|
-
private readonly notifications;
|
|
27
|
-
private readonly spriteBatch;
|
|
28
27
|
private nextUpdate;
|
|
28
|
+
private notificationCount;
|
|
29
|
+
private notifications;
|
|
29
30
|
private suspended;
|
|
30
|
-
private spriteAtlas;
|
|
31
31
|
constructor(context: RendererContext, capacity: number);
|
|
32
32
|
setResources(resourceContainer: IResourceContainer): void;
|
|
33
|
+
clear(): void;
|
|
33
34
|
delete(): void;
|
|
34
|
-
addItem(location: INotificationLocation, itemNotifierType: ItemNotifierType, type:
|
|
35
|
+
addItem(location: INotificationLocation, itemNotifierType: ItemNotifierType, type: DisplayableItemType): void;
|
|
35
36
|
addCreature(location: INotificationLocation, creatureNotifierType: CreatureNotifierType, type: CreatureType, aberrant?: boolean): void;
|
|
36
37
|
addStat(location: INotificationLocation, type: StatNotificationType, value: number): void;
|
|
37
38
|
addStatusEffect(location: INotificationLocation, statusEffect: StatusEffect, reason: StatusEffectChangeReason): void;
|
|
@@ -39,7 +40,7 @@ export default class Notifier {
|
|
|
39
40
|
suspend(): void;
|
|
40
41
|
resume(): void;
|
|
41
42
|
update(timeStamp: number): void;
|
|
42
|
-
render(timeStamp: number, x: number, y: number, tileScale: number
|
|
43
|
+
render(timeStamp: number, x: number, y: number, tileScale: number): boolean;
|
|
43
44
|
private addNotification;
|
|
44
45
|
private renderNotification;
|
|
45
46
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { IOverlayInfo } from "game/tile/ITerrain";
|
|
12
|
+
import type Tile from "game/tile/Tile";
|
|
13
|
+
export default abstract class GenericOverlay<OVERLAY extends IOverlayInfo = IOverlayInfo, PARAMS extends any[] = []> {
|
|
14
|
+
protected readonly overlay: Map<Tile, OVERLAY>;
|
|
15
|
+
protected alpha: number;
|
|
16
|
+
constructor(hideByDefault?: boolean);
|
|
17
|
+
get isHidden(): boolean;
|
|
18
|
+
getDefaultAlpha(): number;
|
|
19
|
+
show(): void;
|
|
20
|
+
hide(): void;
|
|
21
|
+
addOrUpdate(tile: Tile, ...params: PARAMS): void;
|
|
22
|
+
protected abstract generateOverlayInfo(tile: Tile, ...params: PARAMS): OVERLAY | undefined;
|
|
23
|
+
protected updateOverlayAlpha(tile: Tile, overlay: OVERLAY, alpha: number): OVERLAY | undefined;
|
|
24
|
+
clear(): void;
|
|
25
|
+
private updateAlpha;
|
|
26
|
+
}
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type RendererContext from "renderer/context/RendererContext";
|
|
12
|
+
import type { IParticleRenderer } from "renderer/particle/IParticleRenderer";
|
|
12
13
|
/**
|
|
13
14
|
* Particle renderer for webgl 1
|
|
14
15
|
*/
|
|
15
|
-
export declare class ParticleRenderer1 {
|
|
16
|
+
export declare class ParticleRenderer1 implements IParticleRenderer {
|
|
16
17
|
private readonly context;
|
|
17
18
|
private readonly positionSizeData;
|
|
18
19
|
private readonly colorData;
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type RendererContext from "renderer/context/RendererContext";
|
|
12
|
+
import type { IParticleRenderer } from "renderer/particle/IParticleRenderer";
|
|
12
13
|
/**
|
|
13
14
|
* Particle renderer for webgl 2
|
|
14
15
|
*/
|
|
15
|
-
export declare class ParticleRenderer2 {
|
|
16
|
+
export declare class ParticleRenderer2 implements IParticleRenderer {
|
|
16
17
|
private readonly context;
|
|
17
18
|
private readonly dataArray;
|
|
18
19
|
private readonly colorArray;
|
|
@@ -8,19 +8,19 @@
|
|
|
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 Island from "game/island/Island";
|
|
12
11
|
import type RendererContext from "renderer/context/RendererContext";
|
|
13
12
|
import type WebGlContext from "renderer/WebGlContext";
|
|
14
13
|
import type WorldRenderer from "renderer/world/WorldRenderer";
|
|
15
14
|
import type { IRGB } from "utilities/Color";
|
|
15
|
+
import type Tile from "game/tile/Tile";
|
|
16
16
|
export default class ParticleSystem {
|
|
17
17
|
private readonly context;
|
|
18
18
|
private readonly worldRenderer;
|
|
19
19
|
private readonly maxParticles;
|
|
20
|
-
|
|
20
|
+
readonly particles: Float32Array;
|
|
21
|
+
readonly dataPerParticle = 10;
|
|
21
22
|
private readonly positionSizeData;
|
|
22
23
|
private readonly colorData;
|
|
23
|
-
private readonly dataPerParticle;
|
|
24
24
|
private count;
|
|
25
25
|
private lastUsedParticle;
|
|
26
26
|
private nextUpdate;
|
|
@@ -28,8 +28,7 @@ export default class ParticleSystem {
|
|
|
28
28
|
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
29
29
|
constructor(context: RendererContext, worldRenderer: WorldRenderer, maxParticles?: number);
|
|
30
30
|
delete(): void;
|
|
31
|
-
create(
|
|
32
|
-
createMultiple(island: Island, tileX: number, tileY: number, tileZ: number, particle: IRGB, count: number, intensity?: number): void;
|
|
31
|
+
create(tile: Tile, particle: IRGB, count?: number, intensity?: number): number[] | undefined;
|
|
33
32
|
clear(): void;
|
|
34
33
|
update(timeStamp: number): void;
|
|
35
34
|
render(x: number, y: number): boolean;
|
|
@@ -12,7 +12,9 @@ export default interface ISpriteBatch {
|
|
|
12
12
|
readonly capacity: number;
|
|
13
13
|
delete(): void;
|
|
14
14
|
begin(): void;
|
|
15
|
-
add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void;
|
|
16
15
|
end(): number;
|
|
16
|
+
add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): number | undefined;
|
|
17
|
+
update(index: number, tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void;
|
|
18
|
+
remove(index: number): boolean;
|
|
17
19
|
render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
18
20
|
}
|
|
@@ -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 ISpriteBatch from "renderer/spriteBatch/ISpriteBatch";
|
|
12
|
+
/**
|
|
13
|
+
* A sprite batch that doesn't reset on each frame.
|
|
14
|
+
* Works similar to tile layers (tile / doodad rendering)
|
|
15
|
+
*/
|
|
16
|
+
export declare class PersistantSpriteBatch implements ISpriteBatch {
|
|
17
|
+
readonly spriteBatch: ISpriteBatch;
|
|
18
|
+
private _dirty;
|
|
19
|
+
private readonly _freeIndexes;
|
|
20
|
+
constructor(spriteBatch: ISpriteBatch);
|
|
21
|
+
get capacity(): number;
|
|
22
|
+
delete(): void;
|
|
23
|
+
begin(): void;
|
|
24
|
+
end(): number;
|
|
25
|
+
add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number | undefined, offsetY?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, alpha?: number | undefined): number | undefined;
|
|
26
|
+
update(index: number, tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void;
|
|
27
|
+
remove(index: number): boolean;
|
|
28
|
+
render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
29
|
+
}
|
|
@@ -8,35 +8,12 @@
|
|
|
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
|
|
12
|
-
import type Vector2 from "utilities/math/Vector2";
|
|
13
|
-
import type WebGlContext from "renderer/WebGlContext";
|
|
14
|
-
import type RendererContext from "renderer/context/RendererContext";
|
|
11
|
+
import { SpriteBatchBase } from "renderer/spriteBatch/SpriteBatchBase";
|
|
15
12
|
/**
|
|
16
13
|
* SpriteBatch for WebGl 1
|
|
17
14
|
*/
|
|
18
|
-
export default class SpriteBatch1
|
|
19
|
-
private readonly context;
|
|
20
|
-
readonly capacity: number;
|
|
21
|
-
private readonly depthOffset;
|
|
22
|
-
private readonly yOffset;
|
|
23
|
-
private readonly shaderProgram;
|
|
24
|
-
texSprites: WebGLTexture | undefined;
|
|
25
|
-
inverseSpriteTextureSize: Vector2 | undefined;
|
|
26
|
-
private count;
|
|
27
|
-
private readonly buffer;
|
|
28
|
-
private readonly colorBuffer;
|
|
29
|
-
private array;
|
|
30
|
-
private colorArray;
|
|
31
|
-
private begun;
|
|
32
|
-
private _setup;
|
|
33
|
-
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
34
|
-
constructor(context: RendererContext, capacity: number, depthOffset?: number, yOffset?: number);
|
|
15
|
+
export default class SpriteBatch1 extends SpriteBatchBase {
|
|
35
16
|
setup(): void;
|
|
36
|
-
|
|
37
|
-
clear(): void;
|
|
38
|
-
begin(): void;
|
|
39
|
-
add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void;
|
|
40
|
-
end(): number;
|
|
17
|
+
bindBuffers(): void;
|
|
41
18
|
render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
42
19
|
}
|
|
@@ -8,41 +8,16 @@
|
|
|
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 ISpriteBatch from "renderer/spriteBatch/ISpriteBatch";
|
|
12
|
-
import type Vector2 from "utilities/math/Vector2";
|
|
13
|
-
import type WebGlContext from "renderer/WebGlContext";
|
|
14
11
|
import type RendererContext from "renderer/context/RendererContext";
|
|
12
|
+
import { SpriteBatchBase } from "renderer/spriteBatch/SpriteBatchBase";
|
|
15
13
|
/**
|
|
16
14
|
* SpriteBatch for WebGl 2
|
|
17
15
|
*/
|
|
18
|
-
export default class SpriteBatch2
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
private readonly depthOffset;
|
|
22
|
-
private readonly yOffset;
|
|
23
|
-
private readonly shaderProgram;
|
|
24
|
-
texSprites: WebGLTexture | undefined;
|
|
25
|
-
inverseSpriteTextureSize: Vector2 | undefined;
|
|
26
|
-
private spriteCount;
|
|
27
|
-
private readonly texCordBuffer;
|
|
28
|
-
private readonly dataBuffer;
|
|
29
|
-
private dataArray;
|
|
30
|
-
private readonly colorBuffer;
|
|
31
|
-
private colorArray;
|
|
32
|
-
private begun;
|
|
33
|
-
private readonly vertexArray;
|
|
34
|
-
private _setup;
|
|
35
|
-
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
36
|
-
constructor(context: RendererContext, capacity: number, depthOffset?: number, yOffset?: number);
|
|
16
|
+
export default class SpriteBatch2 extends SpriteBatchBase {
|
|
17
|
+
protected readonly vertexArray: WebGLVertexArrayObject;
|
|
18
|
+
constructor(context: RendererContext, capacity: number, depthOffset: number, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
|
|
37
19
|
setup(): void;
|
|
38
20
|
delete(): void;
|
|
39
|
-
|
|
40
|
-
begin(): void;
|
|
41
|
-
add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void;
|
|
42
|
-
/**
|
|
43
|
-
* Binds sprites to be included in the next render
|
|
44
|
-
* @returns number of sprites being rendered
|
|
45
|
-
*/
|
|
46
|
-
end(): number;
|
|
21
|
+
bindBuffers(): void;
|
|
47
22
|
render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
48
23
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CompiledProgram from "renderer/CompiledProgram";
|
|
12
|
+
import type WebGlContext from "renderer/WebGlContext";
|
|
13
|
+
import type RendererContext from "renderer/context/RendererContext";
|
|
14
|
+
import type ISpriteBatch from "renderer/spriteBatch/ISpriteBatch";
|
|
15
|
+
import type Vector2 from "utilities/math/Vector2";
|
|
16
|
+
export declare const dataLengthPerSprite = 8;
|
|
17
|
+
export declare const colorLengthPerSprite = 4;
|
|
18
|
+
/**
|
|
19
|
+
* Base class for sprite batches
|
|
20
|
+
*/
|
|
21
|
+
export declare abstract class SpriteBatchBase implements ISpriteBatch {
|
|
22
|
+
protected readonly context: RendererContext;
|
|
23
|
+
readonly capacity: number;
|
|
24
|
+
protected readonly depthOffset: number;
|
|
25
|
+
protected readonly yOffset: number;
|
|
26
|
+
protected readonly enableAlphaMultiplcation: boolean;
|
|
27
|
+
protected readonly enforceBeginAndEnd: boolean;
|
|
28
|
+
protected readonly shaderProgram: CompiledProgram;
|
|
29
|
+
texSprites: WebGLTexture | undefined;
|
|
30
|
+
inverseSpriteTextureSize: Vector2 | undefined;
|
|
31
|
+
protected spriteCount: number;
|
|
32
|
+
protected readonly texCordBuffer: WebGLBuffer;
|
|
33
|
+
protected readonly dataBuffer: WebGLBuffer;
|
|
34
|
+
protected dataArray: Float32Array;
|
|
35
|
+
protected readonly colorBuffer: WebGLBuffer;
|
|
36
|
+
protected colorArray: Uint8Array;
|
|
37
|
+
protected begun: boolean;
|
|
38
|
+
protected _setup: boolean;
|
|
39
|
+
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
40
|
+
constructor(context: RendererContext, capacity: number, depthOffset: number, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
|
|
41
|
+
abstract setup(): void;
|
|
42
|
+
protected abstract bindBuffers(): void;
|
|
43
|
+
abstract render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
44
|
+
delete(): void;
|
|
45
|
+
begin(): void;
|
|
46
|
+
add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): number | undefined;
|
|
47
|
+
update(index: number, tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void;
|
|
48
|
+
remove(index: number): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Binds sprites to be included in the next render
|
|
51
|
+
* @returns number of sprites being rendered
|
|
52
|
+
*/
|
|
53
|
+
end(): number;
|
|
54
|
+
}
|
|
@@ -32,6 +32,14 @@ export default class TileLayer {
|
|
|
32
32
|
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
33
33
|
private readonly texTileSprites;
|
|
34
34
|
private readonly inverseTileSpriteTextureSize;
|
|
35
|
+
/**
|
|
36
|
+
* Flag for marking that there are changes that need to be rendered
|
|
37
|
+
*/
|
|
38
|
+
dirty: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Allow overriding the tile layer ticks, used for animation frames
|
|
41
|
+
*/
|
|
42
|
+
ticks?: number;
|
|
35
43
|
readonly renderLayerFlag: RenderLayerFlag;
|
|
36
44
|
private readonly tileShaderProgram;
|
|
37
45
|
private readonly singleTileData;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { BiomeType } from "game/biome/IBiome";
|
|
12
12
|
import type DoodadInfo from "game/doodad/DoodadInfo";
|
|
13
|
-
import type {
|
|
13
|
+
import type { DisplayableDoodadType } from "game/doodad/IDoodad";
|
|
14
14
|
import type { ItemType } from "game/item/IItem";
|
|
15
15
|
import { TerrainType } from "game/tile/ITerrain";
|
|
16
16
|
import type { TerrainDecoration } from "renderer/Decorations";
|
|
@@ -18,25 +18,26 @@ import type { TerrainTileInfo } from "renderer/tile/TerrainTileInfo";
|
|
|
18
18
|
import { TileType } from "renderer/tile/atlas/ITileAtlas";
|
|
19
19
|
import type Vector2 from "utilities/math/Vector2";
|
|
20
20
|
export default class TileAtlas {
|
|
21
|
+
readonly doodadItems: Map<ItemType, DoodadInfo>;
|
|
22
|
+
readonly doodads: Map<DisplayableDoodadType, DoodadInfo>;
|
|
23
|
+
readonly mounds: Map<TerrainType, DoodadInfo>;
|
|
24
|
+
readonly terrainDecoration: Map<TerrainDecoration, DoodadInfo>;
|
|
21
25
|
private readonly terrain;
|
|
22
26
|
private readonly terrainTilled;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
private mountainTypes;
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private waterTypes;
|
|
32
|
-
private iceTypes;
|
|
33
|
-
private freshWaterTypes;
|
|
34
|
-
private swampWaterTypes;
|
|
35
|
-
private baseWaterTypes;
|
|
27
|
+
private readonly baseWaterTypes;
|
|
28
|
+
private readonly freshWaterTypes;
|
|
29
|
+
private readonly iceTypes;
|
|
30
|
+
private readonly mountainGroundTypes;
|
|
31
|
+
private readonly mountainTypes;
|
|
32
|
+
private readonly oreTypes;
|
|
33
|
+
private readonly renderOverMountainTypes;
|
|
34
|
+
private readonly swampWaterTypes;
|
|
35
|
+
private readonly waterTypes;
|
|
36
36
|
getTerrain(terrainType: TerrainType, biomeType: BiomeType | undefined): TerrainTileInfo | undefined;
|
|
37
37
|
getTerrainTilled(terrainType: TerrainType, biomeType: BiomeType | undefined): TerrainTileInfo | undefined;
|
|
38
38
|
setTerrain(terrainType: TerrainType, terrainTileInfo: TerrainTileInfo, biomeType: BiomeType | undefined): void;
|
|
39
39
|
setTerrainTilled(terrainType: TerrainType, terrainTileInfo: TerrainTileInfo, biomeType: BiomeType | undefined): void;
|
|
40
|
+
clearCaches(): void;
|
|
40
41
|
generateLookups(): void;
|
|
41
42
|
isMountain(type: TerrainType): boolean;
|
|
42
43
|
isMountainGround(type: TerrainType): boolean;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type DoodadInfo from "game/doodad/DoodadInfo";
|
|
12
12
|
import type { DoodadType, IDoodadDescription } from "game/doodad/IDoodad";
|
|
13
13
|
import type { TerrainType } from "game/tile/ITerrain";
|
|
14
|
+
import type ExploreMap from "renderer/exploreMap/ExploreMap";
|
|
14
15
|
export interface ITileUpdate {
|
|
15
16
|
terrainType: TerrainType;
|
|
16
17
|
terrainMasks: TerrainMask;
|
|
@@ -26,8 +27,8 @@ export interface IDoodadUpdate {
|
|
|
26
27
|
hasGraphicVariation: boolean;
|
|
27
28
|
terrainMasks: TerrainMask;
|
|
28
29
|
}
|
|
29
|
-
export type onTileUpdateDelegate = (x: number, y: number,
|
|
30
|
-
export type onDoodadUpdateDelegate = (x: number, y: number,
|
|
30
|
+
export type onTileUpdateDelegate = (x: number, y: number, flushTileImmediately: boolean, debug?: boolean) => void;
|
|
31
|
+
export type onDoodadUpdateDelegate = (x: number, y: number, flushTileImmediately: boolean, doodadUpdate: IDoodadUpdate) => void;
|
|
31
32
|
export type TerrainData = number;
|
|
32
33
|
export declare enum TerrainMask {
|
|
33
34
|
None = 0,
|
|
@@ -38,4 +39,7 @@ export declare enum TerrainMask {
|
|
|
38
39
|
Wall = 1073741824,
|
|
39
40
|
Fence = 2147483648
|
|
40
41
|
}
|
|
42
|
+
export interface IWorldLayerOld {
|
|
43
|
+
exploredMap?: ExploreMap;
|
|
44
|
+
}
|
|
41
45
|
export declare const stillContainerOrder: Record<number, number>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 RendererContext from "renderer/context/RendererContext";
|
|
12
|
+
import type { RenderLayerFlag } from "renderer/world/IWorldRenderer";
|
|
13
|
+
export declare const jitRenderingExtraRenderRange = 2;
|
|
14
|
+
export declare const jitRenderingMaxTileUpdates = 4096;
|
|
15
|
+
export interface IWorldLayerRendererEvents {
|
|
16
|
+
/**
|
|
17
|
+
* Called when rendering the world
|
|
18
|
+
* @returns Flags indicating what layers to render
|
|
19
|
+
*/
|
|
20
|
+
getRenderFlags(): RenderLayerFlag;
|
|
21
|
+
/**
|
|
22
|
+
* Called when tile layers are created
|
|
23
|
+
* Custom tile layers can be added to it
|
|
24
|
+
*/
|
|
25
|
+
createTileLayers(context: RendererContext, width: number, height: number, positionBuffer: WebGLBuffer): void;
|
|
26
|
+
}
|
|
@@ -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 { IBound3 } from "utilities/math/Bound3";
|
|
11
12
|
export declare enum SpriteBatchLayer {
|
|
12
13
|
Corpse = 0,
|
|
13
14
|
Item = 1,
|
|
@@ -54,3 +55,10 @@ export declare enum TileLayerType {
|
|
|
54
55
|
Doodad = 3,
|
|
55
56
|
DoodadOver = 4
|
|
56
57
|
}
|
|
58
|
+
export interface IBounds {
|
|
59
|
+
viewportBounds: IBound3;
|
|
60
|
+
startX: number;
|
|
61
|
+
endX: number;
|
|
62
|
+
startY: number;
|
|
63
|
+
endY: number;
|
|
64
|
+
}
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
import EventEmitter from "event/EventEmitter";
|
|
12
12
|
import { TileUpdateType } from "game/IGame";
|
|
13
13
|
import type Island from "game/island/Island";
|
|
14
|
-
import type
|
|
14
|
+
import type Tile from "game/tile/Tile";
|
|
15
15
|
import type { WorldZ } from "game/WorldZ";
|
|
16
16
|
import WorldLayer from "renderer/world/WorldLayer";
|
|
17
17
|
import type { ISerializable, ISerializer } from "save/serializer/ISerializer";
|
|
18
18
|
export interface IWorldEvents {
|
|
19
|
-
updateTile(
|
|
19
|
+
updateTile(tile: Tile, tileUpdateType: TileUpdateType): any;
|
|
20
20
|
}
|
|
21
21
|
export default class World extends EventEmitter.Host<IWorldEvents> implements ISerializable {
|
|
22
22
|
readonly island: Island;
|
|
23
23
|
width: number;
|
|
24
24
|
height: number;
|
|
25
25
|
layers: Record<number, WorldLayer>;
|
|
26
|
-
_loaded: boolean;
|
|
27
26
|
private batchTileUpdate;
|
|
28
27
|
private layerUpdatesSuspended;
|
|
28
|
+
private _loaded;
|
|
29
29
|
constructor(island: Island, width: number, height: number);
|
|
30
30
|
delete(): void;
|
|
31
31
|
get loaded(): boolean;
|
|
@@ -34,8 +34,8 @@ export default class World extends EventEmitter.Host<IWorldEvents> implements IS
|
|
|
34
34
|
load(): void;
|
|
35
35
|
suspendLayerUpdates(): void;
|
|
36
36
|
resumeLayerUpdates(): void;
|
|
37
|
-
updateTile(
|
|
38
|
-
updateTileLayer(
|
|
37
|
+
updateTile(tile: Tile, tileUpdateType: TileUpdateType, updateNeighbors?: boolean, skipFlowFieldUpdate?: boolean): void;
|
|
38
|
+
updateTileLayer(tile: Tile, updateNeighbors: boolean | undefined, flushTileImmediately: boolean): void;
|
|
39
39
|
startUpdateTileBatch(): void;
|
|
40
40
|
endUpdateTileBatch(): void;
|
|
41
41
|
serializeObject(_serializer: ISerializer): undefined;
|
|
@@ -9,27 +9,32 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Island from "game/island/Island";
|
|
12
|
-
import type { ITile } from "game/tile/ITerrain";
|
|
13
12
|
import { TerrainType } from "game/tile/ITerrain";
|
|
14
13
|
import { WorldZ } from "game/WorldZ";
|
|
15
|
-
import type ExploreMap from "renderer/exploreMap/ExploreMap";
|
|
16
14
|
import type { IByteGrid } from "renderer/fieldOfView/IByteGrid";
|
|
17
15
|
import type { ITileUpdate, onDoodadUpdateDelegate, onTileUpdateDelegate, TerrainData } from "renderer/world/IWorldLayer";
|
|
18
16
|
import { TerrainMask } from "renderer/world/IWorldLayer";
|
|
19
17
|
import type { IColorGrid, IWorldLayerCPP } from "@cplusplus/index";
|
|
18
|
+
import type Tile from "game/tile/Tile";
|
|
20
19
|
export default class WorldLayer {
|
|
21
20
|
readonly island: Island;
|
|
22
21
|
readonly width: number;
|
|
23
22
|
readonly height: number;
|
|
24
|
-
readonly
|
|
23
|
+
readonly z: WorldZ;
|
|
24
|
+
/**
|
|
25
|
+
* Light level for the renderer.
|
|
26
|
+
* Updated in FieldOfView.computeLightMap
|
|
27
|
+
*/
|
|
25
28
|
readonly lightLevelMap: IColorGrid;
|
|
29
|
+
/**
|
|
30
|
+
* Light blocks - changed via tileUpdate event
|
|
31
|
+
*/
|
|
26
32
|
readonly lightBlockMap: IByteGrid;
|
|
27
|
-
exploredMap: ExploreMap | undefined;
|
|
28
33
|
onTileUpdates: Map<number, onTileUpdateDelegate>;
|
|
29
34
|
onDoodadUpdates: Map<number, onDoodadUpdateDelegate>;
|
|
30
35
|
private readonly terrainMap;
|
|
31
36
|
readonly instance: IWorldLayerCPP;
|
|
32
|
-
constructor(island: Island, width: number, height: number,
|
|
37
|
+
constructor(island: Island, width: number, height: number, z: WorldZ);
|
|
33
38
|
delete(): void;
|
|
34
39
|
getTileType(x: number, y: number): TerrainType;
|
|
35
40
|
getTile(x: number, y: number): TerrainData;
|
|
@@ -46,8 +51,8 @@ export default class WorldLayer {
|
|
|
46
51
|
* Updates the rendered tile.
|
|
47
52
|
* All neighbors are updated by default, but the neighbor tile update is only done when updateNeighbors is true
|
|
48
53
|
*/
|
|
49
|
-
updateTile(x: number, y: number, tile:
|
|
50
|
-
getTileUpdate(
|
|
54
|
+
updateTile(x: number, y: number, tile: Tile, shouldUpdate: boolean, updateNeighbors: boolean, flushTileImmediately: boolean, isUpdatingNeighbors?: boolean, debug?: boolean): void;
|
|
55
|
+
getTileUpdate(tile: Tile): ITileUpdate;
|
|
51
56
|
private setTileInternal;
|
|
52
57
|
/**
|
|
53
58
|
* This must be synced with the loop in WorldLayer::BatchUpdateLightBlockValues c++
|
|
@@ -17,18 +17,8 @@ import type WorldLayer from "renderer/world/WorldLayer";
|
|
|
17
17
|
import type WorldRenderer from "renderer/world/WorldRenderer";
|
|
18
18
|
import type { IBound3 } from "utilities/math/Bound3";
|
|
19
19
|
import type RendererContext from "renderer/context/RendererContext";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* Called when rendering the world
|
|
23
|
-
* @returns Flags indicating what layers to render
|
|
24
|
-
*/
|
|
25
|
-
getRenderFlags(): RenderLayerFlag;
|
|
26
|
-
/**
|
|
27
|
-
* Called when tile layers are created
|
|
28
|
-
* Custom tile layers can be added to it
|
|
29
|
-
*/
|
|
30
|
-
createTileLayers(context: RendererContext, width: number, height: number, positionBuffer: WebGLBuffer): void;
|
|
31
|
-
}
|
|
20
|
+
import type ExploredMapClientData from "save/clientStore/clientData/ExploredMap";
|
|
21
|
+
import type { IWorldLayerRendererEvents } from "renderer/world/IWorldLayerRenderer";
|
|
32
22
|
export default class WorldLayerRenderer extends EventEmitter.Host<IWorldLayerRendererEvents> {
|
|
33
23
|
readonly context: RendererContext;
|
|
34
24
|
protected readonly worldRenderer: WorldRenderer;
|
|
@@ -38,12 +28,18 @@ export default class WorldLayerRenderer extends EventEmitter.Host<IWorldLayerRen
|
|
|
38
28
|
texLightBlock: WebGLTexture;
|
|
39
29
|
texLightLevel: WebGLTexture;
|
|
40
30
|
texExplored: WebGLTexture;
|
|
31
|
+
private exploredMap;
|
|
32
|
+
/**
|
|
33
|
+
* Flag for marking that there are changes that need to be rendered in one or more tile layers
|
|
34
|
+
*/
|
|
41
35
|
private dirty;
|
|
42
36
|
private dirtyTiles;
|
|
43
37
|
private dirtyDoodads;
|
|
44
38
|
private readonly dirtyDoodadUpdates;
|
|
45
39
|
private readonly tileLayers;
|
|
46
40
|
private readonly tileLayerMap;
|
|
41
|
+
private readonly tilesToFlush;
|
|
42
|
+
private readonly doodadsToFlush;
|
|
47
43
|
private terrainLayer;
|
|
48
44
|
private terrainOverLayer;
|
|
49
45
|
private terrainDecorationsLayer;
|
|
@@ -54,10 +50,15 @@ export default class WorldLayerRenderer extends EventEmitter.Host<IWorldLayerRen
|
|
|
54
50
|
delete(): void;
|
|
55
51
|
private deleteTileLayers;
|
|
56
52
|
reset(): void;
|
|
57
|
-
setWorldLayer(worldLayer: WorldLayer): void;
|
|
53
|
+
setWorldLayer(worldLayer: WorldLayer, exploredMapClientData: ExploredMapClientData): void;
|
|
58
54
|
addTileLayer(tileLayer: TileLayer): void;
|
|
59
55
|
updateAll(): void;
|
|
60
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Sets the alpha of a tile in the explored data
|
|
58
|
+
* Note: You must call bind the texture before calling this
|
|
59
|
+
*/
|
|
60
|
+
setExploredAlpha(x: number, y: number, alpha: Uint8Array): void;
|
|
61
|
+
updateDoodad(x: number, y: number, flushTileImmediately: boolean, { doodadDescription, doodadType, doodadInfo, doodadVariationX, doodadVariationY, terrainMasks }: IDoodadUpdate): void;
|
|
61
62
|
renderFullbright(x: number, y: number, tileScale: number, viewWidth: number, viewHeight: number, renderFixedDepth: boolean, flags?: RenderLayerFlag): void;
|
|
62
63
|
getDataIndex(x: number, y: number): number;
|
|
63
64
|
setLayer(layer: TileLayer, dataIndex: number, tileAdaptation: TileAdaptor.ITileAdaptation): void;
|
|
@@ -70,9 +71,14 @@ export default class WorldLayerRenderer extends EventEmitter.Host<IWorldLayerRen
|
|
|
70
71
|
/**
|
|
71
72
|
* Ensures tiles in the view are rendered/flushed
|
|
72
73
|
* Tiles & doodads are flushed the first time they are visible within the fov
|
|
74
|
+
* @returns True when there's more rendering to be done
|
|
75
|
+
*/
|
|
76
|
+
ensureRendered({ min, max }: IBound3): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Processes pending tile/doodad updates
|
|
73
79
|
*/
|
|
74
|
-
|
|
75
|
-
updateTile(x: number, y: number,
|
|
80
|
+
private processUpdates;
|
|
81
|
+
updateTile(x: number, y: number, flushTileImmediately?: boolean, debug?: boolean): void;
|
|
76
82
|
private computeDoodad;
|
|
77
83
|
private computeTilled;
|
|
78
84
|
private computeDecorations;
|