Browse Source

Pushed relevant changes of ScriptingExample.Main

kindlich 4 years ago
parent
commit
9c5aaeb2a8
No known key found for this signature in database

+ 2
- 3
ScriptingExample/src/main/java/org/openzen/zenscript/scriptingexample/Main.java View File

23
 import org.openzen.zenscript.scriptingexample.events.EventManager;
23
 import org.openzen.zenscript.scriptingexample.events.EventManager;
24
 import org.openzen.zenscript.scriptingexample.events.IEvent;
24
 import org.openzen.zenscript.scriptingexample.events.IEvent;
25
 import org.openzen.zenscript.scriptingexample.events.impl.CTStringedEvent;
25
 import org.openzen.zenscript.scriptingexample.events.impl.CTStringedEvent;
26
-import org.openzen.zenscript.scriptingexample.logging.StreamLogger;
26
+import org.openzen.zencode.java.logger.ScriptingEngineStreamLogger;
27
 
27
 
28
 public class Main {
28
 public class Main {
29
 	public static void main(String[] args) throws CompileException, ParseException, IOException, NoSuchMethodException {
29
 	public static void main(String[] args) throws CompileException, ParseException, IOException, NoSuchMethodException {
30
-		ScriptingEngine scriptingEngine = new ScriptingEngine();
30
+		ScriptingEngine scriptingEngine = new ScriptingEngine(new ScriptingEngineStreamLogger());
31
 		scriptingEngine.debug = true;
31
 		scriptingEngine.debug = true;
32
-		scriptingEngine.logger = new StreamLogger();
33
 
32
 
34
 		JavaNativeModule example = scriptingEngine.createNativeModule("example", "org.openzen.zenscript.scriptingexample");
33
 		JavaNativeModule example = scriptingEngine.createNativeModule("example", "org.openzen.zenscript.scriptingexample");
35
 		example.addGlobals(Globals.class);
34
 		example.addGlobals(Globals.class);

Loading…
Cancel
Save