Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / server_share / log_character_gen.h
blobbc839c26cdb8fb06c899fc624e5ad34619edbfd4
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _LOG_GEN_CHARACTER_H
20 #define _LOG_GEN_CHARACTER_H
22 #include "nel/misc/types_nl.h"
23 #include "nel/misc/entity_id.h"
24 #include "nel/misc/sheet_id.h"
25 #include "game_share/inventories.h"
28 struct TLogContext_Character_BuyRolemasterPhrase
30 /// The constructor push a log context in the logger system
31 TLogContext_Character_BuyRolemasterPhrase(const NLMISC::CEntityId &charId);
33 /// The desstructor pop a context in the logger system
34 ~TLogContext_Character_BuyRolemasterPhrase();
36 private:
37 /// The name of the context
38 static const std::string _ContextName;
43 struct TLogContext_Character_AdminCommand
45 /// The constructor push a log context in the logger system
46 TLogContext_Character_AdminCommand(const NLMISC::CEntityId &charId);
48 /// The desstructor pop a context in the logger system
49 ~TLogContext_Character_AdminCommand();
51 private:
52 /// The name of the context
53 static const std::string _ContextName;
58 struct TLogContext_Character_SkillProgress
60 /// The constructor push a log context in the logger system
61 TLogContext_Character_SkillProgress(const NLMISC::CEntityId &charId);
63 /// The desstructor pop a context in the logger system
64 ~TLogContext_Character_SkillProgress();
66 private:
67 /// The name of the context
68 static const std::string _ContextName;
73 struct TLogContext_Character_MissionRecvXp
75 /// The constructor push a log context in the logger system
76 TLogContext_Character_MissionRecvXp(const NLMISC::CEntityId &charId);
78 /// The desstructor pop a context in the logger system
79 ~TLogContext_Character_MissionRecvXp();
81 private:
82 /// The name of the context
83 static const std::string _ContextName;
89 /// No context context. Use this to disable any contextual log underneath
90 struct TLogNoContext_Character
92 TLogNoContext_Character();
93 ~TLogNoContext_Character();
98 void _log_Character_Create(uint32 userId, const NLMISC::CEntityId &charId, const std::string &charName, const char *_filename_, uint _lineNo_);
99 #define log_Character_Create(userId, charId, charName) \
100 _log_Character_Create(userId, charId, charName, __FILE__, __LINE__)
102 void _log_Character_Delete(uint32 userId, const NLMISC::CEntityId &charId, const std::string &charName, const char *_filename_, uint _lineNo_);
103 #define log_Character_Delete(userId, charId, charName) \
104 _log_Character_Delete(userId, charId, charName, __FILE__, __LINE__)
106 void _log_Character_Select(uint32 userId, const NLMISC::CEntityId &charId, const std::string &charName, const char *_filename_, uint _lineNo_);
107 #define log_Character_Select(userId, charId, charName) \
108 _log_Character_Select(userId, charId, charName, __FILE__, __LINE__)
110 void _log_Character_LevelUp(const NLMISC::CEntityId &charId, const std::string &skillName, uint32 level, const char *_filename_, uint _lineNo_);
111 #define log_Character_LevelUp(charId, skillName, level) \
112 _log_Character_LevelUp(charId, skillName, level, __FILE__, __LINE__)
114 void _log_Character_UpdateSP(const std::string &spName, float spBefore, float spAfter, const char *_filename_, uint _lineNo_);
115 #define log_Character_UpdateSP(spName, spBefore, spAfter) \
116 _log_Character_UpdateSP(spName, spBefore, spAfter, __FILE__, __LINE__)
118 void _log_Character_LearnPhrase(const NLMISC::CSheetId &phraseId, const char *_filename_, uint _lineNo_);
119 #define log_Character_LearnPhrase(phraseId) \
120 _log_Character_LearnPhrase(phraseId, __FILE__, __LINE__)
122 void _log_Character_AddKnownBrick(const NLMISC::CSheetId &brickId, const char *_filename_, uint _lineNo_);
123 #define log_Character_AddKnownBrick(brickId) \
124 _log_Character_AddKnownBrick(brickId, __FILE__, __LINE__)
126 void _log_Character_RemoveKnownBrick(const NLMISC::CSheetId &brickId, const char *_filename_, uint _lineNo_);
127 #define log_Character_RemoveKnownBrick(brickId) \
128 _log_Character_RemoveKnownBrick(brickId, __FILE__, __LINE__)
130 #endif