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; }
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(); } }
public void Init(Core coordinator) { mCore = coordinator; FlythroughConfig cfg = new FlythroughConfig(); mLoop = cfg.Loop; if (cfg.StartFile != null) { mCore.InitialisationComplete += new Action(mCore_InitialisationComplete); } }
public void Init(Core coordinator) { mCore = coordinator; FlythroughConfig cfg = new FlythroughConfig(); mLoop = cfg.Loop; if (cfg.StartFile != null) mCore.InitialisationComplete += new Action(mCore_InitialisationComplete); }
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; }