Skip to content

Commit bf8e879

Browse files
committed
Fix naming convention of methods
1 parent 496259d commit bf8e879

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

methods/CMangos/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace LuaCustom
1919
{
2020
// See the CustomMethods header file in the TC method directory for an example.
21-
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
21+
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
2222
{
2323

2424
};

methods/Mangos/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace LuaCustom
1919
{
2020
// See the CustomMethods header file in the TC method directory for an example.
21-
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
21+
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
2222
{
2323

2424
};

methods/Methods.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ void RegisterMethods(Eluna* E)
115115

116116
ElunaTemplate<ObjectGuid>::Register(E, "ObjectGuid");
117117

118-
// Register custom functions
119-
LuaCustom::RegisterCustomFunctions(E);
118+
// Register custom methods
119+
LuaCustom::RegisterCustomMethods(E);
120120

121121
LuaVal::Register(E->L);
122122
}

methods/TrinityCore/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace LuaCustom
3131
{ "CustomPlayerMethod", &LuaCustom::CustomPlayerMethod },
3232
};
3333

34-
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
34+
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
3535
{
3636
// Append all the custom Player methods to the Player object
3737
ElunaTemplate<Player>::SetMethods(E, CustomPlayerMethods);

methods/VMangos/CustomMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace LuaCustom
1919
{
2020
// See the CustomMethods header file in the TC method directory for an example.
21-
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
21+
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
2222
{
2323

2424
};

0 commit comments

Comments
 (0)