TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldStatePackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef WorldStatePackets_h__
19 #define WorldStatePackets_h__
20 
21 #include "Packet.h"
22 
23 namespace WorldPackets
24 {
25  namespace WorldState
26  {
27  class InitWorldStates final : public ServerPacket
28  {
29  public:
31  {
33  : VariableID(variableID), Value(value) { }
34 
37  };
38 
40 
41  WorldPacket const* Write() override;
42 
43  uint32 AreaID = 0;
45  uint32 MapID = 0;
46 
47  std::list<WorldStateInfo> Worldstates;
48  };
49 
50  class UpdateWorldState final : public ServerPacket
51  {
52  public:
54 
55  WorldPacket const* Write() override;
56 
57  int32 Value = 0;
58  bool Hidden = false;
60  };
61  }
62 }
63 
64 #endif // WorldStatePackets_h__
InitWorldStates()
Definition: WorldStatePackets.cpp:20
uint32 VariableID
Definition: WorldStatePackets.h:59
Definition: WorldStatePackets.h:50
UpdateWorldState()
Definition: WorldStatePackets.cpp:41
std::list< WorldStateInfo > Worldstates
Definition: WorldStatePackets.h:47
uint32 VariableID
Definition: WorldStatePackets.h:35
int32 Value
Definition: WorldStatePackets.h:36
uint32 MapID
MapId.
Definition: WorldStatePackets.h:45
WorldStateInfo(uint32 variableID, int32 value)
Definition: WorldStatePackets.h:32
Definition: Packet.h:46
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: WorldStatePackets.h:27
Definition: BattlegroundMgr.h:57
uint32 SubareaID
AreaId.
Definition: WorldStatePackets.h:44
const FieldDescriptor value
Definition: descriptor.h:1522
bool Hidden
Definition: WorldStatePackets.h:58
WorldPacket const * Write() override
Definition: WorldStatePackets.cpp:23
uint32 AreaID
ZoneId.
Definition: WorldStatePackets.h:43
Definition: WorldPacket.h:26
WorldPacket const * Write() override
Definition: WorldStatePackets.cpp:44