hytopia 0.1.97 → 0.1.99
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.entity.height.md +13 -0
- package/docs/server.entity.md +22 -1
- package/docs/server.entity.opacity.md +1 -1
- package/docs/server.modelregistry.getheight.md +55 -0
- package/docs/server.modelregistry.md +14 -0
- package/examples/ai-agents/package.json +2 -2
- package/examples/big-world/package.json +2 -2
- package/examples/block-entity/package.json +2 -2
- package/examples/child-entity/package.json +2 -2
- package/examples/custom-ui/package.json +2 -2
- package/examples/entity-spawn/package.json +1 -1
- package/examples/hole-in-wall-game/package.json +2 -2
- package/examples/lighting/package.json +3 -2
- package/examples/pathfinding/index.ts +4 -4
- package/examples/pathfinding/package.json +2 -2
- package/examples/payload-game/index.ts +12 -10
- package/examples/payload-game/package.json +3 -2
- package/examples/wall-dodge-game/package.json +2 -2
- package/examples/zombies-fps/assets/audio/music/bg.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/pistol-reload.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/pistol-shoot.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/player-hurt.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/purchase.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/rifle-reload.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/rifle-shoot.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/ripper-idle.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/roulette.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/shotgun-reload.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/shotgun-shoot.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/wave-start.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/zombie-idle.mp3 +0 -0
- package/examples/zombies-fps/assets/icons/ak-47.png +0 -0
- package/examples/zombies-fps/assets/icons/ar-15.png +0 -0
- package/examples/zombies-fps/assets/icons/auto-pistol.png +0 -0
- package/examples/zombies-fps/assets/icons/auto-shotgun.png +0 -0
- package/examples/zombies-fps/assets/icons/heart.png +0 -0
- package/examples/zombies-fps/assets/icons/pistol.png +0 -0
- package/examples/zombies-fps/assets/icons/shotgun.png +0 -0
- package/examples/zombies-fps/assets/models/environment/bombbox.gltf +1 -0
- package/examples/zombies-fps/assets/models/environment/bullet-hole.gltf +1 -0
- package/examples/zombies-fps/assets/models/environment/healthkit.gltf +1 -0
- package/examples/zombies-fps/assets/models/environment/muzzle-flash.gltf +1 -0
- package/examples/zombies-fps/assets/models/items/ak-47.glb +0 -0
- package/examples/zombies-fps/assets/models/items/ar-15.glb +0 -0
- package/examples/zombies-fps/assets/models/items/auto-pistol.glb +0 -0
- package/examples/zombies-fps/assets/models/items/auto-shotgun.glb +0 -0
- package/examples/zombies-fps/assets/models/items/shotgun.glb +0 -0
- package/examples/zombies-fps/assets/models/npcs/ripper-boss.gltf +1 -0
- package/examples/zombies-fps/assets/models/players/soldier-player.gltf +1 -1
- package/examples/zombies-fps/assets/models/projectiles/bullet-trace.gltf +1 -0
- package/examples/zombies-fps/assets/ui/index.html +620 -27
- package/examples/zombies-fps/classes/EnemyEntity.ts +183 -4
- package/examples/zombies-fps/classes/GameManager.ts +165 -0
- package/examples/zombies-fps/classes/GamePlayerEntity.ts +263 -14
- package/examples/zombies-fps/classes/GunEntity.ts +225 -13
- package/examples/zombies-fps/classes/InteractableEntity.ts +9 -0
- package/examples/zombies-fps/classes/PurchaseBarrierEntity.ts +70 -17
- package/examples/zombies-fps/classes/WeaponCrateEntity.ts +173 -0
- package/examples/zombies-fps/classes/enemies/RipperEntity.ts +67 -0
- package/examples/zombies-fps/classes/enemies/ZombieEntity.ts +30 -0
- package/examples/zombies-fps/classes/guns/AK47Entity.ts +43 -0
- package/examples/zombies-fps/classes/guns/AR15Entity.ts +32 -0
- package/examples/zombies-fps/classes/guns/AutoPistolEntity.ts +36 -0
- package/examples/zombies-fps/classes/guns/AutoShotgunEntity.ts +37 -0
- package/examples/zombies-fps/classes/guns/PistolEntity.ts +23 -15
- package/examples/zombies-fps/classes/guns/ShotgunEntity.ts +92 -0
- package/examples/zombies-fps/gameConfig.ts +125 -21
- package/examples/zombies-fps/index.ts +14 -31
- package/examples/zombies-fps/package.json +2 -2
- package/package.json +1 -1
- package/server.api.json +79 -1
- package/server.d.ts +12 -1
- package/server.js +91 -89
- package/examples/zombies-fps/assets/audio/sfx/pistol-shoot-1.mp3 +0 -0
- package/examples/zombies-fps/assets/audio/sfx/pistol-shoot-2.mp3 +0 -0
- package/examples/zombies-fps/classes/guns/BulletEntity.ts +0 -0
package/server.api.json
CHANGED
@@ -9729,6 +9729,36 @@
|
|
9729
9729
|
"isAbstract": false,
|
9730
9730
|
"name": "despawn"
|
9731
9731
|
},
|
9732
|
+
{
|
9733
|
+
"kind": "Property",
|
9734
|
+
"canonicalReference": "server!Entity#height:member",
|
9735
|
+
"docComment": "/**\n * The height of the entity's model or block entity's y*2 half extents.\n */\n",
|
9736
|
+
"excerptTokens": [
|
9737
|
+
{
|
9738
|
+
"kind": "Content",
|
9739
|
+
"text": "get height(): "
|
9740
|
+
},
|
9741
|
+
{
|
9742
|
+
"kind": "Content",
|
9743
|
+
"text": "number"
|
9744
|
+
},
|
9745
|
+
{
|
9746
|
+
"kind": "Content",
|
9747
|
+
"text": ";"
|
9748
|
+
}
|
9749
|
+
],
|
9750
|
+
"isReadonly": true,
|
9751
|
+
"isOptional": false,
|
9752
|
+
"releaseTag": "Public",
|
9753
|
+
"name": "height",
|
9754
|
+
"propertyTypeTokenRange": {
|
9755
|
+
"startIndex": 1,
|
9756
|
+
"endIndex": 2
|
9757
|
+
},
|
9758
|
+
"isStatic": false,
|
9759
|
+
"isProtected": false,
|
9760
|
+
"isAbstract": false
|
9761
|
+
},
|
9732
9762
|
{
|
9733
9763
|
"kind": "Property",
|
9734
9764
|
"canonicalReference": "server!Entity#id:member",
|
@@ -10413,7 +10443,7 @@
|
|
10413
10443
|
},
|
10414
10444
|
{
|
10415
10445
|
"kind": "Content",
|
10416
|
-
"text": "number
|
10446
|
+
"text": "number"
|
10417
10447
|
},
|
10418
10448
|
{
|
10419
10449
|
"kind": "Content",
|
@@ -17182,6 +17212,54 @@
|
|
17182
17212
|
"isAbstract": false,
|
17183
17213
|
"name": "getBoundingBox"
|
17184
17214
|
},
|
17215
|
+
{
|
17216
|
+
"kind": "Method",
|
17217
|
+
"canonicalReference": "server!ModelRegistry#getHeight:member(1)",
|
17218
|
+
"docComment": "/**\n * Retrieves the Y-axis height of a model for a scale of 1.\n *\n * @param modelUri - The URI of the model to retrieve the height for.\n *\n * @returns The height of the model.\n */\n",
|
17219
|
+
"excerptTokens": [
|
17220
|
+
{
|
17221
|
+
"kind": "Content",
|
17222
|
+
"text": "getHeight(modelUri: "
|
17223
|
+
},
|
17224
|
+
{
|
17225
|
+
"kind": "Content",
|
17226
|
+
"text": "string"
|
17227
|
+
},
|
17228
|
+
{
|
17229
|
+
"kind": "Content",
|
17230
|
+
"text": "): "
|
17231
|
+
},
|
17232
|
+
{
|
17233
|
+
"kind": "Content",
|
17234
|
+
"text": "number"
|
17235
|
+
},
|
17236
|
+
{
|
17237
|
+
"kind": "Content",
|
17238
|
+
"text": ";"
|
17239
|
+
}
|
17240
|
+
],
|
17241
|
+
"isStatic": false,
|
17242
|
+
"returnTypeTokenRange": {
|
17243
|
+
"startIndex": 3,
|
17244
|
+
"endIndex": 4
|
17245
|
+
},
|
17246
|
+
"releaseTag": "Public",
|
17247
|
+
"isProtected": false,
|
17248
|
+
"overloadIndex": 1,
|
17249
|
+
"parameters": [
|
17250
|
+
{
|
17251
|
+
"parameterName": "modelUri",
|
17252
|
+
"parameterTypeTokenRange": {
|
17253
|
+
"startIndex": 1,
|
17254
|
+
"endIndex": 2
|
17255
|
+
},
|
17256
|
+
"isOptional": false
|
17257
|
+
}
|
17258
|
+
],
|
17259
|
+
"isOptional": false,
|
17260
|
+
"isAbstract": false,
|
17261
|
+
"name": "getHeight"
|
17262
|
+
},
|
17185
17263
|
{
|
17186
17264
|
"kind": "Method",
|
17187
17265
|
"canonicalReference": "server!ModelRegistry#getNodeNames:member(1)",
|
package/server.d.ts
CHANGED
@@ -1376,6 +1376,8 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
|
|
1376
1376
|
get blockTextureUri(): string | undefined;
|
1377
1377
|
/** The controller for the entity. */
|
1378
1378
|
get controller(): BaseEntityController | undefined;
|
1379
|
+
/** The height of the entity's model or block entity's y*2 half extents. */
|
1380
|
+
get height(): number;
|
1379
1381
|
/** The playback rate of the entity's model animations. */
|
1380
1382
|
get modelAnimationsPlaybackRate(): number;
|
1381
1383
|
/** The nodes to hide on the entity's model. */
|
@@ -1389,7 +1391,7 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
|
|
1389
1391
|
/** The name of the entity. */
|
1390
1392
|
get name(): string;
|
1391
1393
|
/** The opacity of the entity between 0 and 1. 0 is fully transparent, 1 is fully opaque. */
|
1392
|
-
get opacity(): number
|
1394
|
+
get opacity(): number;
|
1393
1395
|
/** The parent entity of the entity. */
|
1394
1396
|
get parent(): Entity | undefined;
|
1395
1397
|
/** The name of the parent's node (if parent is a model entity) this entity is attached to when spawned. */
|
@@ -2157,6 +2159,13 @@ export declare class ModelRegistry {
|
|
2157
2159
|
* @returns The bounding box of the model.
|
2158
2160
|
*/
|
2159
2161
|
getBoundingBox(modelUri: string): ModelBoundingBox;
|
2162
|
+
/**
|
2163
|
+
* Retrieves the Y-axis height of a model for a scale of 1.
|
2164
|
+
*
|
2165
|
+
* @param modelUri - The URI of the model to retrieve the height for.
|
2166
|
+
* @returns The height of the model.
|
2167
|
+
*/
|
2168
|
+
getHeight(modelUri: string): number;
|
2160
2169
|
/**
|
2161
2170
|
* Retrieves the names of all nodes in a model.
|
2162
2171
|
*
|
@@ -2288,6 +2297,8 @@ export declare class PathfindingEntityController extends SimpleEntityController
|
|
2288
2297
|
|
2289
2298
|
|
2290
2299
|
|
2300
|
+
|
2301
|
+
|
2291
2302
|
}
|
2292
2303
|
|
2293
2304
|
/**
|