Added Wren scripting with module system 📚

Added Input pressed, released system
Added interface button support with wren onclick callback
This commit is contained in:
Antoine Pilote
2021-06-09 22:15:53 -04:00
parent aa2ebd04c8
commit 19db72aa22
1185 changed files with 320199 additions and 486 deletions

View File

@@ -0,0 +1,15 @@
class Engine {
foreign static Log(msg)
}
class Vector3 {
construct new(x, y, z) {
_x = x
_y = y
_z = z
}
}
class Entity {
foreign GetComponent(type)
}

View File

@@ -0,0 +1,18 @@
import "Scripts/Engine" for Engine
class Test {
init() {
System.print("hello init")
}
update(t) {
System.print("hello update %(t)")
}
exit() {
System.print("hello exit ")
}
static hello() {
Engine.Log("Hello from foreign")
}
}