123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.IO;
- using NTERA.Core;
- using NTERA.EmuEra.Game.EraEmu.Content;
- namespace NTERA.Interpreter
- {
- public class Engine : IScriptEngine
- {
- public IConsole Console { get; protected set; }
- public string EntrypointPath { get; protected set; }
- public Interpreter Interpreter { get; protected set; }
- public bool Initialize(IConsole console)
- {
- Console = console;
- EntrypointPath = @"M:\era\eraSemifullTest\erb\SYSTEM_TITLE.ERB";
- Interpreter = new Interpreter(console, File.ReadAllText(EntrypointPath));
- return true;
- }
- public void Start()
- {
- Interpreter.Exec();
- }
- public void InputString(string input)
- {
- throw new NotImplementedException();
- }
- public void InputInteger(long input)
- {
- throw new NotImplementedException();
- }
- public void InputSystemInteger(long input)
- {
- throw new NotImplementedException();
- }
- public CroppedImage GetImage(string name)
- {
- throw new NotImplementedException();
- }
- }
- }
|