public App() { m_data = new CogaenData(new ObjectBuilder("Live", null)); m_templates = new TemplateManager(Data); m_MessageHandler = new MessageHandler(this, m_data); m_connection = new Connection(m_MessageHandler); m_MessageHandler.Connection = m_connection; m_exporter.Add(new CogaenScriptingExporter()); m_exporter.Add(new XnaXmlScriptExporter()); }
public void Reinit(string serviceName, object connection) { m_serviceName = serviceName; m_connection = connection as Connection; updateAllData(); }
/// <summary> /// Default constructor of the package. /// Inside this method you can place any initialization code that does not require /// any Visual Studio service because at this point the package object is created but /// not sited yet inside Visual Studio environment. The place to do all the other /// initialization is the Initialize method. /// </summary> public CogaenEditExtensionPackage() { Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString())); m_messageHandler = new MessageHandler(this, m_Data,Dispatcher.CurrentDispatcher); m_connection = new Connection(m_messageHandler); m_messageHandler.Connection = m_connection; Data.LiveGameObjects = new ObjectBuilder("LiveGameObjects", CogaenEditExtensionPackage.Data); m_mainInstance = this; DummyInit.Init(); }