mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
added dedicated server build without irrlicht
This commit is contained in:
24
src/player.h
24
src/player.h
@@ -109,6 +109,26 @@ protected:
|
||||
v3f m_position;
|
||||
};
|
||||
|
||||
class ServerRemotePlayer : public Player
|
||||
{
|
||||
public:
|
||||
ServerRemotePlayer()
|
||||
{
|
||||
}
|
||||
virtual ~ServerRemotePlayer()
|
||||
{
|
||||
}
|
||||
|
||||
bool isLocal() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#ifndef SERVER
|
||||
|
||||
class RemotePlayer : public Player, public scene::ISceneNode
|
||||
{
|
||||
public:
|
||||
@@ -165,6 +185,9 @@ private:
|
||||
core::aabbox3d<f32> m_box;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef SERVER
|
||||
struct PlayerControl
|
||||
{
|
||||
PlayerControl()
|
||||
@@ -225,6 +248,7 @@ public:
|
||||
|
||||
private:
|
||||
};
|
||||
#endif // !SERVER
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user