[Server] Use consistent pattern for script function category names

pull/183/merge
David Cernat 8 years ago
parent cea1425db1
commit 82dcec5ec5

@ -7,23 +7,23 @@
#include "../Types.hpp" #include "../Types.hpp"
#define CHARCLASSFUNCTIONS \ #define CHARCLASSAPI \
{"SetDefaultClass", CharClassFunctions::SetDefaultClass},\ {"SetDefaultClass", CharClassFunctions::SetDefaultClass},\
{"SetClassName", CharClassFunctions::SetClassName},\ {"SetClassName", CharClassFunctions::SetClassName},\
{"SetClassDesc", CharClassFunctions::SetClassDesc},\ {"SetClassDesc", CharClassFunctions::SetClassDesc},\
{"SetClassMajorAttribute", CharClassFunctions::SetClassMajorAttribute},\ {"SetClassMajorAttribute", CharClassFunctions::SetClassMajorAttribute},\
{"SetClassSpecialization", CharClassFunctions::SetClassSpecialization},\ {"SetClassSpecialization", CharClassFunctions::SetClassSpecialization},\
{"SetClassMajorSkill", CharClassFunctions::SetClassMajorSkill},\ {"SetClassMajorSkill", CharClassFunctions::SetClassMajorSkill},\
{"SetClassMinorSkill", CharClassFunctions::SetClassMinorSkill},\ {"SetClassMinorSkill", CharClassFunctions::SetClassMinorSkill},\
{"GetDefaultClass", CharClassFunctions::GetDefaultClass},\ {"GetDefaultClass", CharClassFunctions::GetDefaultClass},\
{"GetClassName", CharClassFunctions::GetClassName},\ {"GetClassName", CharClassFunctions::GetClassName},\
{"GetClassDesc", CharClassFunctions::GetClassDesc},\ {"GetClassDesc", CharClassFunctions::GetClassDesc},\
{"GetClassMajorAttribute", CharClassFunctions::GetClassMajorAttribute},\ {"GetClassMajorAttribute", CharClassFunctions::GetClassMajorAttribute},\
{"GetClassSpecialization", CharClassFunctions::GetClassSpecialization},\ {"GetClassSpecialization", CharClassFunctions::GetClassSpecialization},\
{"GetClassMajorSkill", CharClassFunctions::GetClassMajorSkill},\ {"GetClassMajorSkill", CharClassFunctions::GetClassMajorSkill},\
{"GetClassMinorSkill", CharClassFunctions::GetClassMinorSkill},\ {"GetClassMinorSkill", CharClassFunctions::GetClassMinorSkill},\
{"IsClassDefault", CharClassFunctions::IsClassDefault},\ {"IsClassDefault", CharClassFunctions::IsClassDefault},\
{"SendClass", CharClassFunctions::SendClass} {"SendClass", CharClassFunctions::SendClass}
class CharClassFunctions class CharClassFunctions

@ -5,7 +5,7 @@
#ifndef OPENMW_GUI_HPP #ifndef OPENMW_GUI_HPP
#define OPENMW_GUI_HPP #define OPENMW_GUI_HPP
#define GUIFUNCTIONS \ #define GUIAPI \
{"MessageBox", GUIFunctions::_MessageBox},\ {"MessageBox", GUIFunctions::_MessageBox},\
{"CustomMessageBox", GUIFunctions::CustomMessageBox},\ {"CustomMessageBox", GUIFunctions::CustomMessageBox},\
{"InputDialog", GUIFunctions::InputDialog},\ {"InputDialog", GUIFunctions::InputDialog},\

@ -5,7 +5,7 @@
#ifndef OPENMW_STATS_HPP #ifndef OPENMW_STATS_HPP
#define OPENMW_STATS_HPP #define OPENMW_STATS_HPP
#define STATSFUNCTIONS \ #define STATSAPI \
{"GetName", StatsFunctions::GetName},\ {"GetName", StatsFunctions::GetName},\
{"SetName", StatsFunctions::SetName},\ {"SetName", StatsFunctions::SetName},\
\ \

@ -1,7 +1,7 @@
#ifndef OPENMW_WORLD_HPP #ifndef OPENMW_WORLD_HPP
#define OPENMW_WORLD_HPP #define OPENMW_WORLD_HPP
#define WORLDFUNCTIONS \ #define WORLDAPI \
{"InitScriptEvent", WorldFunctions::InitScriptEvent},\ {"InitScriptEvent", WorldFunctions::InitScriptEvent},\
\ \
{"GetObjectChangesSize", WorldFunctions::GetObjectChangesSize},\ {"GetObjectChangesSize", WorldFunctions::GetObjectChangesSize},\

@ -94,13 +94,13 @@ public:
POSITIONAPI, POSITIONAPI,
CELLAPI, CELLAPI,
STATSFUNCTIONS, STATSAPI,
ITEMAPI, ITEMAPI,
QUESTAPI, QUESTAPI,
SPELLAPI, SPELLAPI,
GUIFUNCTIONS, GUIAPI,
CHARCLASSFUNCTIONS, CHARCLASSAPI,
WORLDFUNCTIONS, WORLDAPI,
MISCELLANEOUSAPI MISCELLANEOUSAPI
}; };

Loading…
Cancel
Save