-
Notifications
You must be signed in to change notification settings - Fork 2
Abstracts
Kriptel edited this page Dec 30, 2024
·
1 revision
In the any classpath you can add RuleScriptAbstracts.txt
(or define rulescript_abstracts_file_path
value) file.
Enter the type path of abstracts there.
RuleScriptAbstracts.txt
test.HelloWorldAbstract.LocalAbstract
test.HelloWorldAbstract
TestAbstract
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.
Source
abstract TestAbstract(Test) from Test to Test
{
@:ignoreField
public static inline var helloworld:Int = 1;
}