public static void UseDataManager(this ServiceProvider provider) { provider.AddSingleton <DesignEngine>(); provider.AddSingleton <ISceneManager, SceneManager>(); provider.AddSingleton <IProjectManager, ProjectManager>(); provider.AddSingleton <IAssetManager, AssetManager>(); }
internal void Load() { RootLogger = new CompoundLogger(); if (!Directory.Exists(TemporaryDirectory)) { Directory.CreateDirectory(TemporaryDirectory); } if (!Directory.Exists(FrameworkDirectory)) { Directory.CreateDirectory(FrameworkDirectory); } if (!Directory.Exists(ModuleDirectory)) { Directory.CreateDirectory(ModuleDirectory); } ((CompoundLogger)RootLogger).AddLogger(new FileLogger(Path.Combine(FrameworkDirectory, "Core.log"), 1000000, TimeSpan.FromDays(30))); ServiceProvider.AddSingleton <IExecutionEngine, ExecutionEngine>(); }
public static void UseMessenger(this ServiceProvider provider) { provider.AddSingleton <IMessenger, Messenger>(); }
public static void UseFile(this ServiceProvider provider) { provider.AddSingleton <IFileService, FileService>(); }
public static void UseProcess(this ServiceProvider provider) { provider.AddSingleton <IProcessService, ProcessService>(); }
public static void UseGameSerializer(this ServiceProvider provider) { provider.AddSingleton <ISerializer, BinarySerializer>(); }
/// <summary> /// Sets the generator. /// </summary> /// <typeparam name="TGen"></typeparam> /// <returns></returns> public override ISolidConfigurationBuilder SetGenerator <TGen>() { ServiceProvider.AddSingleton <ISolidProxyGenerator>(new TGen()); return(this); }
public static void UseDialog(this ServiceProvider provider) { provider.AddSingleton <IDialogService, DialogService>(); }