mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Began working on runner library
This commit is contained in:
16
test/scripts/lib/runner.toy
Normal file
16
test/scripts/lib/runner.toy
Normal file
@@ -0,0 +1,16 @@
|
||||
import runner;
|
||||
|
||||
//test basic loading and freeing of code
|
||||
{
|
||||
var s = loadScript("scripts:/runner_sample_code.toy");
|
||||
|
||||
s.freeScript();
|
||||
}
|
||||
|
||||
//TODO: test running an external script
|
||||
//TODO: test resetting an external script
|
||||
//TODO: test retrieving a script variable
|
||||
//TODO: test calling a script function
|
||||
|
||||
|
||||
print "All good";
|
||||
Reference in New Issue
Block a user