private SlotGuard
This commit is contained in:
@@ -8,7 +8,7 @@ namespace server {
|
||||
|
||||
class Server;
|
||||
|
||||
class IServerState : public utils::SlotGuard {
|
||||
class IServerState : private utils::SlotGuard {
|
||||
protected:
|
||||
void SendPacket(PlayerID a_Id, const protocol::PacketBase& a_Packet);
|
||||
void SetNewState(const std::shared_ptr<IServerState>& a_NewState);
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace utils {
|
||||
|
||||
/**
|
||||
* \brief Wrapper class to automatically disconnect from a Signal on object destruction
|
||||
* \note You should inherit this class privately
|
||||
* \sa Signal
|
||||
*/
|
||||
class SlotGuard {
|
||||
|
||||
@@ -18,7 +18,7 @@ class BasicRenderer {
|
||||
};
|
||||
|
||||
template <typename TShader>
|
||||
class Renderer : public BasicRenderer, public utils::SlotGuard {
|
||||
class Renderer : public BasicRenderer, private utils::SlotGuard {
|
||||
protected:
|
||||
std::unique_ptr<TShader> m_Shader;
|
||||
Camera& m_Camera;
|
||||
|
||||
Reference in New Issue
Block a user