Open kevinresol opened 4 years ago
class TurretTarget extends Component { var target:Entity; @:of(target) var position:Position; }
Macro will transform position into var(default, null) and generate setters for target to populate position.
position
var(default, null)
target
I think this approach would also benefit serializers, as they only need to store the entity reference
Macro will transform
position
intovar(default, null)
and generate setters fortarget
to populateposition
.I think this approach would also benefit serializers, as they only need to store the entity reference