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.
@@ -8,5 +8,5 @@ interface ForceRespawnInterface {
8
8
  * @param {Coordinate} [respawnPos]
9
9
  * @returns {void}
10
10
  */
11
- forceRespawn(playerId: PlayerId, respawnPos?: Coordinate): void;
11
+ forceRespawn(playerId: PlayerId, respawnPos?: Readonly<Coordinate>): void;
12
12
  }
@@ -11,7 +11,7 @@ interface ApplyHealthChangeInterface {
11
11
  applyHealthChange(
12
12
  lifeformId: LifeformId,
13
13
  changeAmount: number,
14
- whoDidDamage?: WhoDidDamage,
14
+ whoDidDamage?: Readonly<WhoDidDamage>,
15
15
  broadcastLifeformHurt?: boolean,
16
16
  ): boolean;
17
17
  }
@@ -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(options: PlayerAttemptDamageOtherPlayerOpts): boolean;
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: WhoDidDamage,
20
- increaseMaxHealthIfNeeded: boolean,
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;
@@ -1,4 +1,4 @@
1
- import { PlayerId } from "../../type";
1
+ import { PlayerId } from "../../../type";
2
2
 
3
3
  interface ShowShopTutorialInterface {
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bloxd.io.d.ts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "yo",
5
5
  "types": "bloxd-api.d.ts",
6
6
  "exports": {