Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ChannelMgr.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_SKYFIRE_CHANNELMGR_H
7#define SF_SKYFIRE_CHANNELMGR_H
8
9#include "Channel.h"
10#include "Common.h"
11#include "Platform/Singleton.h"
12
13#include <map>
14#include <string>
15
16#include "World.h"
17
19{
20 typedef std::map<std::wstring, Channel*> ChannelMap;
21
22public:
24 { }
25
27
29 void setTeam(uint32 newTeam) { team = newTeam; }
30
31 Channel* GetJoinChannel(std::string const& name, uint32 channel_id);
32 Channel* GetChannel(std::string const& name, Player* p, bool pkt = true);
33 void LeftChannel(std::string const& name);
34
35private:
38
39 void MakeNotOnPacket(WorldPacket* data, std::string const& name);
40};
41
42class AllianceChannelMgr : public ChannelMgr { };
43class HordeChannelMgr : public ChannelMgr { };
44
45#endif
std::uint32_t uint32
Definition Define.h:77
void LeftChannel(std::string const &name)
std::map< std::wstring, Channel * > ChannelMap
Definition ChannelMgr.h:20
uint32 team
Definition ChannelMgr.h:37
static ChannelMgr * forTeam(uint32 team)
ChannelMap channels
Definition ChannelMgr.h:36
Channel * GetChannel(std::string const &name, Player *p, bool pkt=true)
Channel * GetJoinChannel(std::string const &name, uint32 channel_id)
void MakeNotOnPacket(WorldPacket *data, std::string const &name)
void setTeam(uint32 newTeam)
Definition ChannelMgr.h:29