Port from C# to Haxe for the ink runtime: So you can use inkle's ink engine directly for all other target platforms (Javascript, Flash, Neko, C++, Java, etc.), besides just C#.
Basically, it should run similar to the original runtime as found in https://github.com/inkle/ink/blob/master/Documentation/RunningYourInk.md
However, here are the differences:
- Package name is
ink.runtime
, notInk.Runtime
. So, you call something likenew ink.runtime.Story(...)
. - BindExternalFunction has no method overloading because Haxe doesn't support it, so you must explicitly use the required function for the stipulated number of parameters, such as
BindExternalFunction0(...)
,BindExternalFunction1(...)
,BindExternalFunction2(...)
,BindExternalFunction3(...)
or useBindExternalFunctionGeneral()
for more than 3 parameters.
Target demo platforms that have been tested and proven to work:
- Javascript
For any issues, check the Issues tab in the github repository.