1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-03 17:27:47 +00:00
sapphire/src/world/Manager/FriendListMgr.h

28 lines
752 B
C
Raw Normal View History

#pragma once
#include <memory>
#include <vector>
#include "ForwardsZone.h"
namespace Sapphire::World::Manager
{
class FriendListMgr
{
public:
FriendListMgr() = default;
bool onInviteCreate( Entity::Player& source, Entity::Player& target );
bool onInviteAccept( Entity::Player& source, Entity::Player& target );
bool onInviteDecline( Entity::Player& source, Entity::Player& target );
bool onRemoveFriend( Entity::Player& source, Entity::Player& target );
bool onAssignGroup( Entity::Player& source, Entity::Player& target, uint8_t group );
bool isFriend( Entity::Player& source, Entity::Player& target ) const;
2021-12-13 22:36:29 -03:00
private:
ptrdiff_t getEntryIndex( Entity::Player& source, uint64_t characterId ) const;
};
}