mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-30 15:32:17 +00:00
Change rules to use cat in the actual underlying variables and by extension lua exports
This commit is contained in:
1 parent
a00ab6867c
commit
02518cdae1
3 files changed
+151
-151
No files matched your search
@@ -3520,17 +3520,17 @@ luabind::scope lua_register_rules_const() {
|
||||
.enum_("constants")
|
||||
[
|
||||
#define RULE_INT(cat, rule, default_value, notes) \
|
||||
luabind::value(#rule, RuleManager::Int__##rule),
|
||||
luabind::value(#cat #rule, RuleManager::Int__##cat__##rule),
|
||||
#include "../common/ruletypes.h"
|
||||
luabind::value("_IntRuleCount", RuleManager::_IntRuleCount),
|
||||
#undef RULE_INT
|
||||
#define RULE_REAL(cat, rule, default_value, notes) \
|
||||
luabind::value(#rule, RuleManager::Real__##rule),
|
||||
luabind::value(#rule, RuleManager::Real__##cat__##rule),
|
||||
#include "../common/ruletypes.h"
|
||||
luabind::value("_RealRuleCount", RuleManager::_RealRuleCount),
|
||||
#undef RULE_REAL
|
||||
#define RULE_BOOL(cat, rule, default_value, notes) \
|
||||
luabind::value(#rule, RuleManager::Bool__##rule),
|
||||
luabind::value(#rule, RuleManager::Bool__##cat__##rule),
|
||||
#include "../common/ruletypes.h"
|
||||
luabind::value("_BoolRuleCount", RuleManager::_BoolRuleCount)
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user