Started working on engine nodes
This commit is contained in:
14
test/scripts/child_engine_node.toy
Normal file
14
test/scripts/child_engine_node.toy
Normal file
@@ -0,0 +1,14 @@
|
||||
var tally: int = 0;
|
||||
|
||||
fn onInit() {
|
||||
print "child init called";
|
||||
}
|
||||
|
||||
fn onStep() {
|
||||
print "child step called";
|
||||
print ++tally;
|
||||
}
|
||||
|
||||
fn onFree() {
|
||||
print "child free called";
|
||||
}
|
||||
11
test/scripts/parent_engine_node.toy
Normal file
11
test/scripts/parent_engine_node.toy
Normal file
@@ -0,0 +1,11 @@
|
||||
fn onInit() {
|
||||
print "init called";
|
||||
}
|
||||
|
||||
fn onStep() {
|
||||
print "step called";
|
||||
}
|
||||
|
||||
fn onFree() {
|
||||
print "free called";
|
||||
}
|
||||
Reference in New Issue
Block a user