hytopia 0.1.34 → 0.1.36
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/README.md +3 -1
- package/docs/server.audio.md +1 -1
- package/docs/server.blocktype.md +1 -1
- package/docs/server.blocktyperegistry.md +2 -2
- package/docs/server.blocktyperegistry.registerblocktype.md +2 -18
- package/docs/server.chunk.getblock.md +55 -0
- package/docs/server.chunk.hasblock.md +55 -0
- package/docs/server.chunk.md +28 -0
- package/docs/server.chunklattice.getblock.md +55 -0
- package/docs/server.chunklattice.hasblock.md +55 -0
- package/docs/server.chunklattice.md +29 -1
- package/docs/server.chunklattice.setblock.md +2 -2
- package/docs/server.entity.md +35 -0
- package/docs/server.entity.settintcolor.md +53 -0
- package/docs/server.entity.tintcolor.md +13 -0
- package/docs/server.entityeventpayload.md +9 -0
- package/docs/server.entityeventpayload.settintcolor.entity.md +11 -0
- package/docs/server.entityeventpayload.settintcolor.md +70 -0
- package/docs/server.entityeventpayload.settintcolor.tintcolor.md +11 -0
- package/docs/server.entityeventtype.md +15 -1
- package/docs/server.entityoptions.md +19 -0
- package/docs/server.entityoptions.tintcolor.md +13 -0
- package/docs/server.gameserver.md +1 -1
- package/docs/server.hytopia.audio.md +1 -1
- package/docs/server.hytopia.blocktype.md +1 -1
- package/docs/server.hytopia.blocktyperegistry.md +2 -2
- package/docs/server.hytopia.blocktyperegistry.registerblocktype.md +2 -18
- package/docs/server.hytopia.chunk.getblock.md +55 -0
- package/docs/server.hytopia.chunk.hasblock.md +55 -0
- package/docs/server.hytopia.chunk.md +28 -0
- package/docs/server.hytopia.chunklattice.getblock.md +55 -0
- package/docs/server.hytopia.chunklattice.hasblock.md +55 -0
- package/docs/server.hytopia.chunklattice.md +29 -1
- package/docs/server.hytopia.chunklattice.setblock.md +2 -2
- package/docs/server.hytopia.entity.md +35 -0
- package/docs/server.hytopia.entity.settintcolor.md +53 -0
- package/docs/server.hytopia.entity.tintcolor.md +13 -0
- package/docs/server.hytopia.entityeventpayload.md +9 -0
- package/docs/server.hytopia.entityeventpayload.settintcolor.entity.md +11 -0
- package/docs/server.hytopia.entityeventpayload.settintcolor.md +70 -0
- package/docs/server.hytopia.entityeventpayload.settintcolor.tintcolor.md +11 -0
- package/docs/server.hytopia.entityeventtype.md +15 -1
- package/docs/server.hytopia.entityoptions.md +19 -0
- package/docs/server.hytopia.entityoptions.tintcolor.md +13 -0
- package/docs/server.hytopia.gameserver.md +1 -1
- package/docs/server.hytopia.md +11 -11
- package/docs/server.hytopia.rgbcolor.b.md +11 -0
- package/docs/server.hytopia.rgbcolor.g.md +11 -0
- package/docs/server.hytopia.rgbcolor.md +89 -0
- package/docs/server.hytopia.rgbcolor.r.md +11 -0
- package/docs/server.hytopia.simulation.md +14 -0
- package/docs/server.hytopia.simulation.setgravity.md +53 -0
- package/docs/server.hytopia.worldmap.blocktypes.md +1 -5
- package/docs/server.hytopia.worldmap.md +1 -1
- package/docs/server.md +11 -11
- package/docs/server.rgbcolor.b.md +11 -0
- package/docs/server.rgbcolor.g.md +11 -0
- package/docs/server.rgbcolor.md +89 -0
- package/docs/server.rgbcolor.r.md +11 -0
- package/docs/server.simulation.md +14 -0
- package/docs/server.simulation.setgravity.md +53 -0
- package/docs/server.worldmap.blocktypes.md +1 -5
- package/docs/server.worldmap.md +1 -1
- package/package.json +1 -1
- package/readme/assets/banner-2.jpeg +0 -0
- package/server.api.json +1277 -219
- package/server.d.ts +61 -42
- package/server.js +79 -79
- package/docs/server.hytopia.webserver.md +0 -20
- package/docs/server.webserver.md +0 -20
@@ -43,6 +43,20 @@ DESPAWN
|
|
43
43
|
</td><td>
|
44
44
|
|
45
45
|
|
46
|
+
</td></tr>
|
47
|
+
<tr><td>
|
48
|
+
|
49
|
+
SET\_TINT\_COLOR
|
50
|
+
|
51
|
+
|
52
|
+
</td><td>
|
53
|
+
|
54
|
+
`"ENTITY.SET_TINT_COLOR"`
|
55
|
+
|
56
|
+
|
57
|
+
</td><td>
|
58
|
+
|
59
|
+
|
46
60
|
</td></tr>
|
47
61
|
<tr><td>
|
48
62
|
|
@@ -65,7 +79,7 @@ START\_MODEL\_LOOPED\_ANIMATIONS
|
|
65
79
|
|
66
80
|
</td><td>
|
67
81
|
|
68
|
-
`"ENTITY.
|
82
|
+
`"ENTITY.START_MODEL_LOOPED_ANIMATIONS"`
|
69
83
|
|
70
84
|
|
71
85
|
</td><td>
|
@@ -205,5 +205,24 @@ string
|
|
205
205
|
_(Optional)_ An arbitrary identifier tag of the entity. Useful for your own logic.
|
206
206
|
|
207
207
|
|
208
|
+
</td></tr>
|
209
|
+
<tr><td>
|
210
|
+
|
211
|
+
[tintColor?](./server.hytopia.entityoptions.tintcolor.md)
|
212
|
+
|
213
|
+
|
214
|
+
</td><td>
|
215
|
+
|
216
|
+
|
217
|
+
</td><td>
|
218
|
+
|
219
|
+
[RgbColor](./server.rgbcolor.md)
|
220
|
+
|
221
|
+
|
222
|
+
</td><td>
|
223
|
+
|
224
|
+
_(Optional)_ The tint color of the entity as a hex code.
|
225
|
+
|
226
|
+
|
208
227
|
</td></tr>
|
209
228
|
</tbody></table>
|
@@ -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) > [HYTOPIA](./server.hytopia.md) > [EntityOptions](./server.hytopia.entityoptions.md) > [tintColor](./server.hytopia.entityoptions.tintcolor.md)
|
4
|
+
|
5
|
+
## HYTOPIA.EntityOptions.tintColor property
|
6
|
+
|
7
|
+
The tint color of the entity as a hex code.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
tintColor?: RgbColor;
|
13
|
+
```
|
package/docs/server.hytopia.md
CHANGED
@@ -258,17 +258,6 @@ A simple character controller with basic movement functions.
|
|
258
258
|
Represents the physics simulation for a world.
|
259
259
|
|
260
260
|
|
261
|
-
</td></tr>
|
262
|
-
<tr><td>
|
263
|
-
|
264
|
-
[WebServer](./server.hytopia.webserver.md)
|
265
|
-
|
266
|
-
|
267
|
-
</td><td>
|
268
|
-
|
269
|
-
Manages the internal HTTP server for the game server.
|
270
|
-
|
271
|
-
|
272
261
|
</td></tr>
|
273
262
|
<tr><td>
|
274
263
|
|
@@ -591,6 +580,17 @@ An EventRouter event.
|
|
591
580
|
Options for creating a PlayerEntity instance.
|
592
581
|
|
593
582
|
|
583
|
+
</td></tr>
|
584
|
+
<tr><td>
|
585
|
+
|
586
|
+
[RgbColor](./server.hytopia.rgbcolor.md)
|
587
|
+
|
588
|
+
|
589
|
+
</td><td>
|
590
|
+
|
591
|
+
A RGB color.
|
592
|
+
|
593
|
+
|
594
594
|
</td></tr>
|
595
595
|
<tr><td>
|
596
596
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [RgbColor](./server.hytopia.rgbcolor.md) > [b](./server.hytopia.rgbcolor.b.md)
|
4
|
+
|
5
|
+
## HYTOPIA.RgbColor.b property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
b: number;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [RgbColor](./server.hytopia.rgbcolor.md) > [g](./server.hytopia.rgbcolor.g.md)
|
4
|
+
|
5
|
+
## HYTOPIA.RgbColor.g property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
g: number;
|
11
|
+
```
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [RgbColor](./server.hytopia.rgbcolor.md)
|
4
|
+
|
5
|
+
## HYTOPIA.RgbColor interface
|
6
|
+
|
7
|
+
A RGB color.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
interface RgbColor
|
13
|
+
```
|
14
|
+
|
15
|
+
## Properties
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Property
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Modifiers
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Type
|
30
|
+
|
31
|
+
|
32
|
+
</th><th>
|
33
|
+
|
34
|
+
Description
|
35
|
+
|
36
|
+
|
37
|
+
</th></tr></thead>
|
38
|
+
<tbody><tr><td>
|
39
|
+
|
40
|
+
[b](./server.hytopia.rgbcolor.b.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
number
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
|
54
|
+
</td></tr>
|
55
|
+
<tr><td>
|
56
|
+
|
57
|
+
[g](./server.hytopia.rgbcolor.g.md)
|
58
|
+
|
59
|
+
|
60
|
+
</td><td>
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
number
|
66
|
+
|
67
|
+
|
68
|
+
</td><td>
|
69
|
+
|
70
|
+
|
71
|
+
</td></tr>
|
72
|
+
<tr><td>
|
73
|
+
|
74
|
+
[r](./server.hytopia.rgbcolor.r.md)
|
75
|
+
|
76
|
+
|
77
|
+
</td><td>
|
78
|
+
|
79
|
+
|
80
|
+
</td><td>
|
81
|
+
|
82
|
+
number
|
83
|
+
|
84
|
+
|
85
|
+
</td><td>
|
86
|
+
|
87
|
+
|
88
|
+
</td></tr>
|
89
|
+
</tbody></table>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [HYTOPIA](./server.hytopia.md) > [RgbColor](./server.hytopia.rgbcolor.md) > [r](./server.hytopia.rgbcolor.r.md)
|
4
|
+
|
5
|
+
## HYTOPIA.RgbColor.r property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
r: number;
|
11
|
+
```
|
@@ -172,5 +172,19 @@ Casts a ray through the simulation.
|
|
172
172
|
Enables or disables debug rendering for the simulation. When enabled, all colliders, rigid body and raycast outlines will be rendered in the world. Do not enable this in production. In large worlds enabling this can cause noticable lag and RTT spikes.
|
173
173
|
|
174
174
|
|
175
|
+
</td></tr>
|
176
|
+
<tr><td>
|
177
|
+
|
178
|
+
[setGravity(gravity)](./server.hytopia.simulation.setgravity.md)
|
179
|
+
|
180
|
+
|
181
|
+
</td><td>
|
182
|
+
|
183
|
+
|
184
|
+
</td><td>
|
185
|
+
|
186
|
+
Sets the gravity vector for the simulation.
|
187
|
+
|
188
|
+
|
175
189
|
</td></tr>
|
176
190
|
</tbody></table>
|
@@ -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) > [HYTOPIA](./server.hytopia.md) > [Simulation](./server.hytopia.simulation.md) > [setGravity](./server.hytopia.simulation.setgravity.md)
|
4
|
+
|
5
|
+
## HYTOPIA.Simulation.setGravity() method
|
6
|
+
|
7
|
+
Sets the gravity vector for the simulation.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setGravity(gravity: RAPIER.Vector3): 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
|
+
gravity
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
RAPIER.Vector3
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The gravity vector.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|
package/docs/server.md
CHANGED
@@ -258,17 +258,6 @@ A simple character controller with basic movement functions.
|
|
258
258
|
Represents the physics simulation for a world.
|
259
259
|
|
260
260
|
|
261
|
-
</td></tr>
|
262
|
-
<tr><td>
|
263
|
-
|
264
|
-
[WebServer](./server.webserver.md)
|
265
|
-
|
266
|
-
|
267
|
-
</td><td>
|
268
|
-
|
269
|
-
Manages the internal HTTP server for the game server.
|
270
|
-
|
271
|
-
|
272
261
|
</td></tr>
|
273
262
|
<tr><td>
|
274
263
|
|
@@ -591,6 +580,17 @@ An EventRouter event.
|
|
591
580
|
Options for creating a PlayerEntity instance.
|
592
581
|
|
593
582
|
|
583
|
+
</td></tr>
|
584
|
+
<tr><td>
|
585
|
+
|
586
|
+
[RgbColor](./server.rgbcolor.md)
|
587
|
+
|
588
|
+
|
589
|
+
</td><td>
|
590
|
+
|
591
|
+
A RGB color.
|
592
|
+
|
593
|
+
|
594
594
|
</td></tr>
|
595
595
|
<tr><td>
|
596
596
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [RgbColor](./server.rgbcolor.md) > [b](./server.rgbcolor.b.md)
|
4
|
+
|
5
|
+
## RgbColor.b property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
b: number;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [RgbColor](./server.rgbcolor.md) > [g](./server.rgbcolor.g.md)
|
4
|
+
|
5
|
+
## RgbColor.g property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
g: number;
|
11
|
+
```
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [RgbColor](./server.rgbcolor.md)
|
4
|
+
|
5
|
+
## RgbColor interface
|
6
|
+
|
7
|
+
A RGB color.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
interface RgbColor
|
13
|
+
```
|
14
|
+
|
15
|
+
## Properties
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Property
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Modifiers
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Type
|
30
|
+
|
31
|
+
|
32
|
+
</th><th>
|
33
|
+
|
34
|
+
Description
|
35
|
+
|
36
|
+
|
37
|
+
</th></tr></thead>
|
38
|
+
<tbody><tr><td>
|
39
|
+
|
40
|
+
[b](./server.rgbcolor.b.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
number
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
|
54
|
+
</td></tr>
|
55
|
+
<tr><td>
|
56
|
+
|
57
|
+
[g](./server.rgbcolor.g.md)
|
58
|
+
|
59
|
+
|
60
|
+
</td><td>
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
number
|
66
|
+
|
67
|
+
|
68
|
+
</td><td>
|
69
|
+
|
70
|
+
|
71
|
+
</td></tr>
|
72
|
+
<tr><td>
|
73
|
+
|
74
|
+
[r](./server.rgbcolor.r.md)
|
75
|
+
|
76
|
+
|
77
|
+
</td><td>
|
78
|
+
|
79
|
+
|
80
|
+
</td><td>
|
81
|
+
|
82
|
+
number
|
83
|
+
|
84
|
+
|
85
|
+
</td><td>
|
86
|
+
|
87
|
+
|
88
|
+
</td></tr>
|
89
|
+
</tbody></table>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [RgbColor](./server.rgbcolor.md) > [r](./server.rgbcolor.r.md)
|
4
|
+
|
5
|
+
## RgbColor.r property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
r: number;
|
11
|
+
```
|
@@ -172,5 +172,19 @@ Casts a ray through the simulation.
|
|
172
172
|
Enables or disables debug rendering for the simulation. When enabled, all colliders, rigid body and raycast outlines will be rendered in the world. Do not enable this in production. In large worlds enabling this can cause noticable lag and RTT spikes.
|
173
173
|
|
174
174
|
|
175
|
+
</td></tr>
|
176
|
+
<tr><td>
|
177
|
+
|
178
|
+
[setGravity(gravity)](./server.simulation.setgravity.md)
|
179
|
+
|
180
|
+
|
181
|
+
</td><td>
|
182
|
+
|
183
|
+
|
184
|
+
</td><td>
|
185
|
+
|
186
|
+
Sets the gravity vector for the simulation.
|
187
|
+
|
188
|
+
|
175
189
|
</td></tr>
|
176
190
|
</tbody></table>
|
@@ -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) > [Simulation](./server.simulation.md) > [setGravity](./server.simulation.setgravity.md)
|
4
|
+
|
5
|
+
## Simulation.setGravity() method
|
6
|
+
|
7
|
+
Sets the gravity vector for the simulation.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setGravity(gravity: RAPIER.Vector3): 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
|
+
gravity
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
RAPIER.Vector3
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The gravity vector.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|
package/docs/server.worldmap.md
CHANGED
package/package.json
CHANGED
Binary file
|