MCPcopy Create free account
hub / github.com/HailToDodongo/pyrite64 / update

Method update

n64/engine/src/script/nodeGraph.cpp:53–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool P64::NodeGraph::Instance::update(float deltaTime) {
54 //debugf("Instance::update: %p\n", corot);
55 if(!corot)return false;
56
57 //auto t = get_ticks();
58 //disable_interrupts();
59 coro_resume(corot);
60 //enable_interrupts();
61 //t = get_ticks() - t;
62
63 if(coro_finished(corot))
64 {
65 coro_destroy(corot);
66 corot = nullptr;
67 if(repeatable)load(asset);
68 return false;
69 }
70 return true;
71}
72
73void P64::NodeGraph::registerFunction(uint32_t strCRC32, UserFunc fn)
74{

Callers

nothing calls this directly

Calls 1

loadFunction · 0.70

Tested by

no test coverage detected