This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/backend/reactions/interloper_reaction.hpp
2024-06-02 17:37:02 +02:00

21 lines
636 B
C++

#pragma once
#include "reaction.hpp"
namespace big
{
class interloper_reaction : public reaction
{
public:
interloper_reaction(const char* event_name, const char* notify_message, const char* announce_message, bool blockable, bool karmaable);
bool block = true;
bool karma = false;
bool m_blockable;
bool m_karmaable;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(interloper_reaction, announce_in_chat, is_team_only, notify, log, add_to_player_db, block_joins, block_join_reason, kick, block, karma, timeout) // json doesn't serialize parent fields automatically
virtual void process(player_ptr attacker, player_ptr victim);
};
}