Add message callbacks to client admin functions.
This commit is contained in:
@@ -116,7 +116,7 @@ ServerDBGeneric::AsyncQueryAdminPlayers(unsigned /*requestId*/)
|
||||
}
|
||||
|
||||
void
|
||||
ServerDBGeneric::AsyncBlockPlayer(unsigned /*requestId*/, DB_id /*playerId*/, int /*valid*/, int /*active*/)
|
||||
ServerDBGeneric::AsyncBlockPlayer(unsigned /*requestId*/, unsigned /*replyId*/, DB_id /*playerId*/, int /*valid*/, int /*active*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,9 @@ public:
|
||||
virtual void ReportGameFailed(unsigned requestId, unsigned replyId) = 0;
|
||||
|
||||
virtual void PlayerAdminList(unsigned requestId, std::list<DB_id> adminList) = 0;
|
||||
|
||||
virtual void BlockPlayerSuccess(unsigned requestId, unsigned replyId) = 0;
|
||||
virtual void BlockPlayerFailed(unsigned requestId, unsigned replyId) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
virtual void AsyncReportGame(unsigned requestId, unsigned replyId, DB_id *creatorPlayerId, unsigned gameId, const std::string &gameName, DB_id *byPlayerId);
|
||||
|
||||
virtual void AsyncQueryAdminPlayers(unsigned requestId);
|
||||
virtual void AsyncBlockPlayer(unsigned requestId, DB_id playerId, int valid, int active);
|
||||
virtual void AsyncBlockPlayer(unsigned requestId, unsigned replyId, DB_id playerId, int valid, int active);
|
||||
|
||||
private:
|
||||
boost::shared_ptr<boost::asio::io_service> m_ioService;
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
virtual void AsyncReportGame(unsigned requestId, unsigned replyId, DB_id *creatorPlayerId, unsigned gameId, const std::string &gameName, DB_id *byPlayerId) = 0;
|
||||
|
||||
virtual void AsyncQueryAdminPlayers(unsigned requestId) = 0;
|
||||
virtual void AsyncBlockPlayer(unsigned requestId, DB_id playerId, int valid, int active) = 0;
|
||||
virtual void AsyncBlockPlayer(unsigned requestId, unsigned replyId, DB_id playerId, int valid, int active) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
virtual void AsyncReportGame(unsigned /*requestId*/, unsigned /*replyId*/, DB_id * /*creatorPlayerId*/, unsigned /*gameId*/, const std::string &/*gameName*/, DB_id * /*byPlayerId*/) {}
|
||||
|
||||
virtual void AsyncQueryAdminPlayers(unsigned /*requestId*/) {}
|
||||
virtual void AsyncBlockPlayer(unsigned /*requestId*/, DB_id /*playerId*/, int /*valid*/, int /*active*/) {}
|
||||
virtual void AsyncBlockPlayer(unsigned /*requestId*/, unsigned /*replyId*/, DB_id /*playerId*/, int /*valid*/, int /*active*/) {}
|
||||
};
|
||||
|
||||
#endif // _SERVERDBNOACTION_H_
|
||||
|
||||
Reference in New Issue
Block a user