Ejemplo n.º 1
0
        public FlythroughPlugin()
        {
            Start                 = new Camera(new Vector3(128f, 128f, 60f), Rotation.Zero);
            mEvents.Start         = Start;
            mEvents.LengthChange += new Action <EventSequence <Camera>, int>(mEvents_LengthChange);
            mTickListener         = new Action(mCoordinator_Tick);

            FlythroughConfig cfg = new FlythroughConfig();

            mSynchLengths = cfg.SynchLengths;
        }
Ejemplo n.º 2
0
        void mCore_InitialisationComplete()
        {
            FlythroughConfig cfg  = new FlythroughConfig();
            string           file = Path.GetFullPath(cfg.StartFile);

            Logger.Info("Auto loading " + file + ".");
            Load(file);
            if (cfg.Autostart)
            {
                Logger.Info("Auto playing " + file + ".");
                Play();
            }
        }
Ejemplo n.º 3
0
        public void Init(Core coordinator)
        {
            mCore = coordinator;

            FlythroughConfig cfg = new FlythroughConfig();

            mLoop = cfg.Loop;

            if (cfg.StartFile != null)
            {
                mCore.InitialisationComplete += new Action(mCore_InitialisationComplete);
            }
        }
Ejemplo n.º 4
0
 void mCore_InitialisationComplete()
 {
     FlythroughConfig cfg = new FlythroughConfig();
     string file = Path.GetFullPath(cfg.StartFile);
     Logger.Info("Auto loading " + file + ".");
     Load(file);
     if (cfg.Autostart) {
         Logger.Info("Auto playing " + file + ".");
         Play();
     }
 }
Ejemplo n.º 5
0
        public void Init(Core coordinator)
        {
            mCore = coordinator;

            FlythroughConfig cfg = new FlythroughConfig();
            mLoop = cfg.Loop;

            if (cfg.StartFile != null)
                mCore.InitialisationComplete += new Action(mCore_InitialisationComplete);
        }
Ejemplo n.º 6
0
        public FlythroughPlugin()
        {
            Start = new Camera(new Vector3(128f, 128f, 60f), Rotation.Zero);
            mEvents.Start = Start;
            mEvents.LengthChange += new Action<EventSequence<Camera>, int>(mEvents_LengthChange);
            mTickListener = new Action(mCoordinator_Tick);

            FlythroughConfig cfg = new FlythroughConfig();
            mSynchLengths = cfg.SynchLengths;
        }