SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Shortcuts.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 // if this file is included stand-alone this will pull in common definitions
10 #include "MapEvents.h"
11 #include "NetCommandManager.h"
12 
13 class Shortcuts : public MapLinkEvent
14 {
15 public:
17  {
18  }
19  void serializeto(BitStream &bs) const
20  {
21  bs.StorePackedBits(1,4); // opcode
22  NetCommandManagerSingleton::instance()->SendCommandShortcuts(m_client,bs,m_commands2);
23  }
25  {
26  assert(!"TODO");
27  }
28  uint32_t m_num_shortcuts2;
29  //vector<NetCommand *> m_commands;
30  std::vector<NetCommand *> m_commands2; // m_commands2 will get filled after we know more about them
31  std::vector<std::string> m_shortcuts2;
33 };
Definition: MapClientSession.h:32
uint32_t m_num_shortcuts2
Definition: Shortcuts.h:28
Definition: BitStream.h:30
std::vector< NetCommand * > m_commands2
Definition: Shortcuts.h:30
void StorePackedBits(uint32_t nBits, uint32_t dataBits)
Definition: BitStream.cpp:161
MapClientSession * m_client
Definition: Shortcuts.h:32
Definition: Shortcuts.h:13
void serializeto(BitStream &bs) const
Definition: Shortcuts.h:19
void serializefrom(BitStream &)
Definition: Shortcuts.h:24
Shortcuts(MapClientSession *sess)
Definition: Shortcuts.h:16
std::vector< std::string > m_shortcuts2
Definition: Shortcuts.h:31
Definition: MapEventTypes.h:11