diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-23 14:35:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-23 14:35:08 +0200 |
commit | 29ab20c27229672c24a7699afbcd54caad903331 (patch) | |
tree | e42e7ea35f54b1439055abc500191eb29baa6355 /src/content_sao.h | |
parent | dda171d2925e20efc00c78bcb45cf595fd986da9 (diff) | |
download | minetest-29ab20c27229672c24a7699afbcd54caad903331.tar.gz minetest-29ab20c27229672c24a7699afbcd54caad903331.tar.bz2 minetest-29ab20c27229672c24a7699afbcd54caad903331.zip |
Player data to Database (#5475)
* Player data to Database
Add player data into databases (SQLite3 & PG only)
PostgreSQL & SQLite: better POO Design for databases
Add --migrate-players argument to server + deprecation warning
* Remove players directory if empty
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index e53e8ecce..e08795579 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -194,7 +194,7 @@ class RemotePlayer; class PlayerSAO : public UnitSAO { public: - PlayerSAO(ServerEnvironment *env_, u16 peer_id_, bool is_singleplayer); + PlayerSAO(ServerEnvironment *env_, RemotePlayer *player_, u16 peer_id_, bool is_singleplayer); ~PlayerSAO(); ActiveObjectType getType() const { return ACTIVEOBJECT_TYPE_PLAYER; } @@ -349,7 +349,7 @@ public: bool getCollisionBox(aabb3f *toset) const; bool collideWithObjects() const { return true; } - void initialize(RemotePlayer *player, const std::set<std::string> &privs); + void finalize(RemotePlayer *player, const std::set<std::string> &privs); v3f getEyePosition() const { return m_base_position + getEyeOffset(); } v3f getEyeOffset() const; |