Esempio n. 1
0
		public static DataLoadContext CreateNew()
		{
				var dlc = new DataLoadContext();

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

				return dlc;
		}
Esempio n. 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();
		}