mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 15:33:34 +00:00
9655f0ee45
fix compile issues
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#ifndef IFRIENDS_H
|
|
#define IFRIENDS_H
|
|
|
|
#include <cstdint>
|
|
#include <optional>
|
|
#include <vector>
|
|
|
|
class IFriends {
|
|
public:
|
|
struct BestFriendStatus {
|
|
uint32_t playerCharacterId{};
|
|
uint32_t friendCharacterId{};
|
|
uint32_t bestFriendStatus{};
|
|
};
|
|
|
|
// Get the friends list for the given character id.
|
|
virtual std::vector<FriendData> GetFriendsList(const uint32_t charId) = 0;
|
|
|
|
// Get the best friend status for the given player and friend character ids.
|
|
virtual std::optional<IFriends::BestFriendStatus> GetBestFriendStatus(const uint32_t playerCharacterId, const uint32_t friendCharacterId) = 0;
|
|
|
|
// Set the best friend status for the given player and friend character ids.
|
|
virtual void SetBestFriendStatus(const uint32_t playerCharacterId, const uint32_t friendCharacterId, const uint32_t bestFriendStatus) = 0;
|
|
|
|
// Add a friend to the given character id.
|
|
virtual void AddFriend(const uint32_t playerCharacterId, const uint32_t friendCharacterId) = 0;
|
|
|
|
// Remove a friend from the given character id.
|
|
virtual void RemoveFriend(const uint32_t playerCharacterId, const uint32_t friendCharacterId) = 0;
|
|
};
|
|
|
|
#endif //!IFRIENDS_H
|