Converting properties for haxe 3.0
HXP.entity created inline
A lot of haxe 3.0 compatibility changes