Skip to content

Commit 62cb6e8

Browse files
rename to GetObjectLODOfModel
1 parent d0419a3 commit 62cb6e8

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void CLuaObjectDefs::LoadFunctions()
4141
{"setObjectProperty", SetObjectProperty},
4242

4343
// Object util functions
44-
{"getObjectLODModel", ArgumentParser<GetObjectLODModel>},
44+
{"getObjectLODOfModel", ArgumentParser<GetObjectLODOfModel>},
4545
};
4646

4747
// Add functions
@@ -726,9 +726,9 @@ bool CLuaObjectDefs::IsObjectRespawnable(CClientEntity* const pEntity) noexcept
726726
return pObject->IsRespawnEnabled();
727727
}
728728

729-
std::variant<bool, std::uint32_t> CLuaObjectDefs::GetObjectLODModel(lua_State* const luaVM, std::uint32_t objectID)
729+
std::variant<bool, std::uint32_t> CLuaObjectDefs::GetObjectLODOfModel(lua_State* const luaVM, std::uint32_t objectID)
730730
{
731-
std::uint32_t lodModel = CLodModels::GetObjectLODModel(objectID);
731+
std::uint32_t lodModel = CLodModels::GetObjectLODOfModel(objectID);
732732
if (lodModel == 0) // LOD Model not found for Object Model provided
733733
return false;
734734
return lodModel;

Client/mods/deathmatch/logic/luadefs/CLuaObjectDefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ class CLuaObjectDefs : public CLuaDefs
4545
LUA_DECLARE(SetObjectProperty);
4646

4747
// Object util funcs
48-
static std::variant<bool, std::uint32_t> GetObjectLODModel(lua_State* const luaVM, std::uint32_t objectID);
48+
static std::variant<bool, std::uint32_t> GetObjectLODOfModel(lua_State* const luaVM, std::uint32_t objectID);
4949
};

Server/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void CLuaObjectDefs::LoadFunctions()
3939
{"toggleObjectRespawn", ArgumentParser<ToggleObjectRespawn>},
4040

4141
// Object util functions
42-
{"getObjectLODModel", ArgumentParser<GetObjectLODModel>},
42+
{"getObjectLODOfModel", ArgumentParser<GetObjectLODOfModel>},
4343
};
4444

4545
// Add functions
@@ -338,9 +338,9 @@ bool CLuaObjectDefs::IsObjectRespawnable(CObject* const pObject) noexcept
338338
return pObject->IsRespawnEnabled();
339339
}
340340

341-
std::variant<bool, std::uint32_t> CLuaObjectDefs::GetObjectLODModel(lua_State* const luaVM, std::uint32_t objectID)
341+
std::variant<bool, std::uint32_t> CLuaObjectDefs::GetObjectLODOfModel(lua_State* const luaVM, std::uint32_t objectID)
342342
{
343-
std::uint32_t lodModel = CLodModels::GetObjectLODModel(objectID);
343+
std::uint32_t lodModel = CLodModels::GetObjectLODOfModel(objectID);
344344
if (lodModel == 0) // LOD Model not found for Object Model provided
345345
return false;
346346
return lodModel;

Server/mods/deathmatch/logic/luadefs/CLuaObjectDefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ class CLuaObjectDefs : public CLuaDefs
4141
static bool ToggleObjectRespawn(CObject* const pObject, const bool bRespawn) noexcept;
4242

4343
// Object util funcs
44-
static std::variant<bool, std::uint32_t> GetObjectLODModel(lua_State* const luaVM, std::uint32_t objectID);
44+
static std::variant<bool, std::uint32_t> GetObjectLODOfModel(lua_State* const luaVM, std::uint32_t objectID);
4545
};

Shared/mods/deathmatch/logic/CLodModels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ std::unique_ptr<const std::map<std::uint32_t, std::uint32_t>> CLodModels::LOD_MO
493493
});
494494

495495

496-
std::uint32_t CLodModels::GetObjectLODModel(std::uint32_t objectID)
496+
std::uint32_t CLodModels::GetObjectLODOfModel(std::uint32_t objectID)
497497
{
498498
const auto it = LOD_MODELS->find(objectID);
499499
if (it != LOD_MODELS->end())

Shared/mods/deathmatch/logic/CLodModels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class CLodModels
1616
{
1717
public:
18-
static std::uint32_t GetObjectLODModel(std::uint32_t objectID);
18+
static std::uint32_t GetObjectLODOfModel(std::uint32_t objectID);
1919
static std::uint32_t GetObjectModelOfLOD(std::uint32_t lodModelID);
2020

2121
private:

0 commit comments

Comments
 (0)