mirror of
https://github.com/luanti-org/luanti.git
synced 2026-01-01 02:45:19 +01:00
Move RemotePlayer code to its own cpp/header
This commit is contained in:
@@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
#include "serverobject.h"
|
||||
#include "itemgroup.h"
|
||||
#include "player.h"
|
||||
#include "object_properties.h"
|
||||
|
||||
/*
|
||||
@@ -157,6 +156,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class RemotePlayer;
|
||||
|
||||
class PlayerSAO : public ServerActiveObject
|
||||
{
|
||||
public:
|
||||
@@ -231,7 +232,7 @@ public:
|
||||
|
||||
void disconnected();
|
||||
|
||||
RemotePlayer* getPlayer() { return m_player; }
|
||||
RemotePlayer *getPlayer() { return m_player; }
|
||||
u16 getPeerID() const { return m_peer_id; }
|
||||
|
||||
// Cheat prevention
|
||||
|
||||
Reference in New Issue
Block a user