@wayward/types 2.13.0-beta.dev.20230401.1 → 2.13.0-beta.dev.20230402.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/game/game/entity/EntityMovable.d.ts +2 -1
- package/definitions/game/game/entity/Human.d.ts +1 -1
- package/definitions/game/game/entity/IEntity.d.ts +11 -0
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Build.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
- package/definitions/game/game/entity/player/IPlayer.d.ts +2 -1
- package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
- package/definitions/game/game/island/Island.d.ts +0 -4
- package/definitions/game/language/Dictionary.d.ts +2 -2
- package/definitions/game/language/DictionaryMap.d.ts +4 -4
- package/definitions/game/language/dictionary/Message.d.ts +317 -316
- package/definitions/game/renderer/IRenderer.d.ts +53 -53
- package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
- package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
- package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +1 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +1 -0
- package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +1 -0
- package/definitions/game/renderer/tile/TileLayer.d.ts +4 -0
- package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +0 -1
- package/definitions/game/renderer/world/World.d.ts +1 -1
- package/definitions/game/ui/old/IOldUi.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import type { SfxType } from "audio/IAudio";
|
|
|
12
12
|
import type { IEventEmitter } from "event/EventEmitter";
|
|
13
13
|
import Entity from "game/entity/Entity";
|
|
14
14
|
import type { IEntityConstructorOptions, IEntityEvents, IMoveToOptions } from "game/entity/IEntity";
|
|
15
|
+
import { MoveFlag } from "game/entity/IEntity";
|
|
15
16
|
import { DamageType, MoveType } from "game/entity/IEntity";
|
|
16
17
|
import { MovingClientSide } from "game/entity/IHuman";
|
|
17
18
|
import type { IMovementTime } from "game/IGame";
|
|
@@ -34,7 +35,7 @@ export interface IEntityMovableEvents extends IEntityEvents {
|
|
|
34
35
|
/**
|
|
35
36
|
* Called after moving.
|
|
36
37
|
*/
|
|
37
|
-
postMove(fromTile: Tile, toTile: Tile): void;
|
|
38
|
+
postMove(fromTile: Tile, toTile: Tile, flags: MoveFlag): void;
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* Entity class that allows movement
|
|
@@ -249,7 +249,7 @@ export default abstract class Human<TypeType extends number = number> extends En
|
|
|
249
249
|
unequip(item: Item, internal?: boolean, skipMessage?: boolean, skipRevertItem?: boolean): void;
|
|
250
250
|
private updateOffHandState;
|
|
251
251
|
unequipAll(): void;
|
|
252
|
-
|
|
252
|
+
getJumpTile(): Tile | undefined;
|
|
253
253
|
hasDelay(): boolean;
|
|
254
254
|
addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean): void;
|
|
255
255
|
/**
|
|
@@ -276,9 +276,20 @@ export interface IMoveToOptions {
|
|
|
276
276
|
movementDelay?: Delay | number;
|
|
277
277
|
animation?: MoveAnimation;
|
|
278
278
|
onMoveCompletedParticles?: IRGB;
|
|
279
|
+
/**
|
|
280
|
+
* What caused the move?
|
|
281
|
+
*/
|
|
282
|
+
flags?: MoveFlag;
|
|
279
283
|
}
|
|
280
284
|
export declare enum MoveAnimation {
|
|
281
285
|
Normal = 0,
|
|
282
286
|
Jump = 1
|
|
283
287
|
}
|
|
288
|
+
export declare enum MoveFlag {
|
|
289
|
+
None = 0,
|
|
290
|
+
/**
|
|
291
|
+
* Skips damage due to movement
|
|
292
|
+
*/
|
|
293
|
+
SkipEncumberedChecks = 1
|
|
294
|
+
}
|
|
284
295
|
export {};
|
|
@@ -19,7 +19,7 @@ export declare const actionDescriptionsSlow: {
|
|
|
19
19
|
75: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("./actions/ConsumeItem").IConsumeItemCanUse, [import("../../item/Item").default]>;
|
|
20
20
|
78: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("game/entity/action/actions/AttachContainer").IAttachContainerCanUse, [import("../../item/Item").default]>;
|
|
21
21
|
3: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.AttackType, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Attack").IAttackCanUse, [(import("../../item/Item").default | undefined)?, (import("../IEntity").AttackType | undefined)?, (import("../../item/Item").default | undefined)?]>;
|
|
22
|
-
28: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.
|
|
22
|
+
28: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Tile, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../item/Item").default, (import("../../tile/Tile").default | undefined)?]>;
|
|
23
23
|
5: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Butcher").IButcherCanUse, [import("../../item/Item").default]>;
|
|
24
24
|
120: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/CageCreature").ICageCreature, [import("../../item/Item").default]>;
|
|
25
25
|
16: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Cast").ICastCanUse, [import("../../item/Item").default]>;
|
|
@@ -91,7 +91,7 @@ export declare const actionDescriptionsSlow: {
|
|
|
91
91
|
54: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/actions/PickUpAllItems").IPickUpAllItemsCanUse, []>;
|
|
92
92
|
81: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/PickUpExcrement").IPickUpExcrementCanUse, [(import("../../item/Item").default | undefined)?]>;
|
|
93
93
|
53: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, []>;
|
|
94
|
-
74: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.
|
|
94
|
+
74: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Tile, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../item/Item").default, (import("../../tile/Tile").default | undefined)?]>;
|
|
95
95
|
25: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Plant").IPlantCanUse, [import("../../item/Item").default]>;
|
|
96
96
|
24: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("game/entity/action/actions/Pour").IPourCanUse, [import("../../item/Item").default]>;
|
|
97
97
|
41: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("game/entity/action/actions/PourOnYourself").IPourOnYourselfCanUse, [import("../../item/Item").default]>;
|
|
@@ -18,5 +18,5 @@ export interface IBuildCanUse extends IActionUsable {
|
|
|
18
18
|
tile: Tile;
|
|
19
19
|
buildInfo: IItemBuild;
|
|
20
20
|
}
|
|
21
|
-
declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.
|
|
21
|
+
declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.Tile, ActionArgument.Undefined]], import("../../Human").default<number>, void, IBuildCanUse, [import("../../../item/Item").default, (Tile | undefined)?]>;
|
|
22
22
|
export default _default;
|
|
@@ -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
|
-
declare const _default: import("../Action").Action<[import("../IAction").ActionArgument.ItemNearby, [import("../IAction").ActionArgument.
|
|
11
|
+
declare const _default: import("../Action").Action<[import("../IAction").ActionArgument.ItemNearby, [import("../IAction").ActionArgument.Tile, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../../item/Item").default, (import("../../../tile/Tile").default | undefined)?]>;
|
|
12
12
|
export default _default;
|
|
@@ -13,7 +13,7 @@ import type Human from "game/entity/Human";
|
|
|
13
13
|
import type Item from "game/item/Item";
|
|
14
14
|
import type DrawnMap from "game/mapping/DrawnMap";
|
|
15
15
|
import type { ITreasure } from "game/mapping/DrawnMap";
|
|
16
|
-
import type
|
|
16
|
+
import type Tile from "game/tile/Tile";
|
|
17
17
|
declare namespace TreasureGathering {
|
|
18
18
|
interface IGatherable {
|
|
19
19
|
map: DrawnMap;
|
|
@@ -21,7 +21,7 @@ declare namespace TreasureGathering {
|
|
|
21
21
|
toolRange?: number;
|
|
22
22
|
maxRange?: number;
|
|
23
23
|
treasure: ITreasure;
|
|
24
|
-
|
|
24
|
+
gatherPointTile: Tile;
|
|
25
25
|
}
|
|
26
26
|
enum GatherablesResult {
|
|
27
27
|
Blocked = 0,
|
|
@@ -40,7 +40,7 @@ declare namespace TreasureGathering {
|
|
|
40
40
|
}
|
|
41
41
|
interface IGatherResult {
|
|
42
42
|
result: Result;
|
|
43
|
-
|
|
43
|
+
tile?: Tile;
|
|
44
44
|
treasure?: ITreasure;
|
|
45
45
|
}
|
|
46
46
|
function gather(action: IActionHandlerApi<Human>, itemRange: number, requireMap: boolean, tool?: Item, canGather?: ICanGather): IGatherResult;
|
|
@@ -29,7 +29,7 @@ import SkillInspection from "game/inspection/inspections/SkillInspection";
|
|
|
29
29
|
import StatInspection from "game/inspection/inspections/StatInspection";
|
|
30
30
|
import TileEventInspection from "game/inspection/inspections/TileEventInspection";
|
|
31
31
|
import TileInspection from "game/inspection/inspections/TileInspection";
|
|
32
|
-
import type
|
|
32
|
+
import type Tile from "game/tile/Tile";
|
|
33
33
|
declare const inspectionTypeMap: {
|
|
34
34
|
12: typeof ActionInspection;
|
|
35
35
|
14: typeof CorpseInspection;
|
|
@@ -56,7 +56,7 @@ declare const inspectionTypeMap: {
|
|
|
56
56
|
};
|
|
57
57
|
export type InspectionClass = Class<Inspection<any>> & {
|
|
58
58
|
isWorldInspection?(inspectType: InspectType): boolean;
|
|
59
|
-
getFromTile?(
|
|
59
|
+
getFromTile?(tile: Tile, context: InfoProviderContext, inspectType: InspectType): ArrayOr<Inspection<any>>;
|
|
60
60
|
/**
|
|
61
61
|
* Whether or not this inspection class can handle the given arguments.
|
|
62
62
|
* @param args A list of arguments that an inspection can be provided
|
|
@@ -172,10 +172,6 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
172
172
|
* @returns The default terrain type with a fallback to dirt (which shouldn't happen without mods or bugs).
|
|
173
173
|
*/
|
|
174
174
|
getDefaultTerrainType(tile: Tile): TerrainType;
|
|
175
|
-
/**
|
|
176
|
-
* Ensures a point is valid and is not the edge of the map
|
|
177
|
-
*/
|
|
178
|
-
ensureValidPoint<T extends IVector2>(point?: T): T | undefined;
|
|
179
175
|
getDirectionFromMovement(x: number, y: number): Direction.East | Direction.North | Direction.West | Direction.South;
|
|
180
176
|
getTileFromPoint(point: IVector3): Tile;
|
|
181
177
|
getTile(x: number, y: number, z: number, disableLog?: boolean): Tile;
|
|
@@ -100,8 +100,8 @@ declare const dictionaryMap: {
|
|
|
100
100
|
10: typeof Challenge;
|
|
101
101
|
11: typeof ChangeType;
|
|
102
102
|
12: typeof CharacterSort;
|
|
103
|
-
13: typeof
|
|
104
|
-
14: typeof
|
|
103
|
+
13: typeof CombatDangerLevel;
|
|
104
|
+
14: typeof CombatStrength;
|
|
105
105
|
15: typeof Command;
|
|
106
106
|
16: typeof CreatureType;
|
|
107
107
|
17: typeof CraftEfficacy;
|
|
@@ -209,8 +209,8 @@ export declare const strictDictionaries: {
|
|
|
209
209
|
10: typeof Challenge;
|
|
210
210
|
11: typeof ChangeType;
|
|
211
211
|
12: typeof CharacterSort;
|
|
212
|
-
13: typeof
|
|
213
|
-
14: typeof
|
|
212
|
+
13: typeof CombatDangerLevel;
|
|
213
|
+
14: typeof CombatStrength;
|
|
214
214
|
15: typeof Command;
|
|
215
215
|
16: typeof CreatureType;
|
|
216
216
|
17: typeof CraftEfficacy;
|
|
@@ -79,90 +79,90 @@ declare enum Message {
|
|
|
79
79
|
ActionSetCreatureAiCannotCommand = 67,
|
|
80
80
|
ActionSetCreatureAiNotEnoughSkill = 68,
|
|
81
81
|
ActionSetCreatureAiNotEnoughTames = 69,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
82
|
+
ActionShipToIslandNoDestination = 70,
|
|
83
|
+
ActionTameCreatureTamed = 71,
|
|
84
|
+
ActionTameNoCreature = 72,
|
|
85
|
+
ActionTestDepthNothingToTest = 73,
|
|
86
|
+
ActionTestDepthWell = 74,
|
|
87
|
+
ActionToggleContainerNoContainer = 75,
|
|
88
|
+
ActionToggleDoorNoDoor = 76,
|
|
89
|
+
ActionToggleHitchAlreadyHitched = 77,
|
|
90
|
+
ActionToggleHitchAlreadyUnhitched = 78,
|
|
91
|
+
ActionToggleHitchNoCreature = 79,
|
|
92
|
+
ActionToggleHitchNoHitch = 80,
|
|
93
|
+
ActionToggleTilledAlreadyPacked = 81,
|
|
94
|
+
ActionToggleTilledAlreadyTilled = 82,
|
|
95
|
+
ActionUncageCannotUncageHere = 83,
|
|
96
|
+
ActionUpgrade = 84,
|
|
97
|
+
ActionUpgradeFailed = 85,
|
|
98
|
+
ActionUpgradeNotMagical = 86,
|
|
99
|
+
ActionUpgradeNotPossible = 87,
|
|
100
|
+
ActionUpgradeUpgraded = 88,
|
|
101
|
+
ActionUseItemWeaponNeeded = 89,
|
|
102
|
+
ActionWith = 90,
|
|
103
|
+
AddedFuelToFire = 91,
|
|
104
|
+
AddedFuelToTorch = 92,
|
|
105
|
+
AddToQuickslot = 93,
|
|
106
|
+
AllEquipmentUnEquipped = 94,
|
|
107
|
+
AlreadyDesalinatedWaterInStill = 95,
|
|
108
|
+
AlreadyFullyRefined = 96,
|
|
109
|
+
AlreadyFullyRepaired = 97,
|
|
110
|
+
AlreadyPreserved = 98,
|
|
111
|
+
Alter = 99,
|
|
112
|
+
AnotherIsland = 100,
|
|
113
|
+
AnUnknownItem = 101,
|
|
114
|
+
AppearedNotEffectiveForGathering = 102,
|
|
115
|
+
AppearsToBeAberrant = 103,
|
|
116
|
+
ArmorAppeared = 104,
|
|
117
|
+
ArmorProtectedFromInjuryAgainst = 105,
|
|
118
|
+
Attack = 106,
|
|
119
|
+
AttemptedToDropAllIntoFire = 107,
|
|
120
|
+
AttemptedToPlaceAllOnGround = 108,
|
|
121
|
+
AttemptToSoothBurnInWater = 109,
|
|
122
|
+
AttemptToTill = 110,
|
|
123
|
+
AutoActionsNoItem = 111,
|
|
124
|
+
BadlyBurnedLostHealth = 112,
|
|
125
|
+
BarteringSkillsProvided = 113,
|
|
126
|
+
BasedOnItSeems = 114,
|
|
127
|
+
BeenPoisoned = 115,
|
|
128
|
+
BeginSleeping = 116,
|
|
129
|
+
BeginUsingVehicle = 117,
|
|
130
|
+
BestForCrafting = 118,
|
|
131
|
+
BleedingHasStopped = 119,
|
|
132
|
+
BleedingProfusely = 120,
|
|
133
|
+
BleedingToDeathLostHealth = 121,
|
|
134
|
+
BookBlank = 122,
|
|
135
|
+
BookContains = 123,
|
|
136
|
+
BookCrumbles = 124,
|
|
137
|
+
BookDiagrams = 125,
|
|
138
|
+
BookEmpty = 126,
|
|
139
|
+
BookNothing = 127,
|
|
140
|
+
BookOpen = 128,
|
|
141
|
+
BookScribbles = 129,
|
|
142
|
+
BothEffectiveIneffective = 130,
|
|
143
|
+
BrokeIntoPieces = 131,
|
|
144
|
+
BrokenOnImpact = 132,
|
|
145
|
+
BrokenWhileFiring = 133,
|
|
146
|
+
Build = 134,
|
|
147
|
+
Burned = 135,
|
|
148
|
+
CannotAddAnyMoreFuel = 136,
|
|
149
|
+
CannotBeCrafted = 137,
|
|
150
|
+
CannotBePerformedOverWater = 138,
|
|
151
|
+
CannotBePlacedHere = 139,
|
|
152
|
+
CannotBePreserved = 140,
|
|
153
|
+
CannotBeRefined = 141,
|
|
154
|
+
CannotBeRefinedReinforcementNeeded = 142,
|
|
155
|
+
CannotBeReinforced = 143,
|
|
156
|
+
CannotBeRepaired = 144,
|
|
157
|
+
CannotBuildHere = 145,
|
|
158
|
+
CannotDoThatHere = 146,
|
|
159
|
+
CannotDropHere = 147,
|
|
160
|
+
CannotEquipThatThere = 148,
|
|
161
|
+
CannotFishFor = 149,
|
|
162
|
+
CannotHere = 150,
|
|
163
|
+
CannotInWater = 151,
|
|
164
|
+
CannotLeave = 152,
|
|
165
|
+
CannotNoTreasure = 153,
|
|
166
166
|
CannotPickUpLockedContainer = 154,
|
|
167
167
|
CannotPickUpWhileLit = 155,
|
|
168
168
|
CannotPlaceContainerInItself = 156,
|
|
@@ -181,8 +181,8 @@ declare enum Message {
|
|
|
181
181
|
CannotToTellTime = 169,
|
|
182
182
|
CannotUseCommand = 170,
|
|
183
183
|
CannotWhenProtected = 171,
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
CannotWhenProtectedDangerousAction = 172,
|
|
185
|
+
CannotWhenProtectedDurability = 173,
|
|
186
186
|
CarryingTooMuchWeight = 174,
|
|
187
187
|
CarvedUpCorpse = 175,
|
|
188
188
|
Carving = 176,
|
|
@@ -743,235 +743,236 @@ declare enum Message {
|
|
|
743
743
|
SortedByBestCraftingConsumables = 731,
|
|
744
744
|
SortedByBestCraftingRequirements = 732,
|
|
745
745
|
SortedByCategory = 733,
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
746
|
+
SortedByCraftableOnly = 734,
|
|
747
|
+
SortedByDecay = 735,
|
|
748
|
+
SortedByDurability = 736,
|
|
749
|
+
SortedByGroup = 737,
|
|
750
|
+
SortedByMagical = 738,
|
|
751
|
+
SortedByName = 739,
|
|
752
|
+
SortedByQuality = 740,
|
|
753
|
+
SortedByRecent = 741,
|
|
754
|
+
SortedBySkill = 742,
|
|
755
|
+
SortedByUnlockedTime = 743,
|
|
756
|
+
SortedByWeight = 744,
|
|
757
|
+
SortedByWorth = 745,
|
|
758
|
+
South = 746,
|
|
759
|
+
Southeast = 747,
|
|
760
|
+
SouthSoutheast = 748,
|
|
761
|
+
SouthSouthwest = 749,
|
|
762
|
+
Southwest = 750,
|
|
763
|
+
StaminaIsFull = 751,
|
|
764
|
+
StartedFire = 752,
|
|
765
|
+
StartTravelInWater = 753,
|
|
766
|
+
StarvingToDeath = 754,
|
|
767
|
+
StatAmount = 755,
|
|
768
|
+
StatGained = 756,
|
|
769
|
+
StatIncreasing = 757,
|
|
770
|
+
StatLost = 758,
|
|
771
|
+
StatQuenched = 759,
|
|
772
|
+
StatRegained = 760,
|
|
773
|
+
StatSated = 761,
|
|
774
|
+
SteppingOn = 762,
|
|
775
|
+
StillHasNoWaterToPurify = 763,
|
|
776
|
+
StirredUpClawWorm = 764,
|
|
777
|
+
StirredUpCreature = 765,
|
|
778
|
+
StoppedYourBleeding = 766,
|
|
779
|
+
StopUsingVehicle = 767,
|
|
780
|
+
Strength = 768,
|
|
781
|
+
SummonedGuardiansByDiggingTreasure = 769,
|
|
782
|
+
SummonedGuardiansByLockpicking = 770,
|
|
783
|
+
SummonVoidDwellerItem = 771,
|
|
784
|
+
SummonVoidDwellerRinging = 772,
|
|
785
|
+
SummonVoidDwellerShiver = 773,
|
|
786
|
+
SunNotBrightEnoughToStartFire = 774,
|
|
787
|
+
SwampWater = 775,
|
|
788
|
+
Swimming = 776,
|
|
789
|
+
TakenFromGroundBecomeTamed = 777,
|
|
790
|
+
Tame = 778,
|
|
791
|
+
TamedCreature = 779,
|
|
792
|
+
TeleportBlocked = 780,
|
|
793
|
+
Teleported = 781,
|
|
794
|
+
ThanksBuying = 782,
|
|
795
|
+
ThanksSelling = 783,
|
|
796
|
+
TheCreature = 784,
|
|
797
|
+
TheirFist = 785,
|
|
798
|
+
ThePlant = 786,
|
|
799
|
+
ThereIsNoContainerOnTheStill = 787,
|
|
800
|
+
ThereIsNoSunToStartFire = 788,
|
|
801
|
+
ThisCannotBeMilked = 789,
|
|
802
|
+
Throw = 790,
|
|
803
|
+
ThrownIntoDepths = 791,
|
|
804
|
+
ThrownIntoObstacle = 792,
|
|
805
|
+
ThrownIntoVoid = 793,
|
|
806
|
+
Tier = 794,
|
|
807
|
+
TierGroup = 795,
|
|
808
|
+
Till = 796,
|
|
809
|
+
Tilling = 797,
|
|
810
|
+
TillWithHands = 798,
|
|
811
|
+
TimeIs = 799,
|
|
812
|
+
TimeIsDawn = 800,
|
|
813
|
+
TimeIsDaytime = 801,
|
|
814
|
+
TimeIsDusk = 802,
|
|
815
|
+
TimeIsNighttime = 803,
|
|
816
|
+
TimeIsSunrise = 804,
|
|
817
|
+
TimeIsSunset = 805,
|
|
818
|
+
ToDamageAChest = 806,
|
|
819
|
+
ToFight = 807,
|
|
820
|
+
TooDamaged = 808,
|
|
821
|
+
TooExhaustedToJump = 809,
|
|
822
|
+
Touching = 810,
|
|
823
|
+
TradeBarterCreditForItem = 811,
|
|
824
|
+
TradeItemForBarterCredit = 812,
|
|
825
|
+
TradingWith = 813,
|
|
826
|
+
TrampledFire = 814,
|
|
827
|
+
TrampledIntoGround = 815,
|
|
828
|
+
TrampleIntoGround = 816,
|
|
829
|
+
Trampling = 817,
|
|
830
|
+
TransmogrificationNotPossible = 818,
|
|
831
|
+
Transmogrified = 819,
|
|
832
|
+
Transmogrify = 820,
|
|
833
|
+
TrapMissed = 821,
|
|
834
|
+
TrapStoppedYou = 822,
|
|
835
|
+
Traveling = 823,
|
|
836
|
+
TreasureIsBlocked = 824,
|
|
837
|
+
UiActionCannotUseMissingSlottedItem = 825,
|
|
838
|
+
UiActionCannotUseRequiresCreature = 826,
|
|
839
|
+
UiActionCannotUseRequiresDoodad = 827,
|
|
840
|
+
UiActionCannotUseRequiresItem = 828,
|
|
841
|
+
UnEquip = 829,
|
|
842
|
+
UnEquipAll = 830,
|
|
843
|
+
Unhitch = 831,
|
|
844
|
+
UnhitchCreature = 832,
|
|
845
|
+
Unknown = 833,
|
|
846
|
+
UnknownItem = 834,
|
|
847
|
+
Unlimited = 835,
|
|
848
|
+
UnlockedChest = 836,
|
|
849
|
+
UnlockedTime = 837,
|
|
850
|
+
UnpurifiedFreshWater = 838,
|
|
851
|
+
UnpurifiedWaterInStill = 839,
|
|
852
|
+
Use = 840,
|
|
853
|
+
UsingBareHands = 841,
|
|
854
|
+
VehicleDefense = 842,
|
|
855
|
+
Vulnerable = 843,
|
|
856
|
+
Water = 844,
|
|
857
|
+
WaterGathering = 845,
|
|
858
|
+
WaterPutOutFire = 846,
|
|
859
|
+
Weight = 847,
|
|
860
|
+
WellIsDry = 848,
|
|
861
|
+
WellIsFull = 849,
|
|
862
|
+
West = 850,
|
|
863
|
+
WestNorthwest = 851,
|
|
864
|
+
WestSouthwest = 852,
|
|
865
|
+
WildGoatRefusedToBeMilked = 853,
|
|
866
|
+
WillNotTrade = 854,
|
|
867
|
+
WithYouSee = 855,
|
|
868
|
+
WorkingYourselfIntoExhaustion = 856,
|
|
869
|
+
WorkingYourselfIntoExhaustionAndDrowning = 857,
|
|
870
|
+
Worth = 858,
|
|
871
|
+
You = 859,
|
|
872
|
+
YouAbsorb = 860,
|
|
873
|
+
YouApplied = 861,
|
|
874
|
+
YouAreAlready = 862,
|
|
875
|
+
YouAte = 863,
|
|
876
|
+
YouBeginResting = 864,
|
|
877
|
+
YouCannotDoThatYet = 865,
|
|
878
|
+
YouCanNowCombatTheTides = 866,
|
|
879
|
+
YouCooledLava = 867,
|
|
880
|
+
YouCrafted = 868,
|
|
881
|
+
YouDied = 869,
|
|
882
|
+
YouDoNotFindTreasureYet = 870,
|
|
883
|
+
YouDrank = 871,
|
|
884
|
+
YouDropTheTorch = 872,
|
|
885
|
+
YouEnchant = 873,
|
|
886
|
+
YouEquip = 874,
|
|
887
|
+
YouExude = 875,
|
|
888
|
+
YouExudeSome = 876,
|
|
889
|
+
YouExudeSomeReasonConflicting = 877,
|
|
890
|
+
YouExudeSomeReasonMax = 878,
|
|
891
|
+
YouExudeSomeReasonProperties = 879,
|
|
892
|
+
YouFailedTo = 880,
|
|
893
|
+
YouFailedToExtinguishedFireFully = 881,
|
|
894
|
+
YouFailedToHeal = 882,
|
|
895
|
+
YouFailedToHealOther = 883,
|
|
896
|
+
YouFire = 884,
|
|
897
|
+
YouGathered = 885,
|
|
898
|
+
YouGatheredAndDropped = 886,
|
|
899
|
+
YouHarvested = 887,
|
|
900
|
+
YouHarvestedAndDropped = 888,
|
|
901
|
+
YouHave = 889,
|
|
902
|
+
YouHaveAlreadyLearned = 890,
|
|
903
|
+
YouHaveBeenCut = 891,
|
|
904
|
+
YouHaveCommanded = 892,
|
|
905
|
+
YouHaveDied = 893,
|
|
906
|
+
YouHaveEnabledDisabled = 894,
|
|
907
|
+
YouHaveHealedOther = 895,
|
|
908
|
+
YouHaveKilled = 896,
|
|
909
|
+
YouHaveReleased = 897,
|
|
910
|
+
YouHaveSummoned = 898,
|
|
911
|
+
YouHaveTamed = 899,
|
|
912
|
+
YouHaveUncaged = 900,
|
|
913
|
+
YouNeedMoreCredit = 901,
|
|
914
|
+
YouNeedXToY = 902,
|
|
915
|
+
YouNoticeBarren = 903,
|
|
916
|
+
YouNoticeBecomeEnraged = 904,
|
|
917
|
+
YouNoticeDying = 905,
|
|
918
|
+
YouNoticeFertilityDecreasing = 906,
|
|
919
|
+
YouNoticeFertilityIncreasing = 907,
|
|
920
|
+
YouNoticeGrowing = 908,
|
|
921
|
+
YouNoticeLavaCooling = 909,
|
|
922
|
+
YouNoticeLavaHardening = 910,
|
|
923
|
+
YouNoticePerish = 911,
|
|
924
|
+
YouNoticePlantDamage = 912,
|
|
925
|
+
YouNoticePlantRegenerated = 913,
|
|
926
|
+
YouNoticeRegrowing = 914,
|
|
927
|
+
YouNoticeStumbleInjureItself = 915,
|
|
928
|
+
YouNoticeTakeFromGround = 916,
|
|
929
|
+
YouNoticeWoundsClosing = 917,
|
|
930
|
+
YouNoticeZombieHorde = 918,
|
|
931
|
+
YouOfferedToCreature = 919,
|
|
932
|
+
YouOfferedToCreatureRejects = 920,
|
|
933
|
+
YouOpen = 921,
|
|
934
|
+
YouOpenShip = 922,
|
|
935
|
+
YouPacked = 923,
|
|
936
|
+
YouPickedUp = 924,
|
|
937
|
+
YouRefine = 925,
|
|
938
|
+
YouReinforce = 926,
|
|
939
|
+
YouRepair = 927,
|
|
940
|
+
YouReturnFromCivilizationWith = 928,
|
|
941
|
+
YourFist = 929,
|
|
942
|
+
YourHands = 930,
|
|
943
|
+
YourHighSkill = 931,
|
|
944
|
+
YourInventory = 932,
|
|
945
|
+
YourIsland = 933,
|
|
946
|
+
YourLowSkill = 934,
|
|
947
|
+
YourModerateSkill = 935,
|
|
948
|
+
YourRubbingNoEffect = 936,
|
|
949
|
+
YouRub = 937,
|
|
950
|
+
YouSee = 938,
|
|
951
|
+
YouSeeALivingMushroomSpore = 939,
|
|
952
|
+
YouSeeAnAberrant = 940,
|
|
953
|
+
YouSeeASkeletonCollapse = 941,
|
|
954
|
+
YouSeeASlimeCombine = 942,
|
|
955
|
+
YouSeeAZombieBleeding = 943,
|
|
956
|
+
YouSeeCoolDown = 944,
|
|
957
|
+
YouSeeDrop = 945,
|
|
958
|
+
YouSeeEngulfFire = 946,
|
|
959
|
+
YouSeeFireSpread = 947,
|
|
960
|
+
YouSeeHelpingPlant = 948,
|
|
961
|
+
YouSeeLay = 949,
|
|
962
|
+
YouSeeLayingTrap = 950,
|
|
963
|
+
YouSeeSpewLava = 951,
|
|
964
|
+
YouSeeSpitAcid = 952,
|
|
965
|
+
YouSeeSpringForth = 953,
|
|
966
|
+
YouSeeSummon = 954,
|
|
967
|
+
YouSeeSwampFlood = 955,
|
|
968
|
+
YouSeeTrampling = 956,
|
|
969
|
+
YouSetTheTrapOff = 957,
|
|
970
|
+
YouStokeTheCreature = 958,
|
|
971
|
+
YouSwapMainHandAndOffHand = 959,
|
|
972
|
+
YouThrew = 960,
|
|
973
|
+
YouTilled = 961,
|
|
974
|
+
YouUnequip = 962,
|
|
975
|
+
YouUsed = 963,
|
|
976
|
+
YouWhileTraveling = 964
|
|
976
977
|
}
|
|
977
978
|
export default Message;
|
|
@@ -72,59 +72,59 @@ export declare enum RenderSource {
|
|
|
72
72
|
GamePassTurn = 10,
|
|
73
73
|
GameResumed = 11,
|
|
74
74
|
GameTick = 12,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
75
|
+
GenericOverlay = 13,
|
|
76
|
+
HiddenMob = 14,
|
|
77
|
+
HumanRest = 15,
|
|
78
|
+
HumanRestStart = 16,
|
|
79
|
+
HumanRestStop = 17,
|
|
80
|
+
HumanSetPosition = 18,
|
|
81
|
+
HumanVehicle = 19,
|
|
82
|
+
InspectOverlay = 20,
|
|
83
|
+
IslandLoad = 21,
|
|
84
|
+
IslandTravel = 22,
|
|
85
|
+
ItemEquip = 23,
|
|
86
|
+
ItemEquipEffect = 24,
|
|
87
|
+
ItemMovement = 25,
|
|
88
|
+
ItemUnequip = 26,
|
|
89
|
+
Loop = 27,
|
|
90
|
+
Mod = 28,
|
|
91
|
+
MovementCreature = 29,
|
|
92
|
+
MovementNPC = 30,
|
|
93
|
+
MovementPlayer = 31,
|
|
94
|
+
MovementPlayerPost = 32,
|
|
95
|
+
MovementPlayerZPost = 33,
|
|
96
|
+
MovementTileEvent = 34,
|
|
97
|
+
MultiplayerDisconnect = 35,
|
|
98
|
+
Notifier = 36,
|
|
99
|
+
NotifierAddCreature = 37,
|
|
100
|
+
NotifierAddItem = 38,
|
|
101
|
+
NotifierAddNotifierIcon = 39,
|
|
102
|
+
NotifierAddStat = 40,
|
|
103
|
+
NotifierAddStatusType = 41,
|
|
104
|
+
OptionEquipment = 42,
|
|
105
|
+
OptionVisionMode = 43,
|
|
106
|
+
OptionZoomLevel = 44,
|
|
107
|
+
Particles = 45,
|
|
108
|
+
ParticleSpawn = 46,
|
|
109
|
+
PlayerAdd = 47,
|
|
110
|
+
PlayerKill = 48,
|
|
111
|
+
PlayerNoclip = 49,
|
|
112
|
+
PlayerProcessMovement = 50,
|
|
113
|
+
PlayerReady = 51,
|
|
114
|
+
PlayerRemove = 52,
|
|
115
|
+
PlayerRespawn = 53,
|
|
116
|
+
PlayerWalkToTilePath = 54,
|
|
117
|
+
PlayerWalkToTilePathOverburdened = 55,
|
|
118
|
+
PlayerWalkToTilePathPreview = 56,
|
|
119
|
+
PlayerWalkToTilePathReset = 57,
|
|
120
|
+
RemoveBlood = 58,
|
|
121
|
+
Resize = 59,
|
|
122
|
+
SetupGl = 60,
|
|
123
|
+
SpawnAnimationStart = 61,
|
|
124
|
+
StartGame = 62,
|
|
125
|
+
Steamworks = 63,
|
|
126
|
+
Thumbnail = 64,
|
|
127
|
+
WorldLayerRendererFlush = 65
|
|
128
128
|
}
|
|
129
129
|
export declare function calculateAmbientLightLevel(origin: IFieldOfViewOrigin, z: number): number;
|
|
130
130
|
export declare const ZOOM_LEVEL_MIN = 1;
|
|
@@ -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;
|
|
@@ -14,5 +14,6 @@ import { SpriteBatchBase } from "renderer/spriteBatch/SpriteBatchBase";
|
|
|
14
14
|
*/
|
|
15
15
|
export default class SpriteBatch1 extends SpriteBatchBase {
|
|
16
16
|
setup(): void;
|
|
17
|
+
bindBuffers(): void;
|
|
17
18
|
render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
18
19
|
}
|
|
@@ -18,5 +18,6 @@ export default class SpriteBatch2 extends SpriteBatchBase {
|
|
|
18
18
|
constructor(context: RendererContext, capacity: number, depthOffset: number, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
|
|
19
19
|
setup(): void;
|
|
20
20
|
delete(): void;
|
|
21
|
+
bindBuffers(): void;
|
|
21
22
|
render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
22
23
|
}
|
|
@@ -39,6 +39,7 @@ export declare abstract class SpriteBatchBase implements ISpriteBatch {
|
|
|
39
39
|
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
40
40
|
constructor(context: RendererContext, capacity: number, depthOffset: number, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
|
|
41
41
|
abstract setup(): void;
|
|
42
|
+
protected abstract bindBuffers(): void;
|
|
42
43
|
abstract render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
|
|
43
44
|
delete(): void;
|
|
44
45
|
begin(): void;
|
|
@@ -32,6 +32,10 @@ export default class TileLayer {
|
|
|
32
32
|
static initializePrograms(webGlContext: WebGlContext): Promise<void>;
|
|
33
33
|
private readonly texTileSprites;
|
|
34
34
|
private readonly inverseTileSpriteTextureSize;
|
|
35
|
+
/**
|
|
36
|
+
* Allow overriding the tile layer ticks, used for animation frames
|
|
37
|
+
*/
|
|
38
|
+
ticks?: number;
|
|
35
39
|
readonly renderLayerFlag: RenderLayerFlag;
|
|
36
40
|
private readonly tileShaderProgram;
|
|
37
41
|
private readonly singleTileData;
|
|
@@ -12,7 +12,6 @@ import type RendererContext from "renderer/context/RendererContext";
|
|
|
12
12
|
import type { RenderLayerFlag } from "renderer/world/IWorldRenderer";
|
|
13
13
|
export declare const jitRenderingExtraRenderRange = 2;
|
|
14
14
|
export declare const jitRenderingMaxTileUpdates = 4096;
|
|
15
|
-
export declare const jitRenderingPerTileFlush = false;
|
|
16
15
|
export interface IWorldLayerRendererEvents {
|
|
17
16
|
/**
|
|
18
17
|
* Called when rendering the world
|
|
@@ -34,7 +34,7 @@ export default class World extends EventEmitter.Host<IWorldEvents> implements IS
|
|
|
34
34
|
load(): void;
|
|
35
35
|
suspendLayerUpdates(): void;
|
|
36
36
|
resumeLayerUpdates(): void;
|
|
37
|
-
updateTile(tile: Tile, tileUpdateType: TileUpdateType, updateNeighbors?: boolean, flush?: boolean): void;
|
|
37
|
+
updateTile(tile: Tile, tileUpdateType: TileUpdateType, updateNeighbors?: boolean, flush?: boolean, skipFlowFieldUpdate?: boolean): void;
|
|
38
38
|
updateTileLayer(tile: Tile, updateNeighbors?: boolean, flush?: boolean): void;
|
|
39
39
|
startUpdateTileBatch(): void;
|
|
40
40
|
endUpdateTileBatch(): void;
|
|
@@ -15,7 +15,7 @@ import InspectionsList from "ui/screen/screens/game/component/InspectionsList";
|
|
|
15
15
|
export default class TileInspectionsList extends InspectionsList<TilePositionInspection> {
|
|
16
16
|
private tile?;
|
|
17
17
|
getTile(): Tile | undefined;
|
|
18
|
-
setTile(tile: Tile): this;
|
|
18
|
+
setTile(tile: Tile | undefined): this;
|
|
19
19
|
isValid(): boolean;
|
|
20
20
|
protected getInvalidTranslation(): UiTranslation;
|
|
21
21
|
protected initializeInspections(): TilePositionInspection;
|
package/package.json
CHANGED