SomeRanDev / reflaxe.GDScript

Compile Haxe to GDScript 2.0 as easily as you'd output to any other target
MIT License
18 stars 2 forks source link

add gdscript_output_dirs option #7

Closed lublak closed 2 months ago

SomeRanDev commented 2 months ago

Thanks for the contribution! I think we could make the code a little less repetitive, like this:

path = classType.globalName() + ".gd";
#if gdscript_output_dirs
if(classType.pack.length > 0) {
    path = classType.pack.join("/") + "/" + path;
}
#end

Also please document new defines in Define.hx. Even if they are only used in #if, it's nice to have a list of all of them somewhere. 😅

lublak commented 2 months ago

@SomeRanDev Done! :)