MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / ReleaseResource

Method ReleaseResource

LuaSTGPlus/GameObjectPool.h:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 void ReleaseResource()
96 {
97 if (res)
98 {
99 if (res->GetType() == ResourceType::Particle)
100 {
101 LASSERT(ps);
102 static_cast<ResParticle*>(res)->FreeInstance(ps);
103 ps = nullptr;
104 }
105 res->Release();
106 res = nullptr;
107 }
108 }
109
110 bool ChangeResource(const char* res_name);
111 };

Callers 2

freeObjectMethod · 0.80
SetAttrMethod · 0.80

Calls 3

GetTypeMethod · 0.80
FreeInstanceMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected