Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarPlayer.hpp')
-rw-r--r--source/game/StarPlayer.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/game/StarPlayer.hpp b/source/game/StarPlayer.hpp
index 7bc0a73..99962cd 100644
--- a/source/game/StarPlayer.hpp
+++ b/source/game/StarPlayer.hpp
@@ -62,8 +62,10 @@ class Player :
public:
Player(PlayerConfigPtr config, Uuid uuid = Uuid());
- Player(PlayerConfigPtr config, Json const& diskStore);
Player(PlayerConfigPtr config, ByteArray const& netStore);
+ Player(PlayerConfigPtr config, Json const& diskStore);
+
+ void diskLoad(Json const& diskStore);
ClientContextPtr clientContext() const;
void setClientContext(ClientContextPtr clientContext);
@@ -79,6 +81,7 @@ public:
ByteArray netStore();
EntityType entityType() const override;
+ ClientEntityMode clientEntityMode() const override;
void init(World* world, EntityId entityId, EntityMode mode) override;
void uninit() override;
@@ -283,6 +286,7 @@ public:
ShipUpgrades shipUpgrades();
void setShipUpgrades(ShipUpgrades shipUpgrades);
+ void applyShipUpgrades(Json const& upgrades);
String name() const override;
void setName(String const& name);
@@ -395,6 +399,11 @@ public:
List<PhysicsForceRegion> forceRegions() const override;
+ StatusControllerPtr statusControllerPtr();
+ ActorMovementControllerPtr movementControllerPtr();
+
+ PlayerConfigPtr config();
+
SongbookPtr songbook() const;
void finalizeCreation();