For my question, I'm looking for an answer relating to Funkin's API implementation, but I would also like tips on implementing this into my own API Handler as I'm making my own game.
The general idea is I have script A in one folder lets say [GameName]/mods/[ModA]/scripts/ScriptA.hxc and Script B in another folder in assets [GameName]/assets/scripts/ScriptB.hxc
and the code for Script B is
import gamename.backend.scripting.Script; // The import path for whatever the script extends, but will be represented as Script.
Class ScriptB extends Script
{
public var someVariable:Bool = false;
public function new() {
super('ScriptB');
}
}
But for Script A I want to import the ScriptB class, how would I do this?