hytopia 0.6.6 → 0.6.8
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 -3
- package/bun-server.mjs +146 -146
- package/docs/server.collisiongroup.md +15 -15
- package/docs/server.entity.md +35 -0
- package/docs/server.entity.modeltextureuri.md +13 -0
- package/docs/server.entity.setmodeltextureuri.md +53 -0
- package/docs/server.entityevent.md +14 -0
- package/docs/server.entityeventpayloads._entity.set_model_texture_uri_.md +16 -0
- package/docs/server.entityeventpayloads.md +19 -0
- package/docs/server.modelentityoptions.md +19 -0
- package/docs/server.modelentityoptions.modeltextureuri.md +13 -0
- package/docs/server.moveoptions.md +1 -0
- package/docs/server.pathfindingentitycontroller._constructor_.md +49 -0
- package/docs/server.pathfindingentitycontroller.md +34 -0
- package/docs/server.playercamera.md +35 -0
- package/docs/server.playercamera.setshoulderangle.md +53 -0
- package/docs/server.playercamera.shoulderangle.md +13 -0
- package/docs/server.playercameraevent.md +14 -0
- package/docs/server.playercameraeventpayloads._player_camera.set_shoulder_angle_.md +16 -0
- package/docs/server.playercameraeventpayloads.md +19 -0
- package/docs/{server.rigidbody.createandaddchildcolliderstosimulation.md → server.rigidbody.createandaddchildcolliders.md} +7 -3
- package/docs/server.rigidbody.md +1 -1
- package/docs/server.simpleentitycontroller._constructor_.md +49 -0
- package/docs/server.simpleentitycontroller.md +62 -0
- package/docs/server.simpleentitycontroller.stopface.md +17 -0
- package/docs/server.simpleentitycontroller.stopmove.md +17 -0
- package/docs/server.supported_input_keys.md +1 -1
- package/node-server.mjs +150 -150
- package/package.json +1 -1
- package/server.api.json +472 -29
- package/server.d.ts +97 -20
@@ -0,0 +1,49 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [(constructor)](./server.simpleentitycontroller._constructor_.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.(constructor)
|
6
|
+
|
7
|
+
Constructs a new instance of the `SimpleEntityController` class
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
constructor(options?: SimpleEntityControllerOptions);
|
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
|
+
options
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
SimpleEntityControllerOptions
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
_(Optional)_ Options for the controller.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
@@ -37,6 +37,40 @@ myEntity.controller.move({ x: 10, y: 1, z: 10 }, 4, {
|
|
37
37
|
});
|
38
38
|
```
|
39
39
|
|
40
|
+
## Constructors
|
41
|
+
|
42
|
+
<table><thead><tr><th>
|
43
|
+
|
44
|
+
Constructor
|
45
|
+
|
46
|
+
|
47
|
+
</th><th>
|
48
|
+
|
49
|
+
Modifiers
|
50
|
+
|
51
|
+
|
52
|
+
</th><th>
|
53
|
+
|
54
|
+
Description
|
55
|
+
|
56
|
+
|
57
|
+
</th></tr></thead>
|
58
|
+
<tbody><tr><td>
|
59
|
+
|
60
|
+
[(constructor)(options)](./server.simpleentitycontroller._constructor_.md)
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
Constructs a new instance of the `SimpleEntityController` class
|
69
|
+
|
70
|
+
|
71
|
+
</td></tr>
|
72
|
+
</tbody></table>
|
73
|
+
|
40
74
|
## Properties
|
41
75
|
|
42
76
|
<table><thead><tr><th>
|
@@ -249,5 +283,33 @@ Moves the entity at a given speed in a straight line to a target coordinate.
|
|
249
283
|
Override of the [BaseEntityController.spawn()](./server.baseentitycontroller.spawn.md) method. Starts the set idle animations (if any) when the entity is spawned.
|
250
284
|
|
251
285
|
|
286
|
+
</td></tr>
|
287
|
+
<tr><td>
|
288
|
+
|
289
|
+
[stopFace()](./server.simpleentitycontroller.stopface.md)
|
290
|
+
|
291
|
+
|
292
|
+
</td><td>
|
293
|
+
|
294
|
+
|
295
|
+
</td><td>
|
296
|
+
|
297
|
+
Stops the entity from attempting to face a target coordinate.
|
298
|
+
|
299
|
+
|
300
|
+
</td></tr>
|
301
|
+
<tr><td>
|
302
|
+
|
303
|
+
[stopMove()](./server.simpleentitycontroller.stopmove.md)
|
304
|
+
|
305
|
+
|
306
|
+
</td><td>
|
307
|
+
|
308
|
+
|
309
|
+
</td><td>
|
310
|
+
|
311
|
+
Stops the entity from continuing to move it's current target coordinate.
|
312
|
+
|
313
|
+
|
252
314
|
</td></tr>
|
253
315
|
</tbody></table>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [stopFace](./server.simpleentitycontroller.stopface.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.stopFace() method
|
6
|
+
|
7
|
+
Stops the entity from attempting to face a target coordinate.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
stopFace(): void;
|
13
|
+
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
void
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [stopMove](./server.simpleentitycontroller.stopmove.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.stopMove() method
|
6
|
+
|
7
|
+
Stops the entity from continuing to move it's current target coordinate.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
stopMove(): void;
|
13
|
+
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
void
|
17
|
+
|
@@ -9,5 +9,5 @@ The input keys that are included in the PlayerInput.
|
|
9
9
|
**Signature:**
|
10
10
|
|
11
11
|
```typescript
|
12
|
-
SUPPORTED_INPUT_KEYS: readonly ["w", "a", "s", "d", "sp", "sh", "tb", "ml", "mr", "q", "e", "r", "f", "z", "x", "c", "v", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]
|
12
|
+
SUPPORTED_INPUT_KEYS: readonly ["w", "a", "s", "d", "sp", "sh", "tb", "ml", "mr", "q", "e", "r", "f", "z", "x", "c", "v", "u", "i", "o", "j", "k", "l", "n", "m", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]
|
13
13
|
```
|