internal IFeatureManager features; //Used to access features exposed by other plugins, such as the steamcmdhelper from the SteamCMD plugin //ModuleMain is the entry point for a module, it's the first thing that gets called when AMP loads the module. public ModuleMain(ILogger log, IConfigSerializer config, SupportedOS currentPlatform, IRunningTasksManager taskManager, IFeatureManager features) { this.log = log; taskmgr = taskManager; this.config = config; os = currentPlatform; this.features = features; settings = config.Load <FiveMConfig>(); //This will also automatically save your settings for you when the user changes them. You don't need to do anything }
//[Initializer(Int32.MinValue + 10)] private static void Initialize() { DebugInfos(); if (!SupportedOS.Contains(OS.Platform)) { throw new EngineException("Sorry, but Winecrash is not compatible with system " + OS.ToString()); } /*if(!IsSIMDAvailable) * { * Debug.LogWarning("SIMD is not supported on this system. The game might run slower."); * }*/ if (DoGUI) { CreateEngineWObject(); } else { Layer.CreateOrGetLayer(0).Name = "Default Layer"; //Group.CreateOrGetGroup(0, "Default Group"); } }