16 static constexpr char playerCategory[] =
"player";
17 static constexpr char objectType[] =
"player";
19 static std::shared_ptr<GameObject> createFromDump(
ObjectId id,
const std::string&
type );
20 static std::shared_ptr<Player> createFromTemplate(
const std::string& name,
21 const std::string& race );
23 Player(
const std::string& name,
24 const std::string& race,
25 const nlohmann::json& player_dataitems);
30 void setHomestead(
ObjectId homestead_id );
GameObject(const std::string &category, ObjectId id, const std::string &type)
Create a GameObject object.
Definition gameobject.cpp:38
const std::string & type() const
return the type (ship_xxx, station_xxx, planet_xxx...)
Definition gameobject.h:213
virtual void _finalizeUndump() final
Gives the object an opportunity to perform some cleanup/inizialization after the entire object has be...
Definition player.cpp:73
Definition socketdevice.h:11