Engine.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.IO;
  3. using NTERA.Core;
  4. using NTERA.EmuEra.Game.EraEmu.Content;
  5. namespace NTERA.Interpreter
  6. {
  7. public class Engine : IScriptEngine
  8. {
  9. public IConsole Console { get; protected set; }
  10. public string EntrypointPath { get; protected set; }
  11. public Interpreter Interpreter { get; protected set; }
  12. public bool Initialize(IConsole console)
  13. {
  14. Console = console;
  15. EntrypointPath = @"M:\era\eraSemifullTest\erb\SYSTEM_TITLE.ERB";
  16. Interpreter = new Interpreter(console, File.ReadAllText(EntrypointPath));
  17. return true;
  18. }
  19. public void Start()
  20. {
  21. Interpreter.Exec();
  22. }
  23. public void InputString(string input)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. public void InputInteger(long input)
  28. {
  29. throw new NotImplementedException();
  30. }
  31. public void InputSystemInteger(long input)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public CroppedImage GetImage(string name)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. }
  40. }