public GameViewModel(GameDetected info) { Game = info; Description = info.Game.Description; Platform = info.Game.Platform.ToString(); Culture = info.Game.Culture.DisplayName; }
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); }
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); }