MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / AssignObjectMeshSwap

Function AssignObjectMeshSwap

TombEngine/Objects/Utils/object_helper.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "Specific/level.h"
11
12void AssignObjectMeshSwap(ObjectInfo& object, int requiredMeshSwap, const std::string& baseName, const std::string& requiredName)
13{
14 if (Objects[requiredMeshSwap].loaded)
15 {
16 object.meshSwapSlot = requiredMeshSwap;
17 }
18 else
19 {
20 TENLog("Slot " + requiredName + " not loaded. Meshswap issues with " + baseName + " may result in incorrect behaviour.", LogLevel::Warning);
21 }
22}
23
24bool AssignObjectAnimations(ObjectInfo& object, int requiredObjectID, const std::string& baseName, const std::string& requiredName)
25{

Callers 1

StartEntityFunction · 0.85

Calls 1

TENLogFunction · 0.85

Tested by

no test coverage detected