public static DataLoadContext CreateNew()
		{
				var dlc = new DataLoadContext();

				dlc.FileSystem = new FileSystem();
				dlc.TextureManager = new TextureManager(dlc.FileSystem);

				return dlc;
		}
Exemple #2
0
		static void Main()
		{
			BinariesPath = Directory.GetCurrentDirectory();
			DataPath = new DirectoryInfo (BinariesPath).Parent.FullName + "/data/";
			
			Il.ilInit();
			Ilu.iluInit();

			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			mainForm = new MainForm();

			DataLoadContext = ce.engine.DataLoadContext.CreateNew();
			FileSystem = DataLoadContext.FileSystem;
			FileSystem.AddDirectory(DataPath + "textures", "textures");

			Application.Run(mainForm);
			GfxDisposableManager.DisposeAll();

			Il.ilShutDown();
		}