Skip to content

Commit

Permalink
Update Hscript.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Oct 11, 2024
1 parent e7f0438 commit 4eeec4b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/game/Hscript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ class Hscript extends FlxBasic {
public static var Function_Stop:Dynamic = 1;
public static var Function_Continue:Dynamic = 0;

public var parser:Parser;
public var interp:Interp;
public var parser:Parser = new Parser();
public var interp:Interp = new Interp();

public function new(file:String, ?execute:Bool = true) {
super();

parser = new Parser();
parser.allowJSON = parser.allowTypes = parser.allowMetadata = true;

interp = new Interp();

setVariable('this', this);
setVariable('import', function(daClass:String, ?asDa:String) {
final splitClassName:Array<String> = [for (e in daClass.split('.')) e.trim()];
Expand Down

0 comments on commit 4eeec4b

Please sign in to comment.