2021-12-01 21:30:12 -03:00
|
|
|
#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 );
|
|
|
|
|
2021-12-13 23:04:07 -03:00
|
|
|
bool isFriend( Entity::Player& source, Entity::Player& target ) const;
|
2021-12-13 22:36:29 -03:00
|
|
|
|
2021-12-01 21:30:12 -03:00
|
|
|
private:
|
2021-12-13 23:04:07 -03:00
|
|
|
ptrdiff_t getEntryIndex( Entity::Player& source, uint64_t characterId ) const;
|
2021-12-01 21:30:12 -03:00
|
|
|
};
|
|
|
|
}
|