hytopia 0.14.51 → 0.14.52

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.
@@ -946,7 +946,7 @@ Sets the opacity of the entity.
946
946
  </td></tr>
947
947
  <tr><td>
948
948
 
949
- [setOutline(outline)](./server.entity.setoutline.md)
949
+ [setOutline(outline, forPlayer)](./server.entity.setoutline.md)
950
950
 
951
951
 
952
952
  </td><td>
@@ -9,7 +9,7 @@ Sets the outline rendering options for the entity.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- setOutline(outline: Outline | undefined): void;
12
+ setOutline(outline: Outline | undefined, forPlayer?: Player): void;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -45,6 +45,22 @@ outline
45
45
  The outline options, or undefined to remove the outline.
46
46
 
47
47
 
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ forPlayer
52
+
53
+
54
+ </td><td>
55
+
56
+ [Player](./server.player.md)
57
+
58
+
59
+ </td><td>
60
+
61
+ _(Optional)_ The player to set the outline for, if undefined the outline will be set for all players.
62
+
63
+
48
64
  </td></tr>
49
65
  </tbody></table>
50
66
  **Returns:**
@@ -12,5 +12,6 @@ Emitted when the outline of the entity is set.
12
12
  [EntityEvent.SET_OUTLINE]: {
13
13
  entity: Entity;
14
14
  outline: Outline | undefined;
15
+ forPlayer?: Player;
15
16
  };
16
17
  ```
@@ -330,7 +330,7 @@ Emitted when the opacity of the entity is set.
330
330
 
331
331
  </td><td>
332
332
 
333
- { entity: [Entity](./server.entity.md)<!-- -->; outline: [Outline](./server.outline.md) \| undefined; }
333
+ { entity: [Entity](./server.entity.md)<!-- -->; outline: [Outline](./server.outline.md) \| undefined; forPlayer?: [Player](./server.player.md)<!-- -->; }
334
334
 
335
335
 
336
336
  </td><td>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.14.51",
3
+ "version": "0.14.52",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
package/server.api.json CHANGED
@@ -16456,7 +16456,7 @@
16456
16456
  {
16457
16457
  "kind": "Method",
16458
16458
  "canonicalReference": "server!Entity#setOutline:member(1)",
16459
- "docComment": "/**\n * Sets the outline rendering options for the entity.\n *\n * @param outline - The outline options, or undefined to remove the outline.\n */\n",
16459
+ "docComment": "/**\n * Sets the outline rendering options for the entity.\n *\n * @param outline - The outline options, or undefined to remove the outline.\n *\n * @param forPlayer - The player to set the outline for, if undefined the outline will be set for all players.\n */\n",
16460
16460
  "excerptTokens": [
16461
16461
  {
16462
16462
  "kind": "Content",
@@ -16471,6 +16471,15 @@
16471
16471
  "kind": "Content",
16472
16472
  "text": " | undefined"
16473
16473
  },
16474
+ {
16475
+ "kind": "Content",
16476
+ "text": ", forPlayer?: "
16477
+ },
16478
+ {
16479
+ "kind": "Reference",
16480
+ "text": "Player",
16481
+ "canonicalReference": "server!Player:class"
16482
+ },
16474
16483
  {
16475
16484
  "kind": "Content",
16476
16485
  "text": "): "
@@ -16486,8 +16495,8 @@
16486
16495
  ],
16487
16496
  "isStatic": false,
16488
16497
  "returnTypeTokenRange": {
16489
- "startIndex": 4,
16490
- "endIndex": 5
16498
+ "startIndex": 6,
16499
+ "endIndex": 7
16491
16500
  },
16492
16501
  "releaseTag": "Public",
16493
16502
  "isProtected": false,
@@ -16500,6 +16509,14 @@
16500
16509
  "endIndex": 3
16501
16510
  },
16502
16511
  "isOptional": false
16512
+ },
16513
+ {
16514
+ "parameterName": "forPlayer",
16515
+ "parameterTypeTokenRange": {
16516
+ "startIndex": 4,
16517
+ "endIndex": 5
16518
+ },
16519
+ "isOptional": true
16503
16520
  }
16504
16521
  ],
16505
16522
  "isOptional": false,
@@ -18562,7 +18579,16 @@
18562
18579
  },
18563
18580
  {
18564
18581
  "kind": "Content",
18565
- "text": " | undefined;\n }"
18582
+ "text": " | undefined;\n forPlayer?: "
18583
+ },
18584
+ {
18585
+ "kind": "Reference",
18586
+ "text": "Player",
18587
+ "canonicalReference": "server!Player:class"
18588
+ },
18589
+ {
18590
+ "kind": "Content",
18591
+ "text": ";\n }"
18566
18592
  },
18567
18593
  {
18568
18594
  "kind": "Content",
@@ -18575,7 +18601,7 @@
18575
18601
  "name": "\"ENTITY.SET_OUTLINE\"",
18576
18602
  "propertyTypeTokenRange": {
18577
18603
  "startIndex": 3,
18578
- "endIndex": 8
18604
+ "endIndex": 10
18579
18605
  }
18580
18606
  },
18581
18607
  {
package/server.d.ts CHANGED
@@ -2440,8 +2440,9 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
2440
2440
  /**
2441
2441
  * Sets the outline rendering options for the entity.
2442
2442
  * @param outline - The outline options, or undefined to remove the outline.
2443
+ * @param forPlayer - The player to set the outline for, if undefined the outline will be set for all players.
2443
2444
  */
2444
- setOutline(outline: Outline | undefined): void;
2445
+ setOutline(outline: Outline | undefined, forPlayer?: Player): void;
2445
2446
  /**
2446
2447
  * Sets the parent of the entity and resets this entity's position and rotation.
2447
2448
  *
@@ -2651,6 +2652,7 @@ export declare interface EntityEventPayloads {
2651
2652
  [EntityEvent.SET_OUTLINE]: {
2652
2653
  entity: Entity;
2653
2654
  outline: Outline | undefined;
2655
+ forPlayer?: Player;
2654
2656
  };
2655
2657
  /** Emitted when the parent of the entity is set. */
2656
2658
  [EntityEvent.SET_PARENT]: {