hytopia 0.1.25 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/boilerplate/index.ts +12 -0
- package/docs/server.hytopia.md +22 -0
- package/docs/server.hytopia.worldloopeventpayload.md +73 -0
- package/docs/server.hytopia.worldloopeventpayload.start.md +53 -0
- package/docs/server.hytopia.worldloopeventpayload.start.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.stop.md +53 -0
- package/docs/server.hytopia.worldloopeventpayload.stop.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickend.md +70 -0
- package/docs/server.hytopia.worldloopeventpayload.tickend.tickdurationms.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickend.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickerror.error.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickerror.md +70 -0
- package/docs/server.hytopia.worldloopeventpayload.tickerror.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickstart.md +70 -0
- package/docs/server.hytopia.worldloopeventpayload.tickstart.tickdeltams.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickstart.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventtype.md +103 -0
- package/docs/server.md +22 -0
- package/docs/server.worldloopeventpayload.md +73 -0
- package/docs/server.worldloopeventpayload.start.md +53 -0
- package/docs/server.worldloopeventpayload.start.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.stop.md +53 -0
- package/docs/server.worldloopeventpayload.stop.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.tickend.md +70 -0
- package/docs/server.worldloopeventpayload.tickend.tickdurationms.md +11 -0
- package/docs/server.worldloopeventpayload.tickend.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.tickerror.error.md +11 -0
- package/docs/server.worldloopeventpayload.tickerror.md +70 -0
- package/docs/server.worldloopeventpayload.tickerror.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.tickstart.md +70 -0
- package/docs/server.worldloopeventpayload.tickstart.tickdeltams.md +11 -0
- package/docs/server.worldloopeventpayload.tickstart.worldloop.md +11 -0
- package/docs/server.worldloopeventtype.md +103 -0
- package/examples/character-controller/index.ts +1 -2
- package/examples/entity-spawn/index.ts +1 -2
- package/package.json +1 -1
- package/server.api.json +1082 -190
- package/server.d.ts +34 -1
- package/server.js +60 -60
package/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# HYTOPIA SDK
|
2
2
|
|
3
3
|
## Quick Links
|
4
|
-
[Quickstart](#quickstart) • [API Reference](./docs/server.md) • [Examples](./examples) • [Join Our Developer Discord](https://discord.gg/hytopia-developers) • [Report Bugs or Request Features](https://github.com/hytopiagg/sdk/issues)
|
4
|
+
[Quickstart](#quickstart) • [Developer Docs](https://dev.hytopia.com/) • [API Reference](./docs/server.md) • [Examples](./examples) • [Join Our Developer Discord](https://discord.gg/hytopia-developers) • [Report Bugs or Request Features](https://github.com/hytopiagg/sdk/issues)
|
5
5
|
|
6
6
|
## What is HYTOPIA?
|
7
7
|
|
@@ -56,6 +56,7 @@ bun --watch index.ts
|
|
56
56
|
**Note: If you'd prefer to use JavaScript instead of TypeScript, simply change the file extension of index.ts to index.js - Your editor will highlight the TypeScript syntax errors, simple delete the type annotations and everything should work the same without any TypeScript usage.**
|
57
57
|
|
58
58
|
Once you're up and running, here's some other resources to go further:
|
59
|
+
- [Developer Docs](https://dev.hytopia.com/)
|
59
60
|
- [Game Examples](./examples)
|
60
61
|
- [API Reference](./docs/server.md)
|
61
62
|
|
package/boilerplate/index.ts
CHANGED
@@ -25,6 +25,7 @@
|
|
25
25
|
|
26
26
|
import {
|
27
27
|
startServer,
|
28
|
+
Audio,
|
28
29
|
GameServer,
|
29
30
|
PlayerEntity,
|
30
31
|
} from 'hytopia';
|
@@ -112,4 +113,15 @@ startServer(world => {
|
|
112
113
|
entity.applyImpulse({ x: 0, y: 20, z: 0 });
|
113
114
|
});
|
114
115
|
});
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Play some peaceful ambient music to
|
119
|
+
* set the mood!
|
120
|
+
*/
|
121
|
+
|
122
|
+
new Audio({
|
123
|
+
uri: 'audio/music/overworld.mp3',
|
124
|
+
loop: true,
|
125
|
+
volume: 0.1,
|
126
|
+
}).play(world);
|
115
127
|
});
|
package/docs/server.hytopia.md
CHANGED
@@ -420,6 +420,17 @@ Event types a Player can emit.
|
|
420
420
|
The types a RigidBody can be.
|
421
421
|
|
422
422
|
|
423
|
+
</td></tr>
|
424
|
+
<tr><td>
|
425
|
+
|
426
|
+
[WorldLoopEventType](./server.hytopia.worldloopeventtype.md)
|
427
|
+
|
428
|
+
|
429
|
+
</td><td>
|
430
|
+
|
431
|
+
Event types a WorldLoop instance can emit.
|
432
|
+
|
433
|
+
|
423
434
|
</td></tr>
|
424
435
|
</tbody></table>
|
425
436
|
|
@@ -707,6 +718,17 @@ Payloads for events emitted by a GameServer instance.
|
|
707
718
|
Payloads for events a Player can emit.
|
708
719
|
|
709
720
|
|
721
|
+
</td></tr>
|
722
|
+
<tr><td>
|
723
|
+
|
724
|
+
[WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md)
|
725
|
+
|
726
|
+
|
727
|
+
</td><td>
|
728
|
+
|
729
|
+
Payloads for events emitted by a WorldLoop instance.
|
730
|
+
|
731
|
+
|
710
732
|
</td></tr>
|
711
733
|
</tbody></table>
|
712
734
|
|
@@ -0,0 +1,73 @@
|
|
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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload namespace
|
6
|
+
|
7
|
+
Payloads for events emitted by a WorldLoop instance.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare namespace WorldLoopEventPayload
|
13
|
+
```
|
14
|
+
|
15
|
+
## Interfaces
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Interface
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Description
|
25
|
+
|
26
|
+
|
27
|
+
</th></tr></thead>
|
28
|
+
<tbody><tr><td>
|
29
|
+
|
30
|
+
[Start](./server.hytopia.worldloopeventpayload.start.md)
|
31
|
+
|
32
|
+
|
33
|
+
</td><td>
|
34
|
+
|
35
|
+
|
36
|
+
</td></tr>
|
37
|
+
<tr><td>
|
38
|
+
|
39
|
+
[Stop](./server.hytopia.worldloopeventpayload.stop.md)
|
40
|
+
|
41
|
+
|
42
|
+
</td><td>
|
43
|
+
|
44
|
+
|
45
|
+
</td></tr>
|
46
|
+
<tr><td>
|
47
|
+
|
48
|
+
[TickEnd](./server.hytopia.worldloopeventpayload.tickend.md)
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
|
54
|
+
</td></tr>
|
55
|
+
<tr><td>
|
56
|
+
|
57
|
+
[TickError](./server.hytopia.worldloopeventpayload.tickerror.md)
|
58
|
+
|
59
|
+
|
60
|
+
</td><td>
|
61
|
+
|
62
|
+
|
63
|
+
</td></tr>
|
64
|
+
<tr><td>
|
65
|
+
|
66
|
+
[TickStart](./server.hytopia.worldloopeventpayload.tickstart.md)
|
67
|
+
|
68
|
+
|
69
|
+
</td><td>
|
70
|
+
|
71
|
+
|
72
|
+
</td></tr>
|
73
|
+
</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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [Start](./server.hytopia.worldloopeventpayload.start.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.Start interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface Start
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[worldLoop](./server.hytopia.worldloopeventpayload.start.worldloop.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
[WorldLoop](./server.worldloop.md)
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
</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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [Start](./server.hytopia.worldloopeventpayload.start.md) > [worldLoop](./server.hytopia.worldloopeventpayload.start.worldloop.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.Start.worldLoop property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
worldLoop: WorldLoop;
|
11
|
+
```
|
@@ -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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [Stop](./server.hytopia.worldloopeventpayload.stop.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.Stop interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface Stop
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[worldLoop](./server.hytopia.worldloopeventpayload.stop.worldloop.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
[WorldLoop](./server.worldloop.md)
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
</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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [Stop](./server.hytopia.worldloopeventpayload.stop.md) > [worldLoop](./server.hytopia.worldloopeventpayload.stop.worldloop.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.Stop.worldLoop property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
worldLoop: WorldLoop;
|
11
|
+
```
|
@@ -0,0 +1,70 @@
|
|
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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickEnd](./server.hytopia.worldloopeventpayload.tickend.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickEnd interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface TickEnd
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[tickDurationMs](./server.hytopia.worldloopeventpayload.tickend.tickdurationms.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
number
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
<tr><td>
|
54
|
+
|
55
|
+
[worldLoop](./server.hytopia.worldloopeventpayload.tickend.worldloop.md)
|
56
|
+
|
57
|
+
|
58
|
+
</td><td>
|
59
|
+
|
60
|
+
|
61
|
+
</td><td>
|
62
|
+
|
63
|
+
[WorldLoop](./server.worldloop.md)
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
|
69
|
+
</td></tr>
|
70
|
+
</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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickEnd](./server.hytopia.worldloopeventpayload.tickend.md) > [tickDurationMs](./server.hytopia.worldloopeventpayload.tickend.tickdurationms.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickEnd.tickDurationMs property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
tickDurationMs: 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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickEnd](./server.hytopia.worldloopeventpayload.tickend.md) > [worldLoop](./server.hytopia.worldloopeventpayload.tickend.worldloop.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickEnd.worldLoop property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
worldLoop: WorldLoop;
|
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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickError](./server.hytopia.worldloopeventpayload.tickerror.md) > [error](./server.hytopia.worldloopeventpayload.tickerror.error.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickError.error property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
error: Error;
|
11
|
+
```
|
@@ -0,0 +1,70 @@
|
|
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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickError](./server.hytopia.worldloopeventpayload.tickerror.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickError interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface TickError
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[error](./server.hytopia.worldloopeventpayload.tickerror.error.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
Error
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
<tr><td>
|
54
|
+
|
55
|
+
[worldLoop](./server.hytopia.worldloopeventpayload.tickerror.worldloop.md)
|
56
|
+
|
57
|
+
|
58
|
+
</td><td>
|
59
|
+
|
60
|
+
|
61
|
+
</td><td>
|
62
|
+
|
63
|
+
[WorldLoop](./server.worldloop.md)
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
|
69
|
+
</td></tr>
|
70
|
+
</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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickError](./server.hytopia.worldloopeventpayload.tickerror.md) > [worldLoop](./server.hytopia.worldloopeventpayload.tickerror.worldloop.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickError.worldLoop property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
worldLoop: WorldLoop;
|
11
|
+
```
|
@@ -0,0 +1,70 @@
|
|
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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickStart](./server.hytopia.worldloopeventpayload.tickstart.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickStart interface
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
interface TickStart
|
11
|
+
```
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Property
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Modifiers
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Type
|
28
|
+
|
29
|
+
|
30
|
+
</th><th>
|
31
|
+
|
32
|
+
Description
|
33
|
+
|
34
|
+
|
35
|
+
</th></tr></thead>
|
36
|
+
<tbody><tr><td>
|
37
|
+
|
38
|
+
[tickDeltaMs](./server.hytopia.worldloopeventpayload.tickstart.tickdeltams.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
number
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
|
52
|
+
</td></tr>
|
53
|
+
<tr><td>
|
54
|
+
|
55
|
+
[worldLoop](./server.hytopia.worldloopeventpayload.tickstart.worldloop.md)
|
56
|
+
|
57
|
+
|
58
|
+
</td><td>
|
59
|
+
|
60
|
+
|
61
|
+
</td><td>
|
62
|
+
|
63
|
+
[WorldLoop](./server.worldloop.md)
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
|
69
|
+
</td></tr>
|
70
|
+
</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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickStart](./server.hytopia.worldloopeventpayload.tickstart.md) > [tickDeltaMs](./server.hytopia.worldloopeventpayload.tickstart.tickdeltams.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickStart.tickDeltaMs property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
tickDeltaMs: 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) > [WorldLoopEventPayload](./server.hytopia.worldloopeventpayload.md) > [TickStart](./server.hytopia.worldloopeventpayload.tickstart.md) > [worldLoop](./server.hytopia.worldloopeventpayload.tickstart.worldloop.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventPayload.TickStart.worldLoop property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
worldLoop: WorldLoop;
|
11
|
+
```
|
@@ -0,0 +1,103 @@
|
|
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) > [WorldLoopEventType](./server.hytopia.worldloopeventtype.md)
|
4
|
+
|
5
|
+
## HYTOPIA.WorldLoopEventType enum
|
6
|
+
|
7
|
+
Event types a WorldLoop instance can emit.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare enum WorldLoopEventType
|
13
|
+
```
|
14
|
+
|
15
|
+
## Enumeration Members
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Member
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Value
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
START
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
`"WORLD_LOOP.START"`
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td></tr>
|
47
|
+
<tr><td>
|
48
|
+
|
49
|
+
STOP
|
50
|
+
|
51
|
+
|
52
|
+
</td><td>
|
53
|
+
|
54
|
+
`"WORLD_LOOP.STOP"`
|
55
|
+
|
56
|
+
|
57
|
+
</td><td>
|
58
|
+
|
59
|
+
|
60
|
+
</td></tr>
|
61
|
+
<tr><td>
|
62
|
+
|
63
|
+
TICK\_END
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
`"WORLD_LOOP.TICK_END"`
|
69
|
+
|
70
|
+
|
71
|
+
</td><td>
|
72
|
+
|
73
|
+
|
74
|
+
</td></tr>
|
75
|
+
<tr><td>
|
76
|
+
|
77
|
+
TICK\_ERROR
|
78
|
+
|
79
|
+
|
80
|
+
</td><td>
|
81
|
+
|
82
|
+
`"WORLD_LOOP.TICK_ERROR"`
|
83
|
+
|
84
|
+
|
85
|
+
</td><td>
|
86
|
+
|
87
|
+
|
88
|
+
</td></tr>
|
89
|
+
<tr><td>
|
90
|
+
|
91
|
+
TICK\_START
|
92
|
+
|
93
|
+
|
94
|
+
</td><td>
|
95
|
+
|
96
|
+
`"WORLD_LOOP.TICK_START"`
|
97
|
+
|
98
|
+
|
99
|
+
</td><td>
|
100
|
+
|
101
|
+
|
102
|
+
</td></tr>
|
103
|
+
</tbody></table>
|