bloxd.io.d.ts 1.0.0 → 1.0.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/api-type-def/normal/forceRespawn.d.ts +1 -1
- package/api-type-def/normal/health/applyHealthChange.d.ts +1 -1
- package/api-type-def/normal/health/applyMeleeHit.d.ts +2 -2
- package/api-type-def/normal/health/attemptApplyDamage.d.ts +3 -1
- package/api-type-def/normal/health/setHealth.d.ts +2 -2
- package/api-type-def/normal/positions/setPosition.d.ts +1 -1
- package/api-type-def/normal/shops/showShopTutorial.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,9 +24,9 @@ interface ApplyMeleeHitInterface {
|
|
|
24
24
|
applyMeleeHit(
|
|
25
25
|
hittingEId: LifeformId,
|
|
26
26
|
hitEId: LifeformId,
|
|
27
|
-
dirFacing: Direcrion
|
|
27
|
+
dirFacing: Readonly<Direcrion>,
|
|
28
28
|
bodyPartHit?: LifeformBodyPart | null,
|
|
29
|
-
overrides?: applyMeleeHitOverrides
|
|
29
|
+
overrides?: Readonly<applyMeleeHitOverrides>,
|
|
30
30
|
): boolean;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -27,7 +27,9 @@ interface AttemptApplyDamageInterface {
|
|
|
27
27
|
* }
|
|
28
28
|
* @returns {boolean} - whether the attack damaged the lifeform
|
|
29
29
|
*/
|
|
30
|
-
attemptApplyDamage(
|
|
30
|
+
attemptApplyDamage(
|
|
31
|
+
options: Readonly<PlayerAttemptDamageOtherPlayerOpts>,
|
|
32
|
+
): boolean;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
export default AttemptApplyDamageInterface;
|
|
@@ -16,8 +16,8 @@ interface SetHealthinterface {
|
|
|
16
16
|
setHealth(
|
|
17
17
|
entityId: EntityId,
|
|
18
18
|
newHealth: Health | null,
|
|
19
|
-
whoDidDamage
|
|
20
|
-
increaseMaxHealthIfNeeded
|
|
19
|
+
whoDidDamage?: Readonly<WhoDidDamage>,
|
|
20
|
+
increaseMaxHealthIfNeeded?: boolean,
|
|
21
21
|
): boolean;
|
|
22
22
|
}
|
|
23
23
|
export default SetHealthinterface;
|
|
@@ -18,7 +18,7 @@ interface SetPositionInterface {
|
|
|
18
18
|
* @param {Coordinate} position
|
|
19
19
|
* @returns {void}
|
|
20
20
|
*/
|
|
21
|
-
setPosition(entityId: EntityId, position: Coordinate): void;
|
|
21
|
+
setPosition(entityId: EntityId, position: Readonly<Coordinate>): void;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export default SetPositionInterface;
|