static void HandleAddAdditionalPlugins(AnomalousController anomalousController, StandaloneController controller) { controller.AtlasPluginManager.addPlugin(new PremiumBodyAtlasPlugin(controller) { AllowUninstall = false }); controller.AtlasPluginManager.addPlugin(new DentalSimPlugin() { AllowUninstall = false }); controller.AtlasPluginManager.addPlugin(new LecturePlugin() { AllowUninstall = false }); #if ALLOW_OVERRIDE controller.AtlasPluginManager.addPlugin(new Movement.MovementBodyAtlasPlugin() { AllowUninstall = false }); controller.AtlasPluginManager.addPlugin(new Developer.DeveloperAtlasPlugin(controller) { AllowUninstall = false }); controller.AtlasPluginManager.addPlugin(new EditorPlugin() { AllowUninstall = false }); #endif }
protected override void createApp() { ActivityManager actManager = GetSystemService(ActivityService) as ActivityManager; var memoryInfo = new ActivityManager.MemoryInfo(); actManager.GetMemoryInfo(memoryInfo); if (memoryInfo.TotalMem < 1536000000) { MedicalConfig.SetVirtualTextureMemoryUsageMode(MedicalConfig.VTMemoryMode.Small); } MedicalConfig.PlatformExtraScaling = 0.25f; OgrePlugin.OgreInterface.CompressedTextureSupport = OgrePlugin.CompressedTextureSupport.None; OgrePlugin.OgreInterface.InitialClearColor = new Color(0.156f, 0.156f, 0.156f); #if DEBUG Logging.Log.Default.addLogListener(new Logging.LogConsoleListener()); #endif OtherProcessManager.OpenUrlInBrowserOverride = openUrl; String archiveName = null; #if ALLOW_DATA_FILE String testingArtFile = "/storage/emulated/0/AnomalousMedical.dat"; if (File.Exists(testingArtFile)) { archiveName = testingArtFile; } else { #endif archiveName = findExpansionFile(); #if ALLOW_DATA_FILE } Logging.Log.Debug("Archive Name {0}", archiveName); #endif anomalousController = new AnomalousController() { PrimaryArchive = archiveName }; anomalousController.OnInitCompleted += HandleOnInitCompleted; //anomalousController.DataFileMissing += HandleDataFileMissing; anomalousController.AddAdditionalPlugins += HandleAddAdditionalPlugins; anomalousController.run(); }
// This is the main entry point of the application. static void Main(string[] args) { if (NSProcessInfo.ProcessInfo.PhysicalMemory < 1536000000) { MedicalConfig.SetVirtualTextureMemoryUsageMode(MedicalConfig.VTMemoryMode.Small); } MedicalConfig.PlatformExtraScaling = 0.25f; iOSRuntimePlatformInfo.Initialize(); OgrePlugin.OgreInterface.CompressedTextureSupport = OgrePlugin.CompressedTextureSupport.None; ServerConnection.HttpClientProvider = () => new HttpClient(new NativeMessageHandler()); RocketInterface.LoadImagesInBackground = false; #if DEBUG Logging.Log.Default.addLogListener(new Logging.LogConsoleListener()); #endif OtherProcessManager.OpenUrlInBrowserOverride = openUrl; AnomalousController anomalous = null; try { anomalous = new AnomalousController() { PrimaryArchive = Path.Combine(FolderFinder.ExecutableFolder, "AnomalousMedical.dat") }; anomalous.OnInitCompleted += HandleOnInitCompleted; anomalous.AddAdditionalPlugins += HandleAddAdditionalPlugins; anomalous.run(); } catch (Exception e) { Logging.Log.Default.printException(e); Logging.Log.Error("{0} occured. Message: {1}", e.GetType().Name, e.Message); } finally { if (anomalous != null) { anomalous.Dispose(); } } }
static void Main(string[] args) { NSApplication.Init(); ServerConnection.HttpClientProvider = () => new HttpClient(new NativeMessageHandler()); MacRuntimePlatformInfo.Initialize(); OgrePlugin.OgreInterface.CompressedTextureSupport = OgrePlugin.CompressedTextureSupport.None; AnomalousController anomalous = null; try { anomalous = new AnomalousController() { PrimaryArchive = Path.Combine(FolderFinder.ExecutableFolder, "../Resources/AnomalousMedical.dat") }; anomalous.AddAdditionalPlugins += HandleAddAdditionalPlugins; anomalous.run(); } catch (Exception e) { Logging.Log.Default.printException(e); if (anomalous != null) { anomalous.saveCrashLog(); } MessageDialog.showErrorDialog(String.Format("{0} occured. Message: {1}.\nPlease see log file for more information", e.GetType().Name, e.Message), "Anomalous Medical Has Crashed"); MacRuntimePlatformInfo.AlertCrashing(); } finally { if (anomalous != null) { anomalous.Dispose(); } } }
public AnomalousMainPlugin(LicenseManager licenseManager, AnomalousController bodyAtlasController) { this.licenseManager = licenseManager; this.bodyAtlasController = bodyAtlasController; }
void HandleOnInitCompleted(AnomalousController anomalousController, StandaloneController controller) { setInputHandler(controller.MedicalController.InputHandler); printRuntimeInfo(); }
static void HandleOnInitCompleted(AnomalousController anomalousController, StandaloneController controller) { touchForwarder = controller.MedicalController.TouchMouseGuiForwarder; }