Ejemplo n.º 1
0
 public GameViewModel(GameDetected info)
 {
     Game        = info;
     Description = info.Game.Description;
     Platform    = info.Game.Platform.ToString();
     Culture     = info.Game.Culture.DisplayName;
 }
Ejemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var info = e.Parameter as GameDetected;

            Info  = info;
            _game = XamlGame <ScummGame> .Create("", Window.Current.CoreWindow, GamePanel);

            _menuService.Game = _game;
            _game.Services.AddService <IMenuService>(_menuService);
        }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            Instance = this;
            GameObject go = new GameObject("Scouter 9000");
            mothtext   mt = go.AddComponent <mothtext>();

            mt.drawAppend = "Underhero";
            if (typeof(Modding.ModHooks).GetField("_modVersion", BindingFlags.NonPublic | BindingFlags.Static) != null)
            {
                game          = GameDetected.HOLLOW_KNIGHT;
                mt.drawAppend = "Hollow Knight";
            }
            Object.DontDestroyOnLoad(go);
        }