hytopia 0.1.94 → 0.1.96

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 (26) hide show
  1. package/docs/server.playerentitycontroller.idleloopedanimations.md +13 -0
  2. package/docs/server.playerentitycontroller.interactoneshotanimations.md +13 -0
  3. package/docs/server.playerentitycontroller.jumponeshotanimations.md +13 -0
  4. package/docs/server.playerentitycontroller.md +95 -0
  5. package/docs/server.playerentitycontroller.runloopedanimations.md +13 -0
  6. package/docs/server.playerentitycontroller.walkloopedanimations.md +13 -0
  7. package/docs/server.playerentitycontrolleroptions.idleloopedanimations.md +13 -0
  8. package/docs/server.playerentitycontrolleroptions.interactoneshotanimations.md +13 -0
  9. package/docs/server.playerentitycontrolleroptions.jumponeshotanimations.md +13 -0
  10. package/docs/server.playerentitycontrolleroptions.md +95 -0
  11. package/docs/server.playerentitycontrolleroptions.runloopedanimations.md +13 -0
  12. package/docs/server.playerentitycontrolleroptions.walkloopedanimations.md +13 -0
  13. package/examples/zombies-fps/assets/maps/terrain.json +0 -274
  14. package/examples/zombies-fps/assets/models/items/pistol.glb +0 -0
  15. package/examples/zombies-fps/assets/models/players/soldier-player.gltf +1 -0
  16. package/examples/zombies-fps/classes/EnemyEntity.ts +20 -0
  17. package/examples/zombies-fps/classes/GamePlayerEntity.ts +54 -0
  18. package/examples/zombies-fps/classes/PurchaseBarrierEntity.ts +74 -0
  19. package/examples/zombies-fps/classes/WeaponCrateEntity.ts +0 -0
  20. package/examples/zombies-fps/classes/WeaponEntity.ts +32 -0
  21. package/examples/zombies-fps/gameConfig.ts +125 -0
  22. package/examples/zombies-fps/index.ts +29 -19
  23. package/package.json +1 -1
  24. package/server.api.json +285 -0
  25. package/server.d.ts +20 -0
  26. package/server.js +8 -8
@@ -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; [PlayerEntityController](./server.playerentitycontroller.md) &gt; [idleLoopedAnimations](./server.playerentitycontroller.idleloopedanimations.md)
4
+
5
+ ## PlayerEntityController.idleLoopedAnimations property
6
+
7
+ The looped animation(s) that will play when the entity is idle.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ idleLoopedAnimations: 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; [PlayerEntityController](./server.playerentitycontroller.md) &gt; [interactOneshotAnimations](./server.playerentitycontroller.interactoneshotanimations.md)
4
+
5
+ ## PlayerEntityController.interactOneshotAnimations property
6
+
7
+ The oneshot animation(s) that will play when the entity interacts (left click)
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ interactOneshotAnimations: 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; [PlayerEntityController](./server.playerentitycontroller.md) &gt; [jumpOneshotAnimations](./server.playerentitycontroller.jumponeshotanimations.md)
4
+
5
+ ## PlayerEntityController.jumpOneshotAnimations property
6
+
7
+ The oneshot animation(s) that will play when the entity is jumping.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ jumpOneshotAnimations: string[];
13
+ ```
@@ -145,6 +145,44 @@ A function allowing custom logic to determine if the entity can run.
145
145
  A function allowing custom logic to determine if the entity can walk.
146
146
 
147
147
 
148
+ </td></tr>
149
+ <tr><td>
150
+
151
+ [idleLoopedAnimations](./server.playerentitycontroller.idleloopedanimations.md)
152
+
153
+
154
+ </td><td>
155
+
156
+
157
+ </td><td>
158
+
159
+ string\[\]
160
+
161
+
162
+ </td><td>
163
+
164
+ The looped animation(s) that will play when the entity is idle.
165
+
166
+
167
+ </td></tr>
168
+ <tr><td>
169
+
170
+ [interactOneshotAnimations](./server.playerentitycontroller.interactoneshotanimations.md)
171
+
172
+
173
+ </td><td>
174
+
175
+
176
+ </td><td>
177
+
178
+ string\[\]
179
+
180
+
181
+ </td><td>
182
+
183
+ The oneshot animation(s) that will play when the entity interacts (left click)
184
+
185
+
148
186
  </td></tr>
149
187
  <tr><td>
150
188
 
@@ -187,6 +225,25 @@ boolean
187
225
  Whether the entity is on a platform, a platform is any entity with a kinematic rigid body.
188
226
 
189
227
 
228
+ </td></tr>
229
+ <tr><td>
230
+
231
+ [jumpOneshotAnimations](./server.playerentitycontroller.jumponeshotanimations.md)
232
+
233
+
234
+ </td><td>
235
+
236
+
237
+ </td><td>
238
+
239
+ string\[\]
240
+
241
+
242
+ </td><td>
243
+
244
+ The oneshot animation(s) that will play when the entity is jumping.
245
+
246
+
190
247
  </td></tr>
191
248
  <tr><td>
192
249
 
@@ -227,6 +284,25 @@ The upward velocity applied to the entity when it jumps.
227
284
  The platform the entity is on, if any.
228
285
 
229
286
 
287
+ </td></tr>
288
+ <tr><td>
289
+
290
+ [runLoopedAnimations](./server.playerentitycontroller.runloopedanimations.md)
291
+
292
+
293
+ </td><td>
294
+
295
+
296
+ </td><td>
297
+
298
+ string\[\]
299
+
300
+
301
+ </td><td>
302
+
303
+ The looped animation(s) that will play when the entity is running.
304
+
305
+
230
306
  </td></tr>
231
307
  <tr><td>
232
308
 
@@ -265,6 +341,25 @@ boolean
265
341
  Whether the entity sticks to platforms.
266
342
 
267
343
 
344
+ </td></tr>
345
+ <tr><td>
346
+
347
+ [walkLoopedAnimations](./server.playerentitycontroller.walkloopedanimations.md)
348
+
349
+
350
+ </td><td>
351
+
352
+
353
+ </td><td>
354
+
355
+ string\[\]
356
+
357
+
358
+ </td><td>
359
+
360
+ The looped animation(s) that will play when the entity is walking.
361
+
362
+
268
363
  </td></tr>
269
364
  <tr><td>
270
365
 
@@ -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; [PlayerEntityController](./server.playerentitycontroller.md) &gt; [runLoopedAnimations](./server.playerentitycontroller.runloopedanimations.md)
4
+
5
+ ## PlayerEntityController.runLoopedAnimations property
6
+
7
+ The looped animation(s) that will play when the entity is running.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ runLoopedAnimations: 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; [PlayerEntityController](./server.playerentitycontroller.md) &gt; [walkLoopedAnimations](./server.playerentitycontroller.walkloopedanimations.md)
4
+
5
+ ## PlayerEntityController.walkLoopedAnimations property
6
+
7
+ The looped animation(s) that will play when the entity is walking.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ walkLoopedAnimations: 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; [PlayerEntityControllerOptions](./server.playerentitycontrolleroptions.md) &gt; [idleLoopedAnimations](./server.playerentitycontrolleroptions.idleloopedanimations.md)
4
+
5
+ ## PlayerEntityControllerOptions.idleLoopedAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity is idle.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ idleLoopedAnimations?: 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; [PlayerEntityControllerOptions](./server.playerentitycontrolleroptions.md) &gt; [interactOneshotAnimations](./server.playerentitycontrolleroptions.interactoneshotanimations.md)
4
+
5
+ ## PlayerEntityControllerOptions.interactOneshotAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity interacts (left click)
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ interactOneshotAnimations?: 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; [PlayerEntityControllerOptions](./server.playerentitycontrolleroptions.md) &gt; [jumpOneshotAnimations](./server.playerentitycontrolleroptions.jumponeshotanimations.md)
4
+
5
+ ## PlayerEntityControllerOptions.jumpOneshotAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity is jumping.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ jumpOneshotAnimations?: string[];
13
+ ```
@@ -91,6 +91,63 @@ _(Optional)_ A function allowing custom logic to determine if the entity can run
91
91
  _(Optional)_ A function allowing custom logic to determine if the entity can walk.
92
92
 
93
93
 
94
+ </td></tr>
95
+ <tr><td>
96
+
97
+ [idleLoopedAnimations?](./server.playerentitycontrolleroptions.idleloopedanimations.md)
98
+
99
+
100
+ </td><td>
101
+
102
+
103
+ </td><td>
104
+
105
+ string\[\]
106
+
107
+
108
+ </td><td>
109
+
110
+ _(Optional)_ Overrides the animation(s) that will play when the entity is idle.
111
+
112
+
113
+ </td></tr>
114
+ <tr><td>
115
+
116
+ [interactOneshotAnimations?](./server.playerentitycontrolleroptions.interactoneshotanimations.md)
117
+
118
+
119
+ </td><td>
120
+
121
+
122
+ </td><td>
123
+
124
+ string\[\]
125
+
126
+
127
+ </td><td>
128
+
129
+ _(Optional)_ Overrides the animation(s) that will play when the entity interacts (left click)
130
+
131
+
132
+ </td></tr>
133
+ <tr><td>
134
+
135
+ [jumpOneshotAnimations?](./server.playerentitycontrolleroptions.jumponeshotanimations.md)
136
+
137
+
138
+ </td><td>
139
+
140
+
141
+ </td><td>
142
+
143
+ string\[\]
144
+
145
+
146
+ </td><td>
147
+
148
+ _(Optional)_ Overrides the animation(s) that will play when the entity is jumping.
149
+
150
+
94
151
  </td></tr>
95
152
  <tr><td>
96
153
 
@@ -110,6 +167,25 @@ number
110
167
  _(Optional)_ The upward velocity applied to the entity when it jumps.
111
168
 
112
169
 
170
+ </td></tr>
171
+ <tr><td>
172
+
173
+ [runLoopedAnimations?](./server.playerentitycontrolleroptions.runloopedanimations.md)
174
+
175
+
176
+ </td><td>
177
+
178
+
179
+ </td><td>
180
+
181
+ string\[\]
182
+
183
+
184
+ </td><td>
185
+
186
+ _(Optional)_ Overrides the animation(s) that will play when the entity is running.
187
+
188
+
113
189
  </td></tr>
114
190
  <tr><td>
115
191
 
@@ -148,6 +224,25 @@ boolean
148
224
  _(Optional)_ Whether the entity sticks to platforms, defaults to true.
149
225
 
150
226
 
227
+ </td></tr>
228
+ <tr><td>
229
+
230
+ [walkLoopedAnimations?](./server.playerentitycontrolleroptions.walkloopedanimations.md)
231
+
232
+
233
+ </td><td>
234
+
235
+
236
+ </td><td>
237
+
238
+ string\[\]
239
+
240
+
241
+ </td><td>
242
+
243
+ _(Optional)_ Overrides the animation(s) that will play when the entity is walking.
244
+
245
+
151
246
  </td></tr>
152
247
  <tr><td>
153
248
 
@@ -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; [PlayerEntityControllerOptions](./server.playerentitycontrolleroptions.md) &gt; [runLoopedAnimations](./server.playerentitycontrolleroptions.runloopedanimations.md)
4
+
5
+ ## PlayerEntityControllerOptions.runLoopedAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity is running.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ runLoopedAnimations?: 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; [PlayerEntityControllerOptions](./server.playerentitycontrolleroptions.md) &gt; [walkLoopedAnimations](./server.playerentitycontrolleroptions.walkloopedanimations.md)
4
+
5
+ ## PlayerEntityControllerOptions.walkLoopedAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity is walking.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ walkLoopedAnimations?: string[];
13
+ ```
@@ -13490,279 +13490,5 @@
13490
13490
  "8,0,-38": 16,
13491
13491
  "7,0,-38": 16,
13492
13492
  "-15,0,-40": 16
13493
- },
13494
- "entities": {
13495
- "6.049575363140304,1.484375,20.692585373932683": {
13496
- "modelUri": "models/environment/metalshelf.gltf",
13497
- "modelLoopedAnimations": [
13498
- "idle"
13499
- ],
13500
- "modelScale": 1,
13501
- "name": "metalshelf",
13502
- "rigidBodyOptions": {
13503
- "type": "kinematic_velocity",
13504
- "rotation": {
13505
- "x": 0,
13506
- "y": 0,
13507
- "z": 0,
13508
- "w": 1
13509
- }
13510
- }
13511
- },
13512
- "22.001386226559035,1.484375,-0.7556806311337283": {
13513
- "modelUri": "models/environment/metalshelf.gltf",
13514
- "modelLoopedAnimations": [
13515
- "idle"
13516
- ],
13517
- "modelScale": 1,
13518
- "name": "metalshelf",
13519
- "rigidBodyOptions": {
13520
- "type": "kinematic_velocity",
13521
- "rotation": {
13522
- "x": 0,
13523
- "y": 0,
13524
- "z": 0,
13525
- "w": 1
13526
- }
13527
- }
13528
- },
13529
- "10.143642728407988,2.484375,-4.44396634516584": {
13530
- "modelUri": "models/environment/metalshelf.gltf",
13531
- "modelLoopedAnimations": [
13532
- "idle"
13533
- ],
13534
- "modelScale": 1,
13535
- "name": "metalshelf",
13536
- "rigidBodyOptions": {
13537
- "type": "kinematic_velocity",
13538
- "rotation": {
13539
- "x": 0,
13540
- "y": 0,
13541
- "z": 0,
13542
- "w": 1
13543
- }
13544
- }
13545
- },
13546
- "-20.000366263724906,1.484375,2.008105243447427": {
13547
- "modelUri": "models/environment/metalshelf.gltf",
13548
- "modelLoopedAnimations": [
13549
- "idle"
13550
- ],
13551
- "modelScale": 1,
13552
- "name": "metalshelf",
13553
- "rigidBodyOptions": {
13554
- "type": "kinematic_velocity",
13555
- "rotation": {
13556
- "x": 0,
13557
- "y": 0,
13558
- "z": 0,
13559
- "w": 1
13560
- }
13561
- }
13562
- },
13563
- "-21.002042573409295,1.484375,-23.993752693772755": {
13564
- "modelUri": "models/environment/metalshelf.gltf",
13565
- "modelLoopedAnimations": [
13566
- "idle"
13567
- ],
13568
- "modelScale": 1,
13569
- "name": "metalshelf",
13570
- "rigidBodyOptions": {
13571
- "type": "kinematic_velocity",
13572
- "rotation": {
13573
- "x": 0,
13574
- "y": 0,
13575
- "z": 0,
13576
- "w": 1
13577
- }
13578
- }
13579
- },
13580
- "8.062011746518753,1.484375,-25.004341163138463": {
13581
- "modelUri": "models/environment/metalshelf.gltf",
13582
- "modelLoopedAnimations": [
13583
- "idle"
13584
- ],
13585
- "modelScale": 1,
13586
- "name": "metalshelf",
13587
- "rigidBodyOptions": {
13588
- "type": "kinematic_velocity",
13589
- "rotation": {
13590
- "x": 0,
13591
- "y": 0,
13592
- "z": 0,
13593
- "w": 1
13594
- }
13595
- }
13596
- },
13597
- "23.000069526339963,1.484375,-14.002161808026116": {
13598
- "modelUri": "models/environment/metalshelf.gltf",
13599
- "modelLoopedAnimations": [
13600
- "idle"
13601
- ],
13602
- "modelScale": 1,
13603
- "name": "metalshelf",
13604
- "rigidBodyOptions": {
13605
- "type": "kinematic_velocity",
13606
- "rotation": {
13607
- "x": 0,
13608
- "y": 0,
13609
- "z": 0,
13610
- "w": 1
13611
- }
13612
- }
13613
- },
13614
- "-1.1611708338533058,1.8703241555417025,20.627414439645086": {
13615
- "modelUri": "models/environment/binoculars.gltf",
13616
- "modelLoopedAnimations": [
13617
- "idle"
13618
- ],
13619
- "modelScale": 1,
13620
- "name": "binoculars",
13621
- "rigidBodyOptions": {
13622
- "type": "kinematic_velocity",
13623
- "rotation": {
13624
- "x": 0,
13625
- "y": 0,
13626
- "z": 0,
13627
- "w": 1
13628
- }
13629
- }
13630
- },
13631
- "30.233131965470534,1.8703241555417025,4.295022753807402": {
13632
- "modelUri": "models/environment/binoculars.gltf",
13633
- "modelLoopedAnimations": [
13634
- "idle"
13635
- ],
13636
- "modelScale": 1,
13637
- "name": "binoculars",
13638
- "rigidBodyOptions": {
13639
- "type": "kinematic_velocity",
13640
- "rotation": {
13641
- "x": 0,
13642
- "y": 0,
13643
- "z": 0,
13644
- "w": 1
13645
- }
13646
- }
13647
- },
13648
- "26.39450531059369,1.8703241555417025,-20.80468814400187": {
13649
- "modelUri": "models/environment/binoculars.gltf",
13650
- "modelLoopedAnimations": [
13651
- "idle"
13652
- ],
13653
- "modelScale": 1,
13654
- "name": "binoculars",
13655
- "rigidBodyOptions": {
13656
- "type": "kinematic_velocity",
13657
- "rotation": {
13658
- "x": 0,
13659
- "y": 0,
13660
- "z": 0,
13661
- "w": 1
13662
- }
13663
- }
13664
- },
13665
- "5.86662891982089,1.8703241555417025,-24.966206133275847": {
13666
- "modelUri": "models/environment/binoculars.gltf",
13667
- "modelLoopedAnimations": [
13668
- "idle"
13669
- ],
13670
- "modelScale": 1,
13671
- "name": "binoculars",
13672
- "rigidBodyOptions": {
13673
- "type": "kinematic_velocity",
13674
- "rotation": {
13675
- "x": 0,
13676
- "y": 0,
13677
- "z": 0,
13678
- "w": 1
13679
- }
13680
- }
13681
- },
13682
- "-25.0714662901892,1.504948289693489,6.938427771730327": {
13683
- "modelUri": "models/environment/weaponbox.gltf",
13684
- "modelLoopedAnimations": [
13685
- "idle"
13686
- ],
13687
- "modelScale": 1,
13688
- "name": "weaponbox",
13689
- "rigidBodyOptions": {
13690
- "type": "kinematic_velocity",
13691
- "rotation": {
13692
- "x": 0,
13693
- "y": 0,
13694
- "z": 0,
13695
- "w": 1
13696
- }
13697
- }
13698
- },
13699
- "-2.0690774839511743,2.504948289693489,-5.001862450956448": {
13700
- "modelUri": "models/environment/weaponbox.gltf",
13701
- "modelLoopedAnimations": [
13702
- "idle"
13703
- ],
13704
- "modelScale": 1,
13705
- "name": "weaponbox",
13706
- "rigidBodyOptions": {
13707
- "type": "kinematic_velocity",
13708
- "rotation": {
13709
- "x": 0,
13710
- "y": 0,
13711
- "z": 0,
13712
- "w": 1
13713
- }
13714
- }
13715
- },
13716
- "22.589385669695854,1.504948289693489,-24.991407794328424": {
13717
- "modelUri": "models/environment/weaponbox.gltf",
13718
- "modelLoopedAnimations": [
13719
- "idle"
13720
- ],
13721
- "modelScale": 1,
13722
- "name": "weaponbox",
13723
- "rigidBodyOptions": {
13724
- "type": "kinematic_velocity",
13725
- "rotation": {
13726
- "x": 0,
13727
- "y": 0,
13728
- "z": 0,
13729
- "w": 1
13730
- }
13731
- }
13732
- },
13733
- "0.008377839809139864,1.504948289693489,-30.00046413903133": {
13734
- "modelUri": "models/environment/weaponbox.gltf",
13735
- "modelLoopedAnimations": [
13736
- "idle"
13737
- ],
13738
- "modelScale": 1,
13739
- "name": "weaponbox",
13740
- "rigidBodyOptions": {
13741
- "type": "kinematic_velocity",
13742
- "rotation": {
13743
- "x": 0,
13744
- "y": 0,
13745
- "z": 0,
13746
- "w": 1
13747
- }
13748
- }
13749
- },
13750
- "-24.031158448598916,1.504948289693489,-18.038043551310867": {
13751
- "modelUri": "models/environment/weaponbox.gltf",
13752
- "modelLoopedAnimations": [
13753
- "idle"
13754
- ],
13755
- "modelScale": 1,
13756
- "name": "weaponbox",
13757
- "rigidBodyOptions": {
13758
- "type": "kinematic_velocity",
13759
- "rotation": {
13760
- "x": 0,
13761
- "y": 0,
13762
- "z": 0,
13763
- "w": 1
13764
- }
13765
- }
13766
- }
13767
13493
  }
13768
13494
  }