Skip to content

Commit

Permalink
Fix naming convention of methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Nov 11, 2024
1 parent 496259d commit bf8e879
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion methods/CMangos/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace LuaCustom
{
// See the CustomMethods header file in the TC method directory for an example.
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
{

};
Expand Down
2 changes: 1 addition & 1 deletion methods/Mangos/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace LuaCustom
{
// See the CustomMethods header file in the TC method directory for an example.
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
{

};
Expand Down
4 changes: 2 additions & 2 deletions methods/Methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ void RegisterMethods(Eluna* E)

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

// Register custom functions
LuaCustom::RegisterCustomFunctions(E);
// Register custom methods
LuaCustom::RegisterCustomMethods(E);

LuaVal::Register(E->L);
}
2 changes: 1 addition & 1 deletion methods/TrinityCore/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace LuaCustom
{ "CustomPlayerMethod", &LuaCustom::CustomPlayerMethod },
};

inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
{
// Append all the custom Player methods to the Player object
ElunaTemplate<Player>::SetMethods(E, CustomPlayerMethods);
Expand Down
2 changes: 1 addition & 1 deletion methods/VMangos/CustomMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace LuaCustom
{
// See the CustomMethods header file in the TC method directory for an example.
inline void RegisterCustomFunctions([[maybe_unused]] Eluna* E)
inline void RegisterCustomMethods([[maybe_unused]] Eluna* E)
{

};
Expand Down

0 comments on commit bf8e879

Please sign in to comment.