18 lines
321 B
Haxe
18 lines
321 B
Haxe
package leenkx.logicnode;
|
|
|
|
class KromFileExistsNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function get(from: Int): Dynamic {
|
|
#if kha_krom
|
|
var path: String = inputs[0].get();
|
|
return js.Syntax.code("Krom.fileExists({0})", path);
|
|
#else
|
|
return false;
|
|
#end
|
|
}
|
|
}
|