public MachinaRuntime(MachinaGame game, GameSpecification specification, IPlatformContext platformContext, Painter painter) { this.specification = specification; this.game = game; this.platformContext = platformContext; this.Painter = painter; }
public BackupHostedService(ILogger <HostedService> logger, IServiceScopeFactory factory) : base(logger, factory) { context = GetService <IPlatformContext>(); configuration = GetService <IConfiguration>(); preferenceRepository = new PreferencesRepository(context.CreateDbContext()); }
public MachinaGame(GameSpecification specification, GameCartridge gameCartridge, IPlatformContext platformContext, string devContentPath = "") { this.specification = specification; this.gameCartridge = gameCartridge; this.platformContext = platformContext; Content.RootDirectory = "Content"; var graphics = new GraphicsDeviceManager(this) { HardwareModeSwitch = false }; MachinaClient.Setup(new AssetLibrary(this), this.specification, graphics, devContentPath); this.platformContext.OnGameConstructed(this); }
public void ShareWith(IPlatformContext newContext) { WindowsContext context = (WindowsContext)newContext; NativeAPI.wglShareLists(rc, context.rc); }
public RepositoryFactory(IPlatformContext platformContext) { this.platformContext = platformContext; context = platformContext.CreateDbContext(); }
public CategoryRepository(IPlatformContext platformContext) : base(platformContext.CreateDbContext()) { }
public ItemSearch(IPlatformContext context) => this.context = context;