示例#1
0
 public LoaderViewModel()
 {
     Starts = cons !.Resolve <IStartUp>();
     //BasicLoaderPage.Multiplayer = Multiplayer;
     GenerateGameList();
     PackagePicker = new GamePackageLoaderPickerCP();
     PackagePicker.LoadTextList(GameList);
     Mode = EnumGamePackageMode.Production; //can now test the production processes.
     PackagePicker.ItemSelectedAsync += PackagePicker_ItemSelectedAsync;
 }
示例#2
0
 public BasicGameBootstrapper(IStartUp starts, EnumGamePackageMode mode)
 {
     BeginningColorDimensions.GraphicsHeight = 0;
     BeginningColorDimensions.GraphicsWidth = 0;
     JsonSettingsGlobals.PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.None; //try this way.  because otherwise, does not work if not everybody is .net core unfortunately.
     JsonSettingsGlobals.TypeNameHandling = Newtonsoft.Json.TypeNameHandling.None; //try this as well.  otherwise, gets hosed with .net core and xamarin forms.
     _startInfo = starts;
     _mode = mode;
     InitalizeAsync(); //maybe its okay to be async void.  doing the other is causing too many problems with the game package.
 }
        //attempt no navigation.
        public LoaderViewModel()
        {
            Starts   = cons !.Resolve <IStartUp>();
            Platform = cons.Resolve <IGamePlatform>();

            //Navigation = navigation;
            Mode = EnumGamePackageMode.Production; //needs some testing for now unfortunately for the loader.
            GenerateGameList();
            PackagePicker = new GamePackageLoaderPickerCP();
            PackagePicker.LoadTextList(GameList);
            PackagePicker.ItemSelectedAsync += PackagePicker_ItemSelectedAsync;
        }
 public BasicGameBootstrapper(IGamePlatform customPlatform, IStartUp starts, EnumGamePackageMode mode)
 {
     BeginningColorDimensions.GraphicsHeight = 0;
     BeginningColorDimensions.GraphicsWidth  = 0;
     AssemblyLinker.ExtraViewModelLocations.Clear();
     //AssemblyLinker.ExtraViewModelLocations.Add(Assembly.GetCallingAssembly()!); //needs that too.
     AssemblyLinker.ExtraViewLocations.Clear();
     ViewLocator.ManuelVMList.Clear();
     MiscDelegates.ComputerChooseColorsAsync = null;
     MiscDelegates.ContinueColorsAsync       = null;
     MiscDelegates.FillRestColors            = null;
     MiscDelegates.GetMiscObjectsToReplace   = null;
     RegularSimpleCard.ClearSavedList();                                                               //looks like this was not good enough.
     JsonSettingsGlobals.PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.None; //try this way.  because otherwise, does not work if not everybody is .net core unfortunately.
     JsonSettingsGlobals.TypeNameHandling           = Newtonsoft.Json.TypeNameHandling.None;           //try this as well.  otherwise, gets hosed with .net core and xamarin forms.
     _startInfo     = starts;
     _mode          = mode;
     CustomPlatform = customPlatform;
     InitalizeAsync(); //maybe its okay to be async void.  doing the other is causing too many problems with the game package.
 }
 public Bootstrapper(IStartUp starts, EnumGamePackageMode mode) : base(starts, mode)
 {
 }
示例#6
0
 public Bootstrapper(IGamePlatform customPlatform, IStartUp starts, EnumGamePackageMode mode) : base(customPlatform, starts, mode)
 {
 }
示例#7
0
 public SinglePlayerBootstrapper(IStartUp starts, EnumGamePackageMode mode) : base(starts, mode)
 {
 }