protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterType <StandardPickerSizeClass>();           //needs to keep no matter what since this is extra for xamarin forms

            OurContainer !.RegisterNonSavedClasses <ConnectTheDotsShellViewModel>();
            OurContainer !.RegisterType <BasicGameLoader <ConnectTheDotsPlayerItem, ConnectTheDotsSaveInfo> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <ConnectTheDotsPlayerItem, ConnectTheDotsSaveInfo> >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <ConnectTheDotsPlayerItem> >(true);                                                        //had to be set to true after all.

            OurContainer !.RegisterSingleton <IProportionBoard, StandardProportion>("");                                                                      //here too.
            OurContainer.RegisterType <BeginningColorProcessorClass <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectTheDotsPlayerItem, ConnectTheDotsSaveInfo> >();
            OurContainer.RegisterType <BeginningChooseColorViewModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectTheDotsPlayerItem> >(false); //did have to replace though.
            OurContainer.RegisterType <BeginningColorModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectTheDotsPlayerItem> >(true);
            //all piece choices should be here.
            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(BeginningChooseColorViewModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectTheDotsPlayerItem>),
                ViewType      = typeof(BeginningChooseColorView <CheckerChoiceCP <EnumColorChoice>, CheckerChooserXF <EnumColorChoice>, EnumColorChoice>)
            };

            ViewLocator.ManuelVMList.Add(link);
            MiscDelegates.GetMiscObjectsToReplace = (() =>
            {
                CustomBasicList <Type> output = new CustomBasicList <Type>()
                {
                    typeof(BeginningColorProcessorClass <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectTheDotsPlayerItem, ConnectTheDotsSaveInfo>),
                    typeof(BeginningColorModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectTheDotsPlayerItem>)
                };
                return(output);
            });
            //anything that needs to be registered will be here.
            return(Task.CompletedTask);
        }
        protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterNonSavedClasses <SorryCardGameShellViewModel>();
            OurContainer !.RegisterType <BasicGameLoader <SorryCardGamePlayerItem, SorryCardGameSaveInfo> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <SorryCardGamePlayerItem, SorryCardGameSaveInfo> >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <SorryCardGamePlayerItem> >(true); //had to be set to true after all.
            OurContainer.RegisterType <DeckObservablePile <SorryCardGameCardInformation> >(true);
            OurContainer.RegisterType <GenericCardShuffler <SorryCardGameCardInformation> >();
            OurContainer.RegisterSingleton <IDeckCount, SorryCardGameDeckCount>();
            OurContainer.RegisterSingleton <IProportionImage, StandardProportion>("");
            //anything that needs to be registered will be here.

            OurContainer.RegisterType <BeginningColorProcessorClass <EnumColorChoices, PawnPiecesCP <EnumColorChoices>, SorryCardGamePlayerItem, SorryCardGameSaveInfo> >();
            OurContainer.RegisterType <BeginningChooseColorViewModel <EnumColorChoices, PawnPiecesCP <EnumColorChoices>, SorryCardGamePlayerItem> >(false); //did have to replace though.
            OurContainer.RegisterType <BeginningColorModel <EnumColorChoices, PawnPiecesCP <EnumColorChoices>, SorryCardGamePlayerItem> >(true);
            //all piece choices should be here.
            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(BeginningChooseColorViewModel <EnumColorChoices, PawnPiecesCP <EnumColorChoices>, SorryCardGamePlayerItem>),
                ViewType      = typeof(BeginningChooseColorView <PawnPiecesCP <EnumColorChoices>, PawnPiecesXF <EnumColorChoices>, EnumColorChoices>)
            };

            ViewLocator.ManuelVMList.Add(link);
            MiscDelegates.GetMiscObjectsToReplace = (() =>
            {
                CustomBasicList <Type> output = new CustomBasicList <Type>()
                {
                    typeof(BeginningColorProcessorClass <EnumColorChoices, PawnPiecesCP <EnumColorChoices>, SorryCardGamePlayerItem, SorryCardGameSaveInfo>),
                    typeof(BeginningColorModel <EnumColorChoices, PawnPiecesCP <EnumColorChoices>, SorryCardGamePlayerItem>)
                };
                return(output);
            });
            OurContainer.RegisterType <StandardPickerSizeClass>();
            return(Task.CompletedTask);
        }
        protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterNonSavedClasses <LifeBoardGameShellViewModel>();
            OurContainer !.RegisterType <BasicGameLoader <LifeBoardGamePlayerItem, LifeBoardGameSaveInfo> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <LifeBoardGamePlayerItem, LifeBoardGameSaveInfo> >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <LifeBoardGamePlayerItem> >(true); //had to be set to true after all.

            OurContainer !.RegisterSingleton <IProportionBoard, BoardProportion>("");                 //here too.
            OurContainer.RegisterSingleton <IProportionImage, CardProportion>();
            OurContainer.RegisterType <BeginningColorProcessorClass <EnumColorChoice, CarPieceCP, LifeBoardGamePlayerItem, LifeBoardGameSaveInfo> >();
            OurContainer.RegisterType <BeginningChooseColorViewModel <EnumColorChoice, CarPieceCP, LifeBoardGamePlayerItem> >(false); //did have to replace though.
            OurContainer.RegisterType <BeginningColorModel <EnumColorChoice, CarPieceCP, LifeBoardGamePlayerItem> >(true);
            //all piece choices should be here.
            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(BeginningChooseColorViewModel <EnumColorChoice, CarPieceCP, LifeBoardGamePlayerItem>),
                ViewType      = typeof(BeginningChooseColorView <CarPieceCP, CarPieceWPF, EnumColorChoice>)
            };

            ViewLocator.ManuelVMList.Add(link);
            MiscDelegates.GetMiscObjectsToReplace = (() =>
            {
                CustomBasicList <Type> output = new CustomBasicList <Type>()
                {
                    typeof(BeginningColorProcessorClass <EnumColorChoice, CarPieceCP, LifeBoardGamePlayerItem, LifeBoardGameSaveInfo>),
                    typeof(BeginningColorModel <EnumColorChoice, CarPieceCP, LifeBoardGamePlayerItem>)
                };
                return(output);
            });
            BeginningColorDimensions.GraphicsHeight = 248;
            BeginningColorDimensions.GraphicsWidth  = 136;
            //anything that needs to be registered will be here.
            return(Task.CompletedTask);
        }
예제 #4
0
        protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterNonSavedClasses <ConnectFourShellViewModel>();
            OurContainer !.RegisterType <BasicGameLoader <ConnectFourPlayerItem, ConnectFourSaveInfo> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <ConnectFourPlayerItem, ConnectFourSaveInfo> >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <ConnectFourPlayerItem> >(true);                                                        //had to be set to true after all.

            OurContainer !.RegisterSingleton <IProportionBoard, StandardProportion>("main");                                                               //here too.
            OurContainer.RegisterType <BeginningColorProcessorClass <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectFourPlayerItem, ConnectFourSaveInfo> >();
            OurContainer.RegisterType <BeginningChooseColorViewModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectFourPlayerItem> >(false); //since this can be used more than once, go ahead and do false.  hopefully won't regret this.
            OurContainer.RegisterType <BeginningColorModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectFourPlayerItem> >(true);            //may need replacements (?)
            //all piece choices should be here.
            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(BeginningChooseColorViewModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectFourPlayerItem>),
                ViewType      = typeof(BeginningChooseColorView <CheckerChoiceCP <EnumColorChoice>, CheckerChooserWPF <EnumColorChoice>, EnumColorChoice>)
            };

            ViewLocator.ManuelVMList.Add(link);
            MiscDelegates.GetMiscObjectsToReplace = (() =>
            {
                CustomBasicList <Type> output = new CustomBasicList <Type>()
                {
                    typeof(BeginningColorProcessorClass <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectFourPlayerItem, ConnectFourSaveInfo>),
                    typeof(BeginningColorModel <EnumColorChoice, CheckerChoiceCP <EnumColorChoice>, ConnectFourPlayerItem>)
                };
                return(output);
            });
            //anything that needs to be registered will be here.
            return(Task.CompletedTask);
        }
        protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterType <BasicGameLoader <YahtzeePlayerItem <D>, YahtzeeSaveInfo <D> > >();

            OurContainer.RegisterType <StandardRollProcesses <D, YahtzeePlayerItem <D> > >();
            RegisterDiceProportions();
            OurContainer.RegisterSingleton <IGenerateDice <int>, D>();
            OurContainer.RegisterType <YahtzeeScoresheetViewModel <D> >(false);
            OurContainer.RegisterType <YahtzeeMainViewModel <D> >(false);
            OurContainer.RegisterType <YahtzeeVMData <D> >();
            OurContainer.RegisterType <BasicYahtzeeGame <D> >();
            OurContainer.RegisterType <YahtzeeSaveInfo <D> >();
            OurContainer.RegisterType <ScoreLogic>();
            OurContainer.RegisterType <YahtzeeGameContainer <D> >();
            OurContainer.RegisterType <ScoreContainer>();
            OurContainer.RegisterType <YahtzeeMove <D> >();
            OurContainer.RegisterType <YahtzeeEndRoundLogic <D> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <YahtzeePlayerItem <D>, YahtzeeSaveInfo <D> > >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <YahtzeePlayerItem <D> > >(true);

            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(YahtzeeMainViewModel <D>),
                ViewType      = typeof(YahtzeeMainView <D>)
                                //ViewModelType = typeof(BeginningChooseColorViewModel<EnumColorChoice, CheckerChoiceCP<EnumColorChoice>, ConnectFourPlayerItem>),
                                //ViewType = typeof(BeginningChooseColorView<CheckerChoiceCP<EnumColorChoice>, CheckerChooserWPF<EnumColorChoice>, EnumColorChoice>)
            };

            ViewLocator.ManuelVMList.Add(link);

            RegisterNonSavedClasses();
            //hopefully this works.
            //i do have hints from board games if needed.
            //i have hints but don't remember from where (?)


            return(Task.CompletedTask);
        }
        protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterNonSavedClasses <PaydayShellViewModel>();
            OurContainer !.RegisterType <BasicGameLoader <PaydayPlayerItem, PaydaySaveInfo> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <PaydayPlayerItem, PaydaySaveInfo> >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <PaydayPlayerItem> >(true);                                                     //had to be set to true after all.

            OurContainer !.RegisterSingleton <IProportionBoard, StandardProportion>("main");                                                       //here too.
            OurContainer.RegisterType <BeginningColorProcessorClass <EnumColorChoice, PawnPiecesCP <EnumColorChoice>, PaydayPlayerItem, PaydaySaveInfo> >();
            OurContainer.RegisterType <BeginningChooseColorViewModel <EnumColorChoice, PawnPiecesCP <EnumColorChoice>, PaydayPlayerItem> >(false); //did have to replace though.
            OurContainer.RegisterType <BeginningColorModel <EnumColorChoice, PawnPiecesCP <EnumColorChoice>, PaydayPlayerItem> >(true);
            //all piece choices should be here.
            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(BeginningChooseColorViewModel <EnumColorChoice, PawnPiecesCP <EnumColorChoice>, PaydayPlayerItem>),
                ViewType      = typeof(BeginningChooseColorView <PawnPiecesCP <EnumColorChoice>, PawnPiecesWPF <EnumColorChoice>, EnumColorChoice>)
            };

            ViewLocator.ManuelVMList.Add(link);
            MiscDelegates.GetMiscObjectsToReplace = (() =>
            {
                CustomBasicList <Type> output = new CustomBasicList <Type>()
                {
                    typeof(BeginningColorProcessorClass <EnumColorChoice, PawnPiecesCP <EnumColorChoice>, PaydayPlayerItem, PaydaySaveInfo>),
                    typeof(BeginningColorModel <EnumColorChoice, PawnPiecesCP <EnumColorChoice>, PaydayPlayerItem>)
                };
                return(output);
            });
            OurContainer.RegisterType <StandardRollProcesses <SimpleDice, PaydayPlayerItem> >();
            OurContainer.RegisterSingleton <IProportionImage, StandardProportion>(StandardDiceWPF.GetDiceTag);
            OurContainer.RegisterSingleton <IGenerateDice <int>, SimpleDice>();
            OurContainer.RegisterSingleton <IProportionImage, CustomProportionWPF>(); //i think



            //anything that needs to be registered will be here.
            return(Task.CompletedTask);
        }
        protected override Task ConfigureAsync()
        {
            OurContainer !.RegisterType <StandardPickerSizeClass>();           //needs to keep no matter what since this is extra for xamarin forms

            OurContainer !.RegisterNonSavedClasses <AggravationShellViewModel>();
            OurContainer !.RegisterType <BasicGameLoader <AggravationPlayerItem, AggravationSaveInfo> >();
            OurContainer.RegisterType <RetrieveSavedPlayers <AggravationPlayerItem, AggravationSaveInfo> >();
            OurContainer.RegisterType <MultiplayerOpeningViewModel <AggravationPlayerItem> >(true);                                                       //had to be set to true after all.

            OurContainer !.RegisterSingleton <IProportionBoard, StandardProportion>("main");                                                              //here too.
            OurContainer.RegisterType <BeginningColorProcessorClass <EnumColorChoice, MarblePiecesCP <EnumColorChoice>, AggravationPlayerItem, AggravationSaveInfo> >();
            OurContainer.RegisterType <BeginningChooseColorViewModel <EnumColorChoice, MarblePiecesCP <EnumColorChoice>, AggravationPlayerItem> >(false); //did have to replace though.
            OurContainer.RegisterType <BeginningColorModel <EnumColorChoice, MarblePiecesCP <EnumColorChoice>, AggravationPlayerItem> >(true);
            //all piece choices should be here.
            ViewModelViewLinker link = new ViewModelViewLinker()
            {
                ViewModelType = typeof(BeginningChooseColorViewModel <EnumColorChoice, MarblePiecesCP <EnumColorChoice>, AggravationPlayerItem>),
                ViewType      = typeof(BeginningChooseColorView <MarblePiecesCP <EnumColorChoice>, MarblePiecesXF <EnumColorChoice>, EnumColorChoice>)
            };

            ViewLocator.ManuelVMList.Add(link);
            MiscDelegates.GetMiscObjectsToReplace = (() =>
            {
                CustomBasicList <Type> output = new CustomBasicList <Type>()
                {
                    typeof(BeginningColorProcessorClass <EnumColorChoice, MarblePiecesCP <EnumColorChoice>, AggravationPlayerItem, AggravationSaveInfo>),
                    typeof(BeginningColorModel <EnumColorChoice, MarblePiecesCP <EnumColorChoice>, AggravationPlayerItem>)
                };
                return(output);
            });
            OurContainer.RegisterSingleton <IProportionImage, StandardProportion>(); //i think
            OurContainer.RegisterType <StandardRollProcesses <SimpleDice, AggravationPlayerItem> >();
            OurContainer.RegisterSingleton <IProportionImage, StandardProportion>(StandardDiceXF.GetDiceTag);
            OurContainer.RegisterSingleton <IGenerateDice <int>, SimpleDice>();
            OurContainer.RegisterType <BoardPosition>(); //to register the gameboard position.
            //anything that needs to be registered will be here.
            return(Task.CompletedTask);
        }