hytopia 0.10.4-prerelease → 0.10.5

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.
@@ -30,7 +30,7 @@ import {
30
30
  PlayerEvent,
31
31
  } from 'hytopia';
32
32
 
33
- import worldMap from './assets/map.json' with { type: 'json' };
33
+ import worldMap from './assets/map.json';
34
34
 
35
35
  /**
36
36
  * startServer is always the entry point for our game.
package/docs/server.md CHANGED
@@ -1789,28 +1789,6 @@ Options for the [PathfindingEntityController.pathfind()](./server.pathfindingent
1789
1789
  The camera orientation state of a Player.
1790
1790
 
1791
1791
 
1792
- </td></tr>
1793
- <tr><td>
1794
-
1795
- [PlayerCosmetics](./server.playercosmetics.md)
1796
-
1797
-
1798
- </td><td>
1799
-
1800
- The cosmetics of a player.
1801
-
1802
-
1803
- </td></tr>
1804
- <tr><td>
1805
-
1806
- [PlayerCosmeticsEquippedItem](./server.playercosmeticsequippeditem.md)
1807
-
1808
-
1809
- </td><td>
1810
-
1811
- An equipped item of a player's cosmetics.
1812
-
1813
-
1814
1792
  </td></tr>
1815
1793
  <tr><td>
1816
1794
 
@@ -68,27 +68,6 @@ Description
68
68
  The camera for the player.
69
69
 
70
70
 
71
- </td></tr>
72
- <tr><td>
73
-
74
- [cosmetics](./server.player.cosmetics.md)
75
-
76
-
77
- </td><td>
78
-
79
- `readonly`
80
-
81
-
82
- </td><td>
83
-
84
- Promise&lt;[PlayerCosmetics](./server.playercosmetics.md) \| void&gt;
85
-
86
-
87
- </td><td>
88
-
89
- The cosmetics for the player
90
-
91
-
92
71
  </td></tr>
93
72
  <tr><td>
94
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.10.4-prerelease",
3
+ "version": "0.10.5",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
package/server.api.json CHANGED
@@ -35375,50 +35375,6 @@
35375
35375
  "isProtected": false,
35376
35376
  "isAbstract": false
35377
35377
  },
35378
- {
35379
- "kind": "Property",
35380
- "canonicalReference": "server!Player#cosmetics:member",
35381
- "docComment": "/**\n * The cosmetics for the player\n */\n",
35382
- "excerptTokens": [
35383
- {
35384
- "kind": "Content",
35385
- "text": "readonly cosmetics: "
35386
- },
35387
- {
35388
- "kind": "Reference",
35389
- "text": "Promise",
35390
- "canonicalReference": "!Promise:interface"
35391
- },
35392
- {
35393
- "kind": "Content",
35394
- "text": "<"
35395
- },
35396
- {
35397
- "kind": "Reference",
35398
- "text": "PlayerCosmetics",
35399
- "canonicalReference": "server!PlayerCosmetics:type"
35400
- },
35401
- {
35402
- "kind": "Content",
35403
- "text": " | void>"
35404
- },
35405
- {
35406
- "kind": "Content",
35407
- "text": ";"
35408
- }
35409
- ],
35410
- "isReadonly": true,
35411
- "isOptional": false,
35412
- "releaseTag": "Public",
35413
- "name": "cosmetics",
35414
- "propertyTypeTokenRange": {
35415
- "startIndex": 1,
35416
- "endIndex": 5
35417
- },
35418
- "isStatic": false,
35419
- "isProtected": false,
35420
- "isAbstract": false
35421
- },
35422
35378
  {
35423
35379
  "kind": "Method",
35424
35380
  "canonicalReference": "server!Player#disconnect:member(1)",
@@ -38403,67 +38359,6 @@
38403
38359
  "endIndex": 2
38404
38360
  }
38405
38361
  },
38406
- {
38407
- "kind": "TypeAlias",
38408
- "canonicalReference": "server!PlayerCosmetics:type",
38409
- "docComment": "/**\n * The cosmetics of a player.\n *\n * @public\n */\n",
38410
- "excerptTokens": [
38411
- {
38412
- "kind": "Content",
38413
- "text": "export type PlayerCosmetics = "
38414
- },
38415
- {
38416
- "kind": "Content",
38417
- "text": "{\n equippedItems: {\n slot: string;\n item: "
38418
- },
38419
- {
38420
- "kind": "Reference",
38421
- "text": "PlayerCosmeticsEquippedItem",
38422
- "canonicalReference": "server!PlayerCosmeticsEquippedItem:type"
38423
- },
38424
- {
38425
- "kind": "Content",
38426
- "text": ";\n }[];\n hairStyle: number;\n skinTextureUri: string;\n}"
38427
- },
38428
- {
38429
- "kind": "Content",
38430
- "text": ";"
38431
- }
38432
- ],
38433
- "fileUrlPath": "src/networking/PlatformGateway.ts",
38434
- "releaseTag": "Public",
38435
- "name": "PlayerCosmetics",
38436
- "typeTokenRange": {
38437
- "startIndex": 1,
38438
- "endIndex": 4
38439
- }
38440
- },
38441
- {
38442
- "kind": "TypeAlias",
38443
- "canonicalReference": "server!PlayerCosmeticsEquippedItem:type",
38444
- "docComment": "/**\n * An equipped item of a player's cosmetics.\n *\n * @public\n */\n",
38445
- "excerptTokens": [
38446
- {
38447
- "kind": "Content",
38448
- "text": "export type PlayerCosmeticsEquippedItem = "
38449
- },
38450
- {
38451
- "kind": "Content",
38452
- "text": "{\n flags: string[];\n type: string;\n modelUrl: string;\n textureUrl?: string;\n}"
38453
- },
38454
- {
38455
- "kind": "Content",
38456
- "text": ";"
38457
- }
38458
- ],
38459
- "fileUrlPath": "src/networking/PlatformGateway.ts",
38460
- "releaseTag": "Public",
38461
- "name": "PlayerCosmeticsEquippedItem",
38462
- "typeTokenRange": {
38463
- "startIndex": 1,
38464
- "endIndex": 2
38465
- }
38466
- },
38467
38362
  {
38468
38363
  "kind": "Class",
38469
38364
  "canonicalReference": "server!PlayerEntity:class",
package/server.d.ts CHANGED
@@ -1436,7 +1436,6 @@ export declare const DEFAULT_ENTITY_RIGID_BODY_OPTIONS: RigidBodyOptions;
1436
1436
  */
1437
1437
  export declare class DefaultPlayerEntity extends PlayerEntity {
1438
1438
  constructor(options: DefaultPlayerEntityOptions);
1439
-
1440
1439
  }
1441
1440
 
1442
1441
  /**
@@ -4369,8 +4368,6 @@ export declare class Player extends EventRouter implements protocol.Serializable
4369
4368
  /** The camera for the player. */
4370
4369
  readonly camera: PlayerCamera;
4371
4370
 
4372
- /** The cosmetics for the player */
4373
- readonly cosmetics: Promise<PlayerCosmetics | void>;
4374
4371
  /** The UI for the player. */
4375
4372
  readonly ui: PlayerUI;
4376
4373
 
@@ -4721,24 +4718,6 @@ export declare type PlayerCameraOrientation = {
4721
4718
  yaw: number;
4722
4719
  };
4723
4720
 
4724
- /** The cosmetics of a player. @public */
4725
- export declare type PlayerCosmetics = {
4726
- equippedItems: {
4727
- slot: string;
4728
- item: PlayerCosmeticsEquippedItem;
4729
- }[];
4730
- hairStyle: number;
4731
- skinTextureUri: string;
4732
- };
4733
-
4734
- /** An equipped item of a player's cosmetics. @public */
4735
- export declare type PlayerCosmeticsEquippedItem = {
4736
- flags: string[];
4737
- type: string;
4738
- modelUrl: string;
4739
- textureUrl?: string;
4740
- };
4741
-
4742
4721
  /**
4743
4722
  * Represents an entity controlled by a player in a world.
4744
4723
  *