hytopia 0.5.23 → 0.6.1

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.
Files changed (31) hide show
  1. package/bun-server.mjs +126 -126
  2. package/docs/server.defaultplayerentitycontroller.applydirectionalmovementrotations.md +13 -0
  3. package/docs/server.defaultplayerentitycontroller.jumplandheavyoneshotanimations.md +13 -0
  4. package/docs/server.defaultplayerentitycontroller.jumplandlightoneshotanimations.md +13 -0
  5. package/docs/server.defaultplayerentitycontroller.md +77 -1
  6. package/docs/server.defaultplayerentitycontroller.swimidleloopedanimations.md +13 -0
  7. package/docs/server.defaultplayerentitycontroller.swimloopedanimations.md +1 -1
  8. package/docs/server.defaultplayerentitycontrolleroptions.applydirectionalmovementrotations.md +13 -0
  9. package/docs/server.defaultplayerentitycontrolleroptions.jumplandheavyoneshotanimations.md +13 -0
  10. package/docs/server.defaultplayerentitycontrolleroptions.jumplandlightoneshotanimations.md +13 -0
  11. package/docs/server.defaultplayerentitycontrolleroptions.md +77 -1
  12. package/docs/server.defaultplayerentitycontrolleroptions.swimidleloopedanimations.md +13 -0
  13. package/docs/server.defaultplayerentitycontrolleroptions.swimloopedanimations.md +1 -1
  14. package/docs/server.entity.md +43 -1
  15. package/docs/server.entity.modelscale.md +1 -1
  16. package/docs/server.entity.stopallmodelanimations.md +53 -0
  17. package/docs/server.entity.stopallmodelloopedanimations.md +53 -0
  18. package/docs/server.entity.stopallmodeloneshotanimations.md +53 -0
  19. package/docs/server.moveoptions.md +1 -0
  20. package/docs/server.simpleentitycontroller.idleloopedanimations.md +13 -0
  21. package/docs/server.simpleentitycontroller.idleloopedanimationsspeed.md +13 -0
  22. package/docs/server.simpleentitycontroller.jumponeshotanimations.md +13 -0
  23. package/docs/server.simpleentitycontroller.md +153 -0
  24. package/docs/server.simpleentitycontroller.moveloopedanimations.md +13 -0
  25. package/docs/server.simpleentitycontroller.moveloopedanimationsspeed.md +13 -0
  26. package/docs/server.simpleentitycontroller.movespeed.md +13 -0
  27. package/docs/server.simpleentitycontroller.spawn.md +53 -0
  28. package/node-server.mjs +144 -144
  29. package/package.json +1 -1
  30. package/server.api.json +649 -48
  31. package/server.d.ts +83 -3
@@ -37,6 +37,145 @@ myEntity.controller.move({ x: 10, y: 1, z: 10 }, 4, {
37
37
  });
38
38
  ```
39
39
 
40
+ ## Properties
41
+
42
+ <table><thead><tr><th>
43
+
44
+ Property
45
+
46
+
47
+ </th><th>
48
+
49
+ Modifiers
50
+
51
+
52
+ </th><th>
53
+
54
+ Type
55
+
56
+
57
+ </th><th>
58
+
59
+ Description
60
+
61
+
62
+ </th></tr></thead>
63
+ <tbody><tr><td>
64
+
65
+ [idleLoopedAnimations](./server.simpleentitycontroller.idleloopedanimations.md)
66
+
67
+
68
+ </td><td>
69
+
70
+
71
+ </td><td>
72
+
73
+ string\[\]
74
+
75
+
76
+ </td><td>
77
+
78
+ The animations to loop when the entity is idle.
79
+
80
+
81
+ </td></tr>
82
+ <tr><td>
83
+
84
+ [idleLoopedAnimationsSpeed](./server.simpleentitycontroller.idleloopedanimationsspeed.md)
85
+
86
+
87
+ </td><td>
88
+
89
+
90
+ </td><td>
91
+
92
+ number \| undefined
93
+
94
+
95
+ </td><td>
96
+
97
+ The speed at which to loop the idle animations.
98
+
99
+
100
+ </td></tr>
101
+ <tr><td>
102
+
103
+ [jumpOneshotAnimations](./server.simpleentitycontroller.jumponeshotanimations.md)
104
+
105
+
106
+ </td><td>
107
+
108
+
109
+ </td><td>
110
+
111
+ string\[\]
112
+
113
+
114
+ </td><td>
115
+
116
+ The animations to play when the entity jumps.
117
+
118
+
119
+ </td></tr>
120
+ <tr><td>
121
+
122
+ [moveLoopedAnimations](./server.simpleentitycontroller.moveloopedanimations.md)
123
+
124
+
125
+ </td><td>
126
+
127
+
128
+ </td><td>
129
+
130
+ string\[\]
131
+
132
+
133
+ </td><td>
134
+
135
+ The animations to loop when the entity is moving.
136
+
137
+
138
+ </td></tr>
139
+ <tr><td>
140
+
141
+ [moveLoopedAnimationsSpeed](./server.simpleentitycontroller.moveloopedanimationsspeed.md)
142
+
143
+
144
+ </td><td>
145
+
146
+
147
+ </td><td>
148
+
149
+ number \| undefined
150
+
151
+
152
+ </td><td>
153
+
154
+ The speed at which to loop the move animations.
155
+
156
+
157
+ </td></tr>
158
+ <tr><td>
159
+
160
+ [moveSpeed](./server.simpleentitycontroller.movespeed.md)
161
+
162
+
163
+ </td><td>
164
+
165
+
166
+ </td><td>
167
+
168
+ number
169
+
170
+
171
+ </td><td>
172
+
173
+ The speed at which to move the entity. Can be altered while moving.
174
+
175
+
176
+ </td></tr>
177
+ </tbody></table>
178
+
40
179
  ## Methods
41
180
 
42
181
  <table><thead><tr><th>
@@ -96,5 +235,19 @@ Applies an upwards impulse to the entity to simulate a jump, only supported for
96
235
  Moves the entity at a given speed in a straight line to a target coordinate.
97
236
 
98
237
 
238
+ </td></tr>
239
+ <tr><td>
240
+
241
+ [spawn(entity)](./server.simpleentitycontroller.spawn.md)
242
+
243
+
244
+ </td><td>
245
+
246
+
247
+ </td><td>
248
+
249
+ Override of the [BaseEntityController.spawn()](./server.baseentitycontroller.spawn.md) method. Starts the set idle animations (if any) when the entity is spawned.
250
+
251
+
99
252
  </td></tr>
100
253
  </tbody></table>
@@ -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; [SimpleEntityController](./server.simpleentitycontroller.md) &gt; [moveLoopedAnimations](./server.simpleentitycontroller.moveloopedanimations.md)
4
+
5
+ ## SimpleEntityController.moveLoopedAnimations property
6
+
7
+ The animations to loop when the entity is moving.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ moveLoopedAnimations: string[];
13
+ ```
@@ -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; [SimpleEntityController](./server.simpleentitycontroller.md) &gt; [moveLoopedAnimationsSpeed](./server.simpleentitycontroller.moveloopedanimationsspeed.md)
4
+
5
+ ## SimpleEntityController.moveLoopedAnimationsSpeed property
6
+
7
+ The speed at which to loop the move animations.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ moveLoopedAnimationsSpeed: number | undefined;
13
+ ```
@@ -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; [SimpleEntityController](./server.simpleentitycontroller.md) &gt; [moveSpeed](./server.simpleentitycontroller.movespeed.md)
4
+
5
+ ## SimpleEntityController.moveSpeed property
6
+
7
+ The speed at which to move the entity. Can be altered while moving.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ moveSpeed: number;
13
+ ```
@@ -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; [SimpleEntityController](./server.simpleentitycontroller.md) &gt; [spawn](./server.simpleentitycontroller.spawn.md)
4
+
5
+ ## SimpleEntityController.spawn() method
6
+
7
+ Override of the [BaseEntityController.spawn()](./server.baseentitycontroller.spawn.md) method. Starts the set idle animations (if any) when the entity is spawned.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ spawn(entity: Entity): 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
+ entity
36
+
37
+
38
+ </td><td>
39
+
40
+ [Entity](./server.entity.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The entity that was spawned.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+