public OpenUOSDK(string path = "") { if (_ClientData == null && (path != "" || path != null)) { if (Directory.Exists(path)) { _ClientData = path; } } IoCContainer container = new IoCContainer(); container.RegisterModule <UltimaSDKCoreModule>(); container.RegisterModule <UltimaSDKBitmapModule>(); InstallLocation location = (_ClientData == null ? InstallationLocator.Locate().FirstOrDefault() : (InstallLocation)_ClientData); if (!Directory.Exists(location.ToString())) { Utility.PushColor(ConsoleColor.Red); Console.WriteLine("OpenUO Error: Client files not found."); Utility.PopColor(); } _animationDataFactory = new AnimationDataFactory(location, container); _animationFactory = new AnimationFactory(location, container); _artworkFactory = new ArtworkFactory(location, container); _asciiFontFactory = new ASCIIFontFactory(location, container); _clilocFactory = new ClilocFactory(location, container); _gumpFactory = new GumpFactory(location, container); _skillsFactory = new SkillsFactory(location, container); _soundFactory = new SoundFactory(location, container); _texmapFactory = new TexmapFactory(location, container); _unicodeFontFactory = new UnicodeFontFactory(location, container); }
private static void InnerInit() { MapMaperSdk = new MakeMapSDK(); Container.RegisterModule <UltimaSDKCoreModule>(); Container.RegisterModule <OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); ArtworkFactory = new ArtworkFactory(InstallLocation, Container); TexmapFactory = new TexmapFactory(InstallLocation, Container); innerInit = true; }
public MainWindow() { InitializeComponent(); Container = new IoCContainer(); InstallLocation = InstallationLocator.Locate().First(); SDK = new TilesCategorySDKModule(InstallLocation); Container.RegisterModule <UltimaSDKCoreModule>(); Container.RegisterModule <OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation, Container); DataContext = SDK; }
public MainWindow() { InitializeComponent(); Container = new IoCContainer(); InstallLocation = InstallationLocator.Locate().First(); SDK = new TilesCategorySDKModule(InstallLocation); Container.RegisterModule<UltimaSDKCoreModule>(); Container.RegisterModule<OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation,Container); DataContext = SDK; }
static void Main() { #if DEBUG new DebugTraceListener { TraceLevel = TraceLevels.Verbose }; #endif IoCContainer container = new IoCContainer(); container.RegisterModule<OpenUO.Ultima.UltimaSDKCoreModule>(); container.RegisterModule<OpenUO.Ultima.Windows.Forms.UltimaSDKBitmapModule>(); container.Register<SampleForm>(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(container.Resolve<SampleForm>()); }
static void Main() { #if DEBUG new DebugTraceListener { TraceLevel = TraceLevels.Verbose }; #endif IoCContainer container = new IoCContainer(); container.RegisterModule <OpenUO.Ultima.UltimaSDKCoreModule>(); container.RegisterModule <OpenUO.Ultima.Windows.Forms.UltimaSDKBitmapModule>(); container.Register <SampleForm>(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(container.Resolve <SampleForm>()); }
private void buttonLoadFolder_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(textBoxFolder.Text)) { try { InstallLocation = new InstallLocation(textBoxFolder.Text); SDK = new TilesCategorySDKModule(InstallLocation); Container = new IoCContainer(); Container.RegisterModule <UltimaSDKCoreModule>(); Container.RegisterModule <OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation, Container); } catch (Exception) { } } }
public OpenUOSDK(string path = "") { if (_ClientData == null && (path != "" || path != null)) { if (Directory.Exists(path)) _ClientData = path; } IoCContainer container = new IoCContainer(); container.RegisterModule<UltimaSDKCoreModule>(); container.RegisterModule<UltimaSDKBitmapModule>(); InstallLocation location = (_ClientData == null ? InstallationLocator.Locate().FirstOrDefault() : (InstallLocation)_ClientData); if (!Directory.Exists(location.ToString())) { Utility.PushColor(ConsoleColor.Red); Console.WriteLine("OpenUO Error: Client files not found."); Utility.PopColor(); } _animationDataFactory = new AnimationDataFactory(location, container); _animationFactory = new AnimationFactory(location, container); _artworkFactory = new ArtworkFactory(location, container); _asciiFontFactory = new ASCIIFontFactory(location, container); _clilocFactory = new ClilocFactory(location, container); _gumpFactory = new GumpFactory(location, container); _skillsFactory = new SkillsFactory(location, container); _soundFactory = new SoundFactory(location, container); _texmapFactory = new TexmapFactory(location, container); _unicodeFontFactory = new UnicodeFontFactory(location, container); }
private void buttonLoadFolder_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(textBoxFolder.Text)) { try { InstallLocation = new InstallLocation(textBoxFolder.Text); SDK = new TilesCategorySDKModule(InstallLocation); Container = new IoCContainer(); Container.RegisterModule<UltimaSDKCoreModule>(); Container.RegisterModule<OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation,Container); } catch (Exception) { } } }