Explorar el Código

allow fx system without hscript

ncannasse hace 6 años
padre
commit
ceb7e98d9c
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      hide/prefab/fx/FXScriptParser.hx

+ 9 - 0
hide/prefab/fx/FXScriptParser.hx

@@ -10,6 +10,14 @@ class FXScriptParser {
 	public function new(){
 	}
 
+	#if !hscript
+
+	public function createFXScript( s : String, fx : hide.prefab.fx.FX.FXAnimation ) : FXScript {
+		throw "FX Scripts requires -lib hscript";
+	}
+
+	#else
+
 	inline function getExpr( e : hscript.Expr ) {
 		#if hscriptPos
 		return e.e;
@@ -395,6 +403,7 @@ class FXScriptParser {
 		}
 		return parse(expr);
 	}
+	#end
 
 	#if editor