mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 00:47:45 +00:00
74 lines
No EOL
1.7 KiB
C++
74 lines
No EOL
1.7 KiB
C++
#pragma once
|
|
|
|
#include <Common.h>
|
|
#include <set>
|
|
#include <string>
|
|
|
|
namespace Sapphire
|
|
{
|
|
|
|
class Linkshell
|
|
{
|
|
private:
|
|
/*! unique ID of the linkshell */
|
|
uint64_t m_linkshellId;
|
|
/*! ID of the master character */
|
|
uint64_t m_masterCharacterId;
|
|
/*! ID list of all linkshell members */
|
|
std::set< uint64_t > m_memberIds;
|
|
/*! Name of the linkshell */
|
|
std::string m_name;
|
|
/*! List of member IDs with leader rank */
|
|
std::set< uint64_t > m_leaderIds;
|
|
/*! list of IDs of pending character invites */
|
|
std::set< uint64_t > m_inviteIds;
|
|
/*! chat channel ID associated with linkshell */
|
|
uint64_t m_chatChannelId;
|
|
|
|
public:
|
|
Linkshell( uint64_t id,
|
|
std::string name,
|
|
uint64_t chatChannelId,
|
|
uint64_t masterId,
|
|
std::set< uint64_t > members,
|
|
std::set< uint64_t > leaders,
|
|
std::set< uint64_t > invites );
|
|
|
|
uint64_t getId() const;
|
|
|
|
const std::string& getName() const;
|
|
void setName( std::string name );
|
|
|
|
uint64_t getMasterId() const;
|
|
|
|
void setMasterId( uint64_t masterId );
|
|
|
|
const std::set< uint64_t >& getMemberIdList() const;
|
|
|
|
std::set< uint64_t >& getMemberIdList();
|
|
|
|
const std::set< uint64_t >& getLeaderIdList() const;
|
|
|
|
std::set< uint64_t >& getLeaderIdList();
|
|
|
|
const std::set< uint64_t >& getInviteIdList() const;
|
|
|
|
std::set< uint64_t >& getInviteIdList();
|
|
|
|
uint64_t getChatChannel() const;
|
|
|
|
void addMember( uint64_t memberId );
|
|
|
|
void removeMember( uint64_t memberId );
|
|
|
|
void addLeader( uint64_t memberId );
|
|
|
|
void removeLeader( uint64_t memberId );
|
|
|
|
void addInvite( uint64_t memberId );
|
|
|
|
void removeInvite( uint64_t memberId );
|
|
|
|
};
|
|
|
|
} |