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.
- package/docs/server.chatmanager.md +46 -2
- package/docs/server.chatmanager.onbroadcastmessage.md +13 -0
- package/docs/server.chatmanager.sendbroadcastmessage.md +1 -1
- package/docs/server.chatmanager.sendplayermessage.md +1 -1
- package/docs/server.rigidbody.md +14 -0
- package/docs/server.rigidbody.setcollisiongroupsforsensorcolliders.md +53 -0
- package/examples/hole-in-wall-game/README.md +5 -0
- package/examples/hole-in-wall-game/assets/audio/music.mp3 +0 -0
- package/examples/hole-in-wall-game/assets/map.json +8109 -0
- package/examples/hole-in-wall-game/assets/textures/water.png +0 -0
- package/examples/hole-in-wall-game/assets/ui/index.html +270 -0
- package/examples/hole-in-wall-game/hole-in-the-wall-4.zip +0 -0
- package/examples/hole-in-wall-game/index.ts +506 -0
- package/examples/hole-in-wall-game/package.json +16 -0
- package/examples/wall-dodge-game/README.md +6 -0
- package/package.json +1 -1
- package/server.api.json +90 -2
- package/server.d.ts +17 -2
- package/server.js +37 -37
@@ -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) => 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) > [server](./server.md) > [ChatManager](./server.chatmanager.md) > [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
|
+
```
|
package/docs/server.rigidbody.md
CHANGED
@@ -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) > [server](./server.md) > [RigidBody](./server.rigidbody.md) > [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
|
+
|
Binary file
|