mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 01:07:47 +00:00
27 lines
752 B
C++
27 lines
752 B
C++
#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;
|
|
|
|
private:
|
|
ptrdiff_t getEntryIndex( Entity::Player& source, uint64_t characterId ) const;
|
|
};
|
|
}
|