In the any classpath you can add RuleScriptAbstracts.txt (or define rulescript_abstracts_file_path value) file.
RuleScriptAbstracts.txt
rulescript_abstracts_file_path
Enter the type path of abstracts there.
test.HelloWorldAbstract.LocalAbstract test.HelloWorldAbstract TestAbstract
path
fullPath
Sets a different type path for the abstract in scripts.
Source
package test.TestAbstract; @:alias('hello.TestAbstract', true) abstract TestAbstract(Test) from Test to Test { public static inline var helloworld:Int = 1; }
Script:
hello.TestAbstract.helloworld; // 1
Ignores field.
abstract TestAbstract(Test) from Test to Test { @:ignoreField public static inline var helloworld:Int = 1; }
There was an error while loading. Please reload this page.