More scanning work to unify data structures

This commit is contained in:
Akkadius
2019-12-29 02:01:48 -06:00
parent 9481e9eb2d
commit 6b465c576d
11 changed files with 57 additions and 35 deletions
+2
View File
@@ -111,6 +111,7 @@ namespace Logs {
AIYellForHelp,
AICastBeneficialClose,
AoeCast,
EntityManagement,
MaxCategoryID /* Don't Remove this */
};
@@ -181,6 +182,7 @@ namespace Logs {
"AI Yell For Help",
"AI Cast Beneficial Close",
"AOE Cast",
"Entity Management",
};
}
+10
View File
@@ -531,6 +531,16 @@
OutF(LogSys, Logs::Detail, Logs::AoeCast, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)
#define LogEntityManagement(message, ...) do {\
if (LogSys.log_settings[Logs::EntityManagement].is_category_enabled == 1)\
OutF(LogSys, Logs::General, Logs::EntityManagement, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)
#define LogEntityManagementDetail(message, ...) do {\
if (LogSys.log_settings[Logs::EntityManagement].is_category_enabled == 1)\
OutF(LogSys, Logs::Detail, Logs::EntityManagement, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)
#define Log(debug_level, log_category, message, ...) do {\
if (LogSys.log_settings[log_category].is_category_enabled == 1)\
LogSys.Out(debug_level, log_category, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\