hytopia 0.1.70 → 0.1.72

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.
@@ -35,6 +35,50 @@ world.chatManager.registerCommand('/kick', (player, args, message) => {
35
35
  });
36
36
  ```
37
37
 
38
+ ## Properties
39
+
40
+ <table><thead><tr><th>
41
+
42
+ Property
43
+
44
+
45
+ </th><th>
46
+
47
+ Modifiers
48
+
49
+
50
+ </th><th>
51
+
52
+ Type
53
+
54
+
55
+ </th><th>
56
+
57
+ Description
58
+
59
+
60
+ </th></tr></thead>
61
+ <tbody><tr><td>
62
+
63
+ [onBroadcastMessage?](./server.chatmanager.onbroadcastmessage.md)
64
+
65
+
66
+ </td><td>
67
+
68
+
69
+ </td><td>
70
+
71
+ (player: [Player](./server.player.md) \| undefined, message: string, color?: string) =&gt; void
72
+
73
+
74
+ </td><td>
75
+
76
+ _(Optional)_ A function that is called when a broadcast (public) message is sent by a player or the server.
77
+
78
+
79
+ </td></tr>
80
+ </tbody></table>
81
+
38
82
  ## Methods
39
83
 
40
84
  <table><thead><tr><th>
@@ -77,7 +121,7 @@ Register a command and its callback.
77
121
 
78
122
  </td><td>
79
123
 
80
- Send a broadcast message to all players in the world.
124
+ Send a system broadcast message to all players in the world.
81
125
 
82
126
 
83
127
  </td></tr>
@@ -91,7 +135,7 @@ Send a broadcast message to all players in the world.
91
135
 
92
136
  </td><td>
93
137
 
94
- Send a message to a specific player, only visible to them.
138
+ Send a system message to a specific player, only visible to them.
95
139
 
96
140
 
97
141
  </td></tr>
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChatManager](./server.chatmanager.md) &gt; [onBroadcastMessage](./server.chatmanager.onbroadcastmessage.md)
4
+
5
+ ## ChatManager.onBroadcastMessage property
6
+
7
+ A function that is called when a broadcast (public) message is sent by a player or the server.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ onBroadcastMessage?: (player: Player | undefined, message: string, color?: string) => void;
13
+ ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## ChatManager.sendBroadcastMessage() method
6
6
 
7
- Send a broadcast message to all players in the world.
7
+ Send a system broadcast message to all players in the world.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## ChatManager.sendPlayerMessage() method
6
6
 
7
- Send a message to a specific player, only visible to them.
7
+ Send a system message to a specific player, only visible to them.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -1219,6 +1219,20 @@ Sets the angular velocity of the rigid body.
1219
1219
  Sets whether the rigid body has continuous collision detection enabled.
1220
1220
 
1221
1221
 
1222
+ </td></tr>
1223
+ <tr><td>
1224
+
1225
+ [setCollisionGroupsForSensorColliders(collisionGroups)](./server.rigidbody.setcollisiongroupsforsensorcolliders.md)
1226
+
1227
+
1228
+ </td><td>
1229
+
1230
+
1231
+ </td><td>
1232
+
1233
+ Sets the collision groups for sensor colliders of the rigid body.
1234
+
1235
+
1222
1236
  </td></tr>
1223
1237
  <tr><td>
1224
1238
 
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [RigidBody](./server.rigidbody.md) &gt; [setCollisionGroupsForSensorColliders](./server.rigidbody.setcollisiongroupsforsensorcolliders.md)
4
+
5
+ ## RigidBody.setCollisionGroupsForSensorColliders() method
6
+
7
+ Sets the collision groups for sensor colliders of the rigid body.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setCollisionGroupsForSensorColliders(collisionGroups: CollisionGroups): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ collisionGroups
36
+
37
+
38
+ </td><td>
39
+
40
+ [CollisionGroups](./server.collisiongroups.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The collision groups for sensor colliders of the rigid body.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,5 @@
1
+ # hole-in-wall-game
2
+
3
+ A game where players compete to be the last man standing while
4
+ walls fly towards them. Players must maneuver to avoid being hit
5
+ by the walls in order to survive.