Ejemplo n.º 1
0
 public MachinaRuntime(MachinaGame game, GameSpecification specification, IPlatformContext platformContext, Painter painter)
 {
     this.specification   = specification;
     this.game            = game;
     this.platformContext = platformContext;
     this.Painter         = painter;
 }
Ejemplo n.º 2
0
 public BackupHostedService(ILogger <HostedService> logger,
                            IServiceScopeFactory factory)
     : base(logger, factory)
 {
     context              = GetService <IPlatformContext>();
     configuration        = GetService <IConfiguration>();
     preferenceRepository = new PreferencesRepository(context.CreateDbContext());
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public void ShareWith(IPlatformContext newContext)
 {
     WindowsContext context = (WindowsContext)newContext;
     NativeAPI.wglShareLists(rc, context.rc);
 }
Ejemplo n.º 5
0
 public RepositoryFactory(IPlatformContext platformContext)
 {
     this.platformContext = platformContext;
     context = platformContext.CreateDbContext();
 }
Ejemplo n.º 6
0
 public CategoryRepository(IPlatformContext platformContext)
     : base(platformContext.CreateDbContext())
 {
 }
Ejemplo n.º 7
0
 public ItemSearch(IPlatformContext context) => this.context = context;