Using and Enums

Based on Enums and Using system from hscript-iris, mostly made by ne_eo.
This commit is contained in:
Jaime Humberto Macias Bustamante
2025-03-03 21:53:02 -07:00
parent a1ee770794
commit 9833c61f78
16 changed files with 622 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
package hscript.utils;
typedef UsingCall = (o: Dynamic, f: String, args: Array<Dynamic>) -> Dynamic;
/**
* Code based on Using system from "hscript-iris"
* @see https://github.com/pisayesiwsi/hscript-iris/blob/master/crowplexus/iris/utils/UsingEntry.hx
*/
class UsingEntry {
public var name: String;
public var call: UsingCall;
public function new(name: String, call: UsingCall) {
this.name = name;
this.call = call;
}
}