mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Various improvements:
Framebuffer resize queued to next frame to fix flickering Wren VM init moved to on play event Added new Wren modules Added missing components to the editor Changed how the wren scripts gets initialized
This commit is contained in:
15
Editor/resources/Scripts/ScriptableEntity.wren
Normal file
15
Editor/resources/Scripts/ScriptableEntity.wren
Normal file
@@ -0,0 +1,15 @@
|
||||
import "Scripts/Scene" for Scene
|
||||
|
||||
class ScriptableEntity {
|
||||
SetEntityId(id) {
|
||||
_EntityID = id
|
||||
}
|
||||
|
||||
GetComponent(component) {
|
||||
return Scene.EntityGetComponent(_EntityID, component)
|
||||
}
|
||||
|
||||
HasComponent(component) {
|
||||
return Scene.EntityHasComponent(_EntityID, component)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user