hytopia 0.3.12 → 0.3.13
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.baseentityoptions.controller.md +13 -0
- package/docs/server.baseentityoptions.md +190 -0
- package/docs/server.baseentityoptions.name.md +13 -0
- package/docs/{server.entityoptions.opacity.md → server.baseentityoptions.opacity.md} +2 -2
- package/docs/{server.entityoptions.parent.md → server.baseentityoptions.parent.md} +2 -2
- package/docs/{server.entityoptions.parentnodename.md → server.baseentityoptions.parentnodename.md} +2 -2
- package/docs/server.baseentityoptions.rigidbodyoptions.md +13 -0
- package/docs/{server.entityoptions.tag.md → server.baseentityoptions.tag.md} +2 -2
- package/docs/server.baseentityoptions.tintcolor.md +13 -0
- package/docs/{server.entityoptions.blockhalfextents.md → server.blockentityoptions.blockhalfextents.md} +2 -2
- package/docs/{server.entityoptions.blocktextureuri.md → server.blockentityoptions.blocktextureuri.md} +2 -2
- package/docs/server.blockentityoptions.md +77 -0
- package/docs/server.entityoptions.md +4 -312
- package/docs/server.md +52 -19
- package/docs/server.modelentityoptions.md +134 -0
- package/docs/server.modelentityoptions.modelanimationsplaybackrate.md +13 -0
- package/docs/server.modelentityoptions.modelhiddennodes.md +13 -0
- package/docs/server.modelentityoptions.modelloopedanimations.md +13 -0
- package/docs/server.modelentityoptions.modelscale.md +13 -0
- package/docs/server.modelentityoptions.modeluri.md +13 -0
- package/docs/server.playerentityoptions.md +5 -46
- package/docs/server.playerui.lockpointer.md +1 -1
- package/docs/server.playerui.md +1 -1
- package/examples/entity-spawn/index.ts +4 -3
- package/examples/hygrounds/classes/ChestEntity.ts +2 -2
- package/examples/hygrounds/classes/GunEntity.ts +3 -3
- package/examples/hygrounds/classes/ItemEntity.ts +13 -9
- package/examples/hygrounds/classes/MeleeWeaponEntity.ts +3 -3
- package/examples/zombies-fps/classes/EnemyEntity.ts +2 -2
- package/examples/zombies-fps/classes/GunEntity.ts +3 -3
- package/package.json +1 -1
- package/server.api.json +614 -534
- package/server.d.ts +51 -36
- package/server.js +1 -1
- package/docs/server.entityoptions.controller.md +0 -13
- package/docs/server.entityoptions.modelanimationsplaybackrate.md +0 -13
- package/docs/server.entityoptions.modelhiddennodes.md +0 -13
- package/docs/server.entityoptions.modelloopedanimations.md +0 -13
- package/docs/server.entityoptions.modelscale.md +0 -13
- package/docs/server.entityoptions.modeluri.md +0 -13
- package/docs/server.entityoptions.name.md +0 -13
- package/docs/server.entityoptions.rigidbodyoptions.md +0 -13
- package/docs/server.entityoptions.tintcolor.md +0 -13
- package/docs/server.playerentityoptions.player.md +0 -13
@@ -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) > [BaseEntityOptions](./server.baseentityoptions.md) > [controller](./server.baseentityoptions.controller.md)
|
4
|
+
|
5
|
+
## BaseEntityOptions.controller property
|
6
|
+
|
7
|
+
The entity controller to use for the entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
controller?: BaseEntityController;
|
13
|
+
```
|
@@ -0,0 +1,190 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BaseEntityOptions](./server.baseentityoptions.md)
|
4
|
+
|
5
|
+
## BaseEntityOptions interface
|
6
|
+
|
7
|
+
The base options for an entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export interface BaseEntityOptions
|
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
|
+
[controller?](./server.baseentityoptions.controller.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
[BaseEntityController](./server.baseentitycontroller.md)
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
_(Optional)_ The entity controller to use for the entity.
|
54
|
+
|
55
|
+
|
56
|
+
</td></tr>
|
57
|
+
<tr><td>
|
58
|
+
|
59
|
+
[name?](./server.baseentityoptions.name.md)
|
60
|
+
|
61
|
+
|
62
|
+
</td><td>
|
63
|
+
|
64
|
+
|
65
|
+
</td><td>
|
66
|
+
|
67
|
+
string
|
68
|
+
|
69
|
+
|
70
|
+
</td><td>
|
71
|
+
|
72
|
+
_(Optional)_ The name of the entity.
|
73
|
+
|
74
|
+
|
75
|
+
</td></tr>
|
76
|
+
<tr><td>
|
77
|
+
|
78
|
+
[opacity?](./server.baseentityoptions.opacity.md)
|
79
|
+
|
80
|
+
|
81
|
+
</td><td>
|
82
|
+
|
83
|
+
|
84
|
+
</td><td>
|
85
|
+
|
86
|
+
number
|
87
|
+
|
88
|
+
|
89
|
+
</td><td>
|
90
|
+
|
91
|
+
_(Optional)_ The opacity of the entity between 0 and 1. 0 is fully transparent, 1 is fully opaque.
|
92
|
+
|
93
|
+
|
94
|
+
</td></tr>
|
95
|
+
<tr><td>
|
96
|
+
|
97
|
+
[parent?](./server.baseentityoptions.parent.md)
|
98
|
+
|
99
|
+
|
100
|
+
</td><td>
|
101
|
+
|
102
|
+
|
103
|
+
</td><td>
|
104
|
+
|
105
|
+
[Entity](./server.entity.md)
|
106
|
+
|
107
|
+
|
108
|
+
</td><td>
|
109
|
+
|
110
|
+
_(Optional)_ The parent entity of the entity, entities with a parent will ignore creating their own colliders.
|
111
|
+
|
112
|
+
|
113
|
+
</td></tr>
|
114
|
+
<tr><td>
|
115
|
+
|
116
|
+
[parentNodeName?](./server.baseentityoptions.parentnodename.md)
|
117
|
+
|
118
|
+
|
119
|
+
</td><td>
|
120
|
+
|
121
|
+
|
122
|
+
</td><td>
|
123
|
+
|
124
|
+
string
|
125
|
+
|
126
|
+
|
127
|
+
</td><td>
|
128
|
+
|
129
|
+
_(Optional)_ The name of the parent's node (if parent is a model entity) to attach the entity to.
|
130
|
+
|
131
|
+
|
132
|
+
</td></tr>
|
133
|
+
<tr><td>
|
134
|
+
|
135
|
+
[rigidBodyOptions?](./server.baseentityoptions.rigidbodyoptions.md)
|
136
|
+
|
137
|
+
|
138
|
+
</td><td>
|
139
|
+
|
140
|
+
|
141
|
+
</td><td>
|
142
|
+
|
143
|
+
[RigidBodyOptions](./server.rigidbodyoptions.md)
|
144
|
+
|
145
|
+
|
146
|
+
</td><td>
|
147
|
+
|
148
|
+
_(Optional)_ The rigid body options for the entity.
|
149
|
+
|
150
|
+
|
151
|
+
</td></tr>
|
152
|
+
<tr><td>
|
153
|
+
|
154
|
+
[tag?](./server.baseentityoptions.tag.md)
|
155
|
+
|
156
|
+
|
157
|
+
</td><td>
|
158
|
+
|
159
|
+
|
160
|
+
</td><td>
|
161
|
+
|
162
|
+
string
|
163
|
+
|
164
|
+
|
165
|
+
</td><td>
|
166
|
+
|
167
|
+
_(Optional)_ An arbitrary identifier tag of the entity. Useful for your own logic.
|
168
|
+
|
169
|
+
|
170
|
+
</td></tr>
|
171
|
+
<tr><td>
|
172
|
+
|
173
|
+
[tintColor?](./server.baseentityoptions.tintcolor.md)
|
174
|
+
|
175
|
+
|
176
|
+
</td><td>
|
177
|
+
|
178
|
+
|
179
|
+
</td><td>
|
180
|
+
|
181
|
+
[RgbColor](./server.rgbcolor.md)
|
182
|
+
|
183
|
+
|
184
|
+
</td><td>
|
185
|
+
|
186
|
+
_(Optional)_ The tint color of the entity as a hex code.
|
187
|
+
|
188
|
+
|
189
|
+
</td></tr>
|
190
|
+
</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) > [BaseEntityOptions](./server.baseentityoptions.md) > [name](./server.baseentityoptions.name.md)
|
4
|
+
|
5
|
+
## BaseEntityOptions.name property
|
6
|
+
|
7
|
+
The name of the entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
name?: string;
|
13
|
+
```
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BaseEntityOptions](./server.baseentityoptions.md) > [opacity](./server.baseentityoptions.opacity.md)
|
4
4
|
|
5
|
-
##
|
5
|
+
## BaseEntityOptions.opacity property
|
6
6
|
|
7
7
|
The opacity of the entity between 0 and 1. 0 is fully transparent, 1 is fully opaque.
|
8
8
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BaseEntityOptions](./server.baseentityoptions.md) > [parent](./server.baseentityoptions.parent.md)
|
4
4
|
|
5
|
-
##
|
5
|
+
## BaseEntityOptions.parent property
|
6
6
|
|
7
7
|
The parent entity of the entity, entities with a parent will ignore creating their own colliders.
|
8
8
|
|
package/docs/{server.entityoptions.parentnodename.md → server.baseentityoptions.parentnodename.md}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BaseEntityOptions](./server.baseentityoptions.md) > [parentNodeName](./server.baseentityoptions.parentnodename.md)
|
4
4
|
|
5
|
-
##
|
5
|
+
## BaseEntityOptions.parentNodeName property
|
6
6
|
|
7
7
|
The name of the parent's node (if parent is a model entity) to attach the entity to.
|
8
8
|
|
@@ -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) > [BaseEntityOptions](./server.baseentityoptions.md) > [rigidBodyOptions](./server.baseentityoptions.rigidbodyoptions.md)
|
4
|
+
|
5
|
+
## BaseEntityOptions.rigidBodyOptions property
|
6
|
+
|
7
|
+
The rigid body options for the entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
rigidBodyOptions?: RigidBodyOptions;
|
13
|
+
```
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BaseEntityOptions](./server.baseentityoptions.md) > [tag](./server.baseentityoptions.tag.md)
|
4
4
|
|
5
|
-
##
|
5
|
+
## BaseEntityOptions.tag property
|
6
6
|
|
7
7
|
An arbitrary identifier tag of the entity. Useful for your own logic.
|
8
8
|
|
@@ -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) > [BaseEntityOptions](./server.baseentityoptions.md) > [tintColor](./server.baseentityoptions.tintcolor.md)
|
4
|
+
|
5
|
+
## BaseEntityOptions.tintColor property
|
6
|
+
|
7
|
+
The tint color of the entity as a hex code.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
tintColor?: RgbColor;
|
13
|
+
```
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockEntityOptions](./server.blockentityoptions.md) > [blockHalfExtents](./server.blockentityoptions.blockhalfextents.md)
|
4
4
|
|
5
|
-
##
|
5
|
+
## BlockEntityOptions.blockHalfExtents property
|
6
6
|
|
7
7
|
The half extents of the visual size of the block entity when blockTextureUri is set. If no rigidBodyOptions.colliders are provided, a block collider with the size of the half extents will be created.
|
8
8
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockEntityOptions](./server.blockentityoptions.md) > [blockTextureUri](./server.blockentityoptions.blocktextureuri.md)
|
4
4
|
|
5
|
-
##
|
5
|
+
## BlockEntityOptions.blockTextureUri property
|
6
6
|
|
7
7
|
The texture uri of a entity if the entity is a block entity, if set rigidBodyOptions collider shape \[0\] must be a block
|
8
8
|
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockEntityOptions](./server.blockentityoptions.md)
|
4
|
+
|
5
|
+
## BlockEntityOptions interface
|
6
|
+
|
7
|
+
The options for creating a block entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export interface BlockEntityOptions extends BaseEntityOptions
|
13
|
+
```
|
14
|
+
**Extends:** [BaseEntityOptions](./server.baseentityoptions.md)
|
15
|
+
|
16
|
+
## Properties
|
17
|
+
|
18
|
+
<table><thead><tr><th>
|
19
|
+
|
20
|
+
Property
|
21
|
+
|
22
|
+
|
23
|
+
</th><th>
|
24
|
+
|
25
|
+
Modifiers
|
26
|
+
|
27
|
+
|
28
|
+
</th><th>
|
29
|
+
|
30
|
+
Type
|
31
|
+
|
32
|
+
|
33
|
+
</th><th>
|
34
|
+
|
35
|
+
Description
|
36
|
+
|
37
|
+
|
38
|
+
</th></tr></thead>
|
39
|
+
<tbody><tr><td>
|
40
|
+
|
41
|
+
[blockHalfExtents?](./server.blockentityoptions.blockhalfextents.md)
|
42
|
+
|
43
|
+
|
44
|
+
</td><td>
|
45
|
+
|
46
|
+
|
47
|
+
</td><td>
|
48
|
+
|
49
|
+
[Vector3Like](./server.vector3like.md)
|
50
|
+
|
51
|
+
|
52
|
+
</td><td>
|
53
|
+
|
54
|
+
_(Optional)_ The half extents of the visual size of the block entity when blockTextureUri is set. If no rigidBodyOptions.colliders are provided, a block collider with the size of the half extents will be created.
|
55
|
+
|
56
|
+
|
57
|
+
</td></tr>
|
58
|
+
<tr><td>
|
59
|
+
|
60
|
+
[blockTextureUri?](./server.blockentityoptions.blocktextureuri.md)
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
string
|
69
|
+
|
70
|
+
|
71
|
+
</td><td>
|
72
|
+
|
73
|
+
_(Optional)_ The texture uri of a entity if the entity is a block entity, if set rigidBodyOptions collider shape \[0\] must be a block
|
74
|
+
|
75
|
+
|
76
|
+
</td></tr>
|
77
|
+
</tbody></table>
|