1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-08 11:47:45 +00:00
sapphire/src/world/Manager/BlacklistMgr.h

25 lines
591 B
C
Raw Normal View History

2021-12-13 22:36:29 -03:00
#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 );
};
}