Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LFGPlayerData.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SF_LFGPLAYERDATA_H
7#define SF_LFGPLAYERDATA_H
8
9#include "LFG.h"
10#include <map>
11
12namespace lfg
13{
15 {
17
18 bool IsSet;
20 float X;
21 float Y;
22 float Z;
23 float O;
24 };
25
37
38 typedef std::map<uint8, LfgPlayerQueueData> LfgPlayerQueueDataContainer;
39
44 {
45 public:
48
49 // General
50 void SetState(LfgState state);
51 void RestoreState();
52 void SetTeam(uint8 team);
53 void SetGroup(uint64 group);
54 void SetActiveQueueId(uint8 queueId);
55
56 // Queue
57 void SetRoles(uint8 roles);
58 void SetComment(std::string const& comment);
59 void SetSelectedDungeons(const LfgDungeonSet& dungeons);
60 void SetReturnLocation(uint32 mapId, float x, float y, float z, float o);
62
63 // General
64 LfgState GetState() const;
65 LfgState GetOldState() const;
66 uint8 GetTeam() const;
67 uint64 GetGroup() const;
68 uint8 GetActiveQueueId() const;
70
71 // Queue
72 uint8 GetRoles() const;
73 std::string const& GetComment() const;
76
77 private:
80
81 // General
84
85 // Queue
88 };
89
90} // namespace lfg
91
92#endif
std::uint8_t uint8
Definition Define.h:79
std::uint32_t uint32
Definition Define.h:77
std::uint64_t uint64
Definition Define.h:76
uint8 m_Team
Player team - determines the queue to join.
LfgReturnLocation const & GetReturnLocation() const
LfgPlayerQueueData & GetActiveQueueData()
uint8 m_ActiveQueueId
Active queue data owner.
LfgState GetOldState() const
LfgPlayerQueueDataContainer const & GetQueues() const
std::string const & GetComment() const
void SetState(LfgState state)
uint64 m_Group
Original group of player when joined LFG.
void SetSelectedDungeons(const LfgDungeonSet &dungeons)
void SetGroup(uint64 group)
void SetTeam(uint8 team)
uint8 GetTeam() const
void SetReturnLocation(uint32 mapId, float x, float y, float z, float o)
uint8 GetActiveQueueId() const
LfgPlayerQueueDataContainer m_Queues
Queue-scoped player data.
uint8 GetRoles() const
LfgState GetState() const
void SetRoles(uint8 roles)
uint64 GetGroup() const
void SetActiveQueueId(uint8 queueId)
void SetComment(std::string const &comment)
LfgDungeonSet const & GetSelectedDungeons() const
Definition LFG.cpp:11
LfgState
Definition LFG.h:61
std::set< uint32 > LfgDungeonSet
Definition LFG.h:107
std::map< uint8, LfgPlayerQueueData > LfgPlayerQueueDataContainer
LfgReturnLocation ReturnLocation
Player location before teleporting into LFG.
std::string Comment
Player comment used when joined LFG.
LfgState State
Current state in this queue.
LfgState OldState
Old state for rolecheck/proposal restore.
LfgDungeonSet SelectedDungeons
Selected dungeons when joined LFG.
uint8 Roles
Roles the player selected when joined LFG.