]> git.lizzy.rs Git - minetest.git/blob - src/client.h
Cleanup various headers to reduce compilation times (#6255)
[minetest.git] / src / client.h
1 /*
2 Minetest
3 Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef CLIENT_HEADER
21 #define CLIENT_HEADER
22
23 #include "network/connection.h"
24 #include "clientenvironment.h"
25 #include "irrlichttypes_extrabloated.h"
26 #include <ostream>
27 #include <map>
28 #include <set>
29 #include <vector>
30 #include <unordered_set>
31 #include "clientobject.h"
32 #include "gamedef.h"
33 #include "inventorymanager.h"
34 #include "localplayer.h"
35 #include "hud.h"
36 #include "particles.h"
37 #include "mapnode.h"
38 #include "tileanimation.h"
39 #include "mesh_generator_thread.h"
40 #include <fstream>
41
42 #define CLIENT_CHAT_MESSAGE_LIMIT_PER_10S 10.0f
43
44 struct MeshMakeData;
45 struct ChatMessage;
46 class MapBlockMesh;
47 class IWritableTextureSource;
48 class IWritableShaderSource;
49 class IWritableItemDefManager;
50 class IWritableNodeDefManager;
51 //class IWritableCraftDefManager;
52 class ClientMediaDownloader;
53 struct MapDrawControl;
54 class MtEventManager;
55 struct PointedThing;
56 class MapDatabase;
57 class Minimap;
58 struct MinimapMapblock;
59 class Camera;
60 class NetworkPacket;
61
62 enum LocalClientState {
63         LC_Created,
64         LC_Init,
65         LC_Ready
66 };
67
68 enum ClientEventType
69 {
70         CE_NONE,
71         CE_PLAYER_DAMAGE,
72         CE_PLAYER_FORCE_MOVE,
73         CE_DEATHSCREEN,
74         CE_SHOW_FORMSPEC,
75         CE_SHOW_LOCAL_FORMSPEC,
76         CE_SPAWN_PARTICLE,
77         CE_ADD_PARTICLESPAWNER,
78         CE_DELETE_PARTICLESPAWNER,
79         CE_HUDADD,
80         CE_HUDRM,
81         CE_HUDCHANGE,
82         CE_SET_SKY,
83         CE_OVERRIDE_DAY_NIGHT_RATIO,
84         CE_CLOUD_PARAMS,
85 };
86
87 struct ClientEvent
88 {
89         ClientEventType type;
90         union{
91                 //struct{
92                 //} none;
93                 struct{
94                         u8 amount;
95                 } player_damage;
96                 struct{
97                         f32 pitch;
98                         f32 yaw;
99                 } player_force_move;
100                 struct{
101                         bool set_camera_point_target;
102                         f32 camera_point_target_x;
103                         f32 camera_point_target_y;
104                         f32 camera_point_target_z;
105                 } deathscreen;
106                 struct{
107                         std::string *formspec;
108                         std::string *formname;
109                 } show_formspec;
110                 //struct{
111                 //} textures_updated;
112                 struct{
113                         v3f *pos;
114                         v3f *vel;
115                         v3f *acc;
116                         f32 expirationtime;
117                         f32 size;
118                         bool collisiondetection;
119                         bool collision_removal;
120                         bool vertical;
121                         std::string *texture;
122                         struct TileAnimationParams animation;
123                         u8 glow;
124                 } spawn_particle;
125                 struct{
126                         u16 amount;
127                         f32 spawntime;
128                         v3f *minpos;
129                         v3f *maxpos;
130                         v3f *minvel;
131                         v3f *maxvel;
132                         v3f *minacc;
133                         v3f *maxacc;
134                         f32 minexptime;
135                         f32 maxexptime;
136                         f32 minsize;
137                         f32 maxsize;
138                         bool collisiondetection;
139                         bool collision_removal;
140                         u16 attached_id;
141                         bool vertical;
142                         std::string *texture;
143                         u32 id;
144                         struct TileAnimationParams animation;
145                         u8 glow;
146                 } add_particlespawner;
147                 struct{
148                         u32 id;
149                 } delete_particlespawner;
150                 struct{
151                         u32 id;
152                         u8 type;
153                         v2f *pos;
154                         std::string *name;
155                         v2f *scale;
156                         std::string *text;
157                         u32 number;
158                         u32 item;
159                         u32 dir;
160                         v2f *align;
161                         v2f *offset;
162                         v3f *world_pos;
163                         v2s32 * size;
164                 } hudadd;
165                 struct{
166                         u32 id;
167                 } hudrm;
168                 struct{
169                         u32 id;
170                         HudElementStat stat;
171                         v2f *v2fdata;
172                         std::string *sdata;
173                         u32 data;
174                         v3f *v3fdata;
175                         v2s32 * v2s32data;
176                 } hudchange;
177                 struct{
178                         video::SColor *bgcolor;
179                         std::string *type;
180                         std::vector<std::string> *params;
181                         bool clouds;
182                 } set_sky;
183                 struct{
184                         bool do_override;
185                         float ratio_f;
186                 } override_day_night_ratio;
187                 struct {
188                         f32 density;
189                         u32 color_bright;
190                         u32 color_ambient;
191                         f32 height;
192                         f32 thickness;
193                         f32 speed_x;
194                         f32 speed_y;
195                 } cloud_params;
196         };
197 };
198
199 /*
200         Packet counter
201 */
202
203 class PacketCounter
204 {
205 public:
206         PacketCounter() = default;
207
208         void add(u16 command)
209         {
210                 std::map<u16, u16>::iterator n = m_packets.find(command);
211                 if(n == m_packets.end())
212                 {
213                         m_packets[command] = 1;
214                 }
215                 else
216                 {
217                         n->second++;
218                 }
219         }
220
221         void clear()
222         {
223                 for (auto &m_packet : m_packets) {
224                         m_packet.second = 0;
225                 }
226         }
227
228         void print(std::ostream &o)
229         {
230                 for (const auto &m_packet : m_packets) {
231                         o << "cmd "<< m_packet.first <<" count "<< m_packet.second << std::endl;
232                 }
233         }
234
235 private:
236         // command, count
237         std::map<u16, u16> m_packets;
238 };
239
240 class ClientScripting;
241 struct GameUIFlags;
242
243 class Client : public con::PeerHandler, public InventoryManager, public IGameDef
244 {
245 public:
246         /*
247                 NOTE: Nothing is thread-safe here.
248         */
249
250         Client(
251                         const char *playername,
252                         const std::string &password,
253                         const std::string &address_name,
254                         MapDrawControl &control,
255                         IWritableTextureSource *tsrc,
256                         IWritableShaderSource *shsrc,
257                         IWritableItemDefManager *itemdef,
258                         IWritableNodeDefManager *nodedef,
259                         ISoundManager *sound,
260                         MtEventManager *event,
261                         bool ipv6,
262                         GameUIFlags *game_ui_flags
263         );
264
265         ~Client();
266         DISABLE_CLASS_COPY(Client);
267
268         // Load local mods into memory
269         void loadMods();
270         void scanModSubfolder(const std::string &mod_name, const std::string &mod_path,
271                                 std::string mod_subpath);
272         inline void scanModIntoMemory(const std::string &mod_name, const std::string &mod_path)
273         {
274                 scanModSubfolder(mod_name, mod_path, "");
275         }
276
277         // Initizle the mods
278         void initMods();
279
280         /*
281          request all threads managed by client to be stopped
282          */
283         void Stop();
284
285
286         bool isShutdown();
287
288         /*
289                 The name of the local player should already be set when
290                 calling this, as it is sent in the initialization.
291         */
292         void connect(Address address, bool is_local_server);
293
294         /*
295                 Stuff that references the environment is valid only as
296                 long as this is not called. (eg. Players)
297                 If this throws a PeerNotFoundException, the connection has
298                 timed out.
299         */
300         void step(float dtime);
301
302         /*
303          * Command Handlers
304          */
305
306         void handleCommand(NetworkPacket* pkt);
307
308         void handleCommand_Null(NetworkPacket* pkt) {};
309         void handleCommand_Deprecated(NetworkPacket* pkt);
310         void handleCommand_Hello(NetworkPacket* pkt);
311         void handleCommand_AuthAccept(NetworkPacket* pkt);
312         void handleCommand_AcceptSudoMode(NetworkPacket* pkt);
313         void handleCommand_DenySudoMode(NetworkPacket* pkt);
314         void handleCommand_InitLegacy(NetworkPacket* pkt);
315         void handleCommand_AccessDenied(NetworkPacket* pkt);
316         void handleCommand_RemoveNode(NetworkPacket* pkt);
317         void handleCommand_AddNode(NetworkPacket* pkt);
318         void handleCommand_BlockData(NetworkPacket* pkt);
319         void handleCommand_Inventory(NetworkPacket* pkt);
320         void handleCommand_TimeOfDay(NetworkPacket* pkt);
321         void handleCommand_ChatMessageOld(NetworkPacket *pkt);
322         void handleCommand_ChatMessage(NetworkPacket *pkt);
323         void handleCommand_ActiveObjectRemoveAdd(NetworkPacket* pkt);
324         void handleCommand_ActiveObjectMessages(NetworkPacket* pkt);
325         void handleCommand_Movement(NetworkPacket* pkt);
326         void handleCommand_HP(NetworkPacket* pkt);
327         void handleCommand_Breath(NetworkPacket* pkt);
328         void handleCommand_MovePlayer(NetworkPacket* pkt);
329         void handleCommand_DeathScreen(NetworkPacket* pkt);
330         void handleCommand_AnnounceMedia(NetworkPacket* pkt);
331         void handleCommand_Media(NetworkPacket* pkt);
332         void handleCommand_NodeDef(NetworkPacket* pkt);
333         void handleCommand_ItemDef(NetworkPacket* pkt);
334         void handleCommand_PlaySound(NetworkPacket* pkt);
335         void handleCommand_StopSound(NetworkPacket* pkt);
336         void handleCommand_FadeSound(NetworkPacket *pkt);
337         void handleCommand_Privileges(NetworkPacket* pkt);
338         void handleCommand_InventoryFormSpec(NetworkPacket* pkt);
339         void handleCommand_DetachedInventory(NetworkPacket* pkt);
340         void handleCommand_ShowFormSpec(NetworkPacket* pkt);
341         void handleCommand_SpawnParticle(NetworkPacket* pkt);
342         void handleCommand_AddParticleSpawner(NetworkPacket* pkt);
343         void handleCommand_DeleteParticleSpawner(NetworkPacket* pkt);
344         void handleCommand_HudAdd(NetworkPacket* pkt);
345         void handleCommand_HudRemove(NetworkPacket* pkt);
346         void handleCommand_HudChange(NetworkPacket* pkt);
347         void handleCommand_HudSetFlags(NetworkPacket* pkt);
348         void handleCommand_HudSetParam(NetworkPacket* pkt);
349         void handleCommand_HudSetSky(NetworkPacket* pkt);
350         void handleCommand_CloudParams(NetworkPacket* pkt);
351         void handleCommand_OverrideDayNightRatio(NetworkPacket* pkt);
352         void handleCommand_LocalPlayerAnimations(NetworkPacket* pkt);
353         void handleCommand_EyeOffset(NetworkPacket* pkt);
354         void handleCommand_UpdatePlayerList(NetworkPacket* pkt);
355         void handleCommand_SrpBytesSandB(NetworkPacket* pkt);
356         void handleCommand_CSMFlavourLimits(NetworkPacket *pkt);
357
358         void ProcessData(NetworkPacket *pkt);
359
360         void Send(NetworkPacket* pkt);
361
362         void interact(u8 action, const PointedThing& pointed);
363
364         void sendNodemetaFields(v3s16 p, const std::string &formname,
365                 const StringMap &fields);
366         void sendInventoryFields(const std::string &formname,
367                 const StringMap &fields);
368         void sendInventoryAction(InventoryAction *a);
369         void sendChatMessage(const std::wstring &message);
370         void clearOutChatQueue();
371         void sendChangePassword(const std::string &oldpassword,
372                 const std::string &newpassword);
373         void sendDamage(u8 damage);
374         void sendBreath(u16 breath);
375         void sendRespawn();
376         void sendReady();
377
378         ClientEnvironment& getEnv() { return m_env; }
379         ITextureSource *tsrc() { return getTextureSource(); }
380         ISoundManager *sound() { return getSoundManager(); }
381         static const std::string &getBuiltinLuaPath();
382         static const std::string &getClientModsLuaPath();
383
384         virtual const std::vector<ModSpec> &getMods() const;
385         virtual const ModSpec* getModSpec(const std::string &modname) const;
386
387         // Causes urgent mesh updates (unlike Map::add/removeNodeWithEvent)
388         void removeNode(v3s16 p);
389
390         /**
391          * Helper function for Client Side Modding
392          * Flavour is applied there, this should not be used for core engine
393          * @param p
394          * @param is_valid_position
395          * @return
396          */
397         MapNode getNode(v3s16 p, bool *is_valid_position);
398         void addNode(v3s16 p, MapNode n, bool remove_metadata = true);
399
400         void setPlayerControl(PlayerControl &control);
401
402         void selectPlayerItem(u16 item);
403         u16 getPlayerItem() const
404         { return m_playeritem; }
405
406         // Returns true if the inventory of the local player has been
407         // updated from the server. If it is true, it is set to false.
408         bool getLocalInventoryUpdated();
409         // Copies the inventory of the local player to parameter
410         void getLocalInventory(Inventory &dst);
411
412         /* InventoryManager interface */
413         Inventory* getInventory(const InventoryLocation &loc);
414         void inventoryAction(InventoryAction *a);
415
416         const std::list<std::string> &getConnectedPlayerNames()
417         {
418                 return m_env.getPlayerNames();
419         }
420
421         float getAnimationTime();
422
423         int getCrackLevel();
424         v3s16 getCrackPos();
425         void setCrack(int level, v3s16 pos);
426
427         u16 getHP();
428
429         bool checkPrivilege(const std::string &priv) const
430         { return (m_privileges.count(priv) != 0); }
431
432         const std::unordered_set<std::string> &getPrivilegeList() const
433         { return m_privileges; }
434
435         bool getChatMessage(std::wstring &message);
436         void typeChatMessage(const std::wstring& message);
437
438         u64 getMapSeed(){ return m_map_seed; }
439
440         void addUpdateMeshTask(v3s16 blockpos, bool ack_to_server=false, bool urgent=false);
441         // Including blocks at appropriate edges
442         void addUpdateMeshTaskWithEdge(v3s16 blockpos, bool ack_to_server=false, bool urgent=false);
443         void addUpdateMeshTaskForNode(v3s16 nodepos, bool ack_to_server=false, bool urgent=false);
444
445         void updateCameraOffset(v3s16 camera_offset)
446         { m_mesh_update_thread.m_camera_offset = camera_offset; }
447
448         bool hasClientEvents() const { return !m_client_event_queue.empty(); }
449         // Get event from queue. If queue is empty, it triggers an assertion failure.
450         ClientEvent getClientEvent();
451
452         bool accessDenied() const { return m_access_denied; }
453
454         bool reconnectRequested() const { return m_access_denied_reconnect; }
455
456         void setFatalError(const std::string &reason)
457         {
458                 m_access_denied = true;
459                 m_access_denied_reason = reason;
460         }
461
462         // Renaming accessDeniedReason to better name could be good as it's used to
463         // disconnect client when CSM failed.
464         const std::string &accessDeniedReason() const { return m_access_denied_reason; }
465
466         bool itemdefReceived()
467         { return m_itemdef_received; }
468         bool nodedefReceived()
469         { return m_nodedef_received; }
470         bool mediaReceived()
471         { return !m_media_downloader; }
472
473         u8 getProtoVersion()
474         { return m_proto_ver; }
475
476         bool connectedToServer()
477         { return m_con.Connected(); }
478
479         float mediaReceiveProgress();
480
481         void afterContentReceived();
482
483         float getRTT();
484         float getCurRate();
485
486         Minimap* getMinimap() { return m_minimap; }
487         void setCamera(Camera* camera) { m_camera = camera; }
488
489         Camera* getCamera () { return m_camera; }
490
491         bool shouldShowMinimap() const;
492
493         // IGameDef interface
494         virtual IItemDefManager* getItemDefManager();
495         virtual INodeDefManager* getNodeDefManager();
496         virtual ICraftDefManager* getCraftDefManager();
497         ITextureSource* getTextureSource();
498         virtual IShaderSource* getShaderSource();
499         IShaderSource *shsrc() { return getShaderSource(); }
500         virtual u16 allocateUnknownNodeId(const std::string &name);
501         virtual ISoundManager* getSoundManager();
502         virtual MtEventManager* getEventManager();
503         virtual ParticleManager* getParticleManager();
504         bool checkLocalPrivilege(const std::string &priv)
505         { return checkPrivilege(priv); }
506         virtual scene::IAnimatedMesh* getMesh(const std::string &filename);
507         const std::string* getModFile(const std::string &filename);
508
509         virtual std::string getModStoragePath() const;
510         virtual bool registerModStorage(ModMetadata *meta);
511         virtual void unregisterModStorage(const std::string &name);
512
513         // The following set of functions is used by ClientMediaDownloader
514         // Insert a media file appropriately into the appropriate manager
515         bool loadMedia(const std::string &data, const std::string &filename);
516         // Send a request for conventional media transfer
517         void request_media(const std::vector<std::string> &file_requests);
518
519         LocalClientState getState() { return m_state; }
520
521         void makeScreenshot();
522
523         inline void pushToChatQueue(ChatMessage *cec)
524         {
525                 m_chat_queue.push(cec);
526         }
527
528         ClientScripting *getScript() { return m_script; }
529         const bool moddingEnabled() const { return m_modding_enabled; }
530
531         inline void pushToEventQueue(const ClientEvent &event)
532         {
533                 m_client_event_queue.push(event);
534         }
535
536         void showGameChat(bool show = true);
537         void showGameHud(bool show = true);
538         void showMinimap(bool show = true);
539         void showProfiler(bool show = true);
540         void showGameFog(bool show = true);
541         void showGameDebug(bool show = true);
542
543         const Address getServerAddress()
544         {
545                 return m_con.GetPeerAddress(PEER_ID_SERVER);
546         }
547
548         const std::string &getAddressName() const
549         {
550                 return m_address_name;
551         }
552
553         inline bool checkCSMFlavourLimit(CSMFlavourLimit flag) const
554         {
555                 return m_csm_flavour_limits & flag;
556         }
557
558         u32 getCSMNodeRangeLimit() const
559         {
560                 return m_csm_noderange_limit;
561         }
562
563 private:
564
565         // Virtual methods from con::PeerHandler
566         void peerAdded(con::Peer *peer);
567         void deletingPeer(con::Peer *peer, bool timeout);
568
569         void initLocalMapSaving(const Address &address,
570                         const std::string &hostname,
571                         bool is_local_server);
572
573         void ReceiveAll();
574         void Receive();
575
576         void sendPlayerPos();
577         // Send the item number 'item' as player item to the server
578         void sendPlayerItem(u16 item);
579
580         void deleteAuthData();
581         // helper method shared with clientpackethandler
582         static AuthMechanism choseAuthMech(const u32 mechs);
583
584         void sendLegacyInit(const char* playerName, const char* playerPassword);
585         void sendInit(const std::string &playerName);
586         void startAuth(AuthMechanism chosen_auth_mechanism);
587         void sendDeletedBlocks(std::vector<v3s16> &blocks);
588         void sendGotBlocks(v3s16 block);
589         void sendRemovedSounds(std::vector<s32> &soundList);
590
591         // Helper function
592         inline std::string getPlayerName()
593         { return m_env.getLocalPlayer()->getName(); }
594
595         bool canSendChatMessage() const;
596
597         float m_packetcounter_timer = 0.0f;
598         float m_connection_reinit_timer = 0.1f;
599         float m_avg_rtt_timer = 0.0f;
600         float m_playerpos_send_timer = 0.0f;
601         float m_ignore_damage_timer = 0.0f; // Used after server moves player
602         IntervalLimiter m_map_timer_and_unload_interval;
603
604         IWritableTextureSource *m_tsrc;
605         IWritableShaderSource *m_shsrc;
606         IWritableItemDefManager *m_itemdef;
607         IWritableNodeDefManager *m_nodedef;
608         ISoundManager *m_sound;
609         MtEventManager *m_event;
610
611
612         MeshUpdateThread m_mesh_update_thread;
613         ClientEnvironment m_env;
614         ParticleManager m_particle_manager;
615         con::Connection m_con;
616         std::string m_address_name;
617         Camera *m_camera = nullptr;
618         Minimap *m_minimap = nullptr;
619         bool m_minimap_disabled_by_server = false;
620         // Server serialization version
621         u8 m_server_ser_ver;
622
623         // Used version of the protocol with server
624         // Values smaller than 25 only mean they are smaller than 25,
625         // and aren't accurate. We simply just don't know, because
626         // the server didn't send the version back then.
627         // If 0, server init hasn't been received yet.
628         u8 m_proto_ver = 0;
629
630         u16 m_playeritem = 0;
631         bool m_inventory_updated = false;
632         Inventory *m_inventory_from_server = nullptr;
633         float m_inventory_from_server_age = 0.0f;
634         PacketCounter m_packetcounter;
635         // Block mesh animation parameters
636         float m_animation_time = 0.0f;
637         int m_crack_level = -1;
638         v3s16 m_crack_pos;
639         // 0 <= m_daynight_i < DAYNIGHT_CACHE_COUNT
640         //s32 m_daynight_i;
641         //u32 m_daynight_ratio;
642         std::queue<std::wstring> m_out_chat_queue;
643         u32 m_last_chat_message_sent;
644         float m_chat_message_allowance = 5.0f;
645         std::queue<ChatMessage *> m_chat_queue;
646
647         // The authentication methods we can use to enter sudo mode (=change password)
648         u32 m_sudo_auth_methods;
649
650         // The seed returned by the server in TOCLIENT_INIT is stored here
651         u64 m_map_seed = 0;
652
653         // Auth data
654         std::string m_playername;
655         std::string m_password;
656         // If set, this will be sent (and cleared) upon a TOCLIENT_ACCEPT_SUDO_MODE
657         std::string m_new_password;
658         // Usable by auth mechanisms.
659         AuthMechanism m_chosen_auth_mech;
660         void *m_auth_data = nullptr;
661
662
663         bool m_access_denied = false;
664         bool m_access_denied_reconnect = false;
665         std::string m_access_denied_reason = "";
666         std::queue<ClientEvent> m_client_event_queue;
667         bool m_itemdef_received = false;
668         bool m_nodedef_received = false;
669         ClientMediaDownloader *m_media_downloader;
670
671         // time_of_day speed approximation for old protocol
672         bool m_time_of_day_set = false;
673         float m_last_time_of_day_f = -1.0f;
674         float m_time_of_day_update_timer = 0.0f;
675
676         // An interval for generally sending object positions and stuff
677         float m_recommended_send_interval = 0.1f;
678
679         // Sounds
680         float m_removed_sounds_check_timer = 0.0f;
681         // Mapping from server sound ids to our sound ids
682         std::unordered_map<s32, int> m_sounds_server_to_client;
683         // And the other way!
684         std::unordered_map<int, s32> m_sounds_client_to_server;
685         // And relations to objects
686         std::unordered_map<int, u16> m_sounds_to_objects;
687
688         // Privileges
689         std::unordered_set<std::string> m_privileges;
690
691         // Detached inventories
692         // key = name
693         std::unordered_map<std::string, Inventory*> m_detached_inventories;
694
695         // Storage for mesh data for creating multiple instances of the same mesh
696         StringMap m_mesh_data;
697
698         StringMap m_mod_files;
699
700         // own state
701         LocalClientState m_state;
702
703         // Used for saving server map to disk client-side
704         MapDatabase *m_localdb = nullptr;
705         IntervalLimiter m_localdb_save_interval;
706         u16 m_cache_save_interval;
707
708         ClientScripting *m_script = nullptr;
709         bool m_modding_enabled;
710         std::unordered_map<std::string, ModMetadata *> m_mod_storages;
711         float m_mod_storage_save_timer = 10.0f;
712         std::vector<ModSpec> m_mods;
713         GameUIFlags *m_game_ui_flags;
714
715         bool m_shutdown = false;
716
717         // CSM flavour limits byteflag
718         u64 m_csm_flavour_limits = CSMFlavourLimit::CSM_FL_NONE;
719         u32 m_csm_noderange_limit = 8;
720 };
721
722 #endif // !CLIENT_HEADER