@hytopia.com/examples 1.0.11 → 1.0.12
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"health": 100,
|
|
3
|
-
"currentRegionId": "stalkhaven
|
|
4
|
-
"currentRegionSpawnFacingAngle":
|
|
3
|
+
"currentRegionId": "stalkhaven",
|
|
4
|
+
"currentRegionSpawnFacingAngle": 90,
|
|
5
5
|
"currentRegionSpawnPoint": {
|
|
6
|
-
"x":
|
|
7
|
-
"y":
|
|
8
|
-
"z":
|
|
6
|
+
"x": 32,
|
|
7
|
+
"y": 2,
|
|
8
|
+
"z": 1
|
|
9
9
|
},
|
|
10
10
|
"skillExperience": [],
|
|
11
11
|
"backpack": {
|
|
@@ -186,8 +186,6 @@ export default class GamePlayerEntity extends DefaultPlayerEntity implements IDa
|
|
|
186
186
|
super.despawn();
|
|
187
187
|
// Disassociate entity from GamePlayer
|
|
188
188
|
this._gamePlayer.despawnFromRegion();
|
|
189
|
-
// Save player data
|
|
190
|
-
this._gamePlayer.save();
|
|
191
189
|
}
|
|
192
190
|
|
|
193
191
|
public takeDamage(damage: number): void {
|