/// <summary> /// Initializes a new instance of the <see cref="T:libiox.IodineContext"/> class. /// </summary> public IodineContext() { // Create the Iodine engine Engine = new IodineEngine(); // Set the Iodine engine context Context = Engine.Context; }
public IodineVM(Game game = null) { Game = game; Engine = new IodineEngine(); Reloader = new ScriptReloader("*.id"); Reloader.LoadScript = Load; if (Game != null) { Reloader.PauseGame = Game.Pause; Reloader.ResumeGame = Game.Resume; Game.Content.RegisterAssetHandler <IodineScript> (typeof(IodineScriptProvider)); } currentError = string.Empty; SetupGlobals(); }
public ReplShell (IodineContext context) { engine = new IodineEngine (context); }
public dynamic CreateDynamicObject(IodineEngine engine, IodineObject obj) { return new IodineDynamicObject (obj, engine.VirtualMachine); }