mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-08 11:47:45 +00:00
25 lines
591 B
C
25 lines
591 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <memory>
|
||
|
#include <vector>
|
||
|
#include "ForwardsZone.h"
|
||
|
|
||
|
namespace Sapphire::World::Manager
|
||
|
{
|
||
|
class BlacklistMgr
|
||
|
{
|
||
|
public:
|
||
|
BlacklistMgr() = default;
|
||
|
|
||
|
bool onAddCharacter( Entity::Player& source, Entity::Player& target );
|
||
|
bool onRemoveCharacter( Entity::Player& source, Entity::Player& target );
|
||
|
|
||
|
bool onGetBlacklistPage( Entity::Player& source, uint8_t key, uint8_t nextIdx );
|
||
|
|
||
|
bool isBlacklisted( Entity::Player& source, Entity::Player& target );
|
||
|
|
||
|
private:
|
||
|
ptrdiff_t getEntryIndex( Entity::Player& source, uint64_t characterId );
|
||
|
};
|
||
|
}
|