Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
		public ReplShell (IodineContext context)
		{
			engine = new IodineEngine (context);
		}
Ejemplo n.º 4
0
 public dynamic CreateDynamicObject(IodineEngine engine, IodineObject obj)
 {
     return new IodineDynamicObject (obj, engine.VirtualMachine);
 }