mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Added Wren scene module ⛏
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import "Scripts/Engine" for Engine
|
||||
import "Scripts/Engine" for Engine, Scene, Entity
|
||||
class Test {
|
||||
init() {
|
||||
System.print("hello init")
|
||||
@@ -13,6 +13,10 @@ class Test {
|
||||
}
|
||||
|
||||
static hello() {
|
||||
Engine.Log("Hello from foreign")
|
||||
var entity = Scene.GetEntity("Trenchbroom map")
|
||||
var hasTransform = entity.HasComponent("Transform")
|
||||
var hasLight = entity.HasComponent("Light")
|
||||
|
||||
Engine.Log("trasnform: %(hasTransform) light:%(hasLight)")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user