Haath

Results 43 comments of Haath

Something like this? ```haxe @:build( defold.support.GoBuilder.build("/path/to/myobject.go") ) abstract MyObject(HashOrStringOrUrl) { } ``` And some examples of what will be generated. ```haxe abstract MyObject(HashOrStringOrUrl) { public inline function new(url: HashOrStringOrUrl) {...

Hey there. Yes you need to create externs. And for most cases where the extension code is in a lua module `@:luaRequire()` should work. Here is an example of the...

Same thing generally, because even those extensions have a lua API in the end. From my examples again you can take a look at Astar which is a native extension:...

And for a little more context since you are new to Haxe, externs are basically just a way to lie to the Haxe compiler and say "a class is going...

Could you please share your `hxml` file, as well as a description of your folder structure?

So, Haxe actually has a strict package-directory relation much like Java. In your case, your classpath (cp) is `content`, therefore the correct package name for `Game.hx` would be `package game.scenes;`....

Yeah as I said above, some of those externs are untested. I just wrote them while being bored at work one day. 😄 Looking at Monarch's examples it should indeed...

And for sure you have the monarch extension added to the project, right? And you also did `Project > Fetch Libraries` on the Defold editor?

So apparently without the `_G` it works... ```lua __warbattles_monarch_Monarch = require("monarch.monarch") ``` I don't generally write lua, so I'm not sure what this means exactly. It's strange because the orthographic...