mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 07:57:12 +01:00
Implement rule violations, closes #218
This commit is contained in:
@@ -1156,6 +1156,27 @@ void Game::editList(uint id, int doorId, const std::string& text)
|
||||
m_protocolGame->sendEditList(id, doorId, text);
|
||||
}
|
||||
|
||||
void Game::openRuleViolation(const std::string& reporter)
|
||||
{
|
||||
if(!canPerformGameAction())
|
||||
return;
|
||||
m_protocolGame->sendOpenRuleViolation(reporter);
|
||||
}
|
||||
|
||||
void Game::closeRuleViolation(const std::string& reporter)
|
||||
{
|
||||
if(!canPerformGameAction())
|
||||
return;
|
||||
m_protocolGame->sendCloseRuleViolation(reporter);
|
||||
}
|
||||
|
||||
void Game::cancelRuleViolation()
|
||||
{
|
||||
if(!canPerformGameAction())
|
||||
return;
|
||||
m_protocolGame->sendCancelRuleViolation();
|
||||
}
|
||||
|
||||
void Game::reportBug(const std::string& comment)
|
||||
{
|
||||
if(!canPerformGameAction())
|
||||
|
||||
Reference in New Issue
Block a user