Skip to content

Commit 24c3945

Browse files
committed
added set_active() for callback support
1 parent 48ab09d commit 24c3945

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zero/flxutil/ecs/Component.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class Component
1515
/**
1616
* Whether or not this component gets updated
1717
*/
18-
public var active:Bool = true;
18+
public var active(default, set):Bool = true;
19+
function set_active(bool:Bool):Bool return active = bool;
1920

2021
@:dox(hide)
2122
public var x(get,set):Float;

0 commit comments

Comments
 (0)