MCPcopy Create free account
hub / github.com/defold/defold / GenerateUniqueScriptId

Function GenerateUniqueScriptId

engine/script/src/script.cpp:1174–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172 }
1173
1174 uint32_t GenerateUniqueScriptId()
1175 {
1176 static uint32_t counter = 0;
1177
1178 if (counter == INVALID_SCRIPT_ID - 1)
1179 {
1180 counter = 0;
1181 }
1182 else
1183 {
1184 ++counter;
1185 }
1186
1187 return counter;
1188 }
1189
1190 HScriptWorld NewScriptWorld(HContext context)
1191 {

Callers 6

NewScriptInstanceFunction · 0.85
TEST_FFunction · 0.85
CreateAndPushInstanceFunction · 0.85
CreateScriptInstanceFunction · 0.85
NewRenderScriptInstanceFunction · 0.85
SetSceneScriptFunction · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
CreateAndPushInstanceFunction · 0.68
CreateScriptInstanceFunction · 0.68