MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / createObject

Function createObject

src/modules/scripting-ui/hooks/LevelEditorLayer.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 $override
40 GameObject* createObject(int p0, cocos2d::CCPoint p1, bool p2) {
41 auto obj = LevelEditorLayer::createObject(p0, p1, p2);
42
43 auto type = classifyObjectId(p0);
44 if (type != ScriptObjectType::None) {
45 globed::postCreateObject(obj, type);
46 }
47
48 return obj;
49 }
50
51 $override
52 static void updateObjectLabel(GameObject* obj) {

Callers

nothing calls this directly

Calls 2

classifyObjectIdFunction · 0.85
postCreateObjectFunction · 0.85

Tested by

no test coverage detected