Ejemplo n.º 1
0
        public void Handle(CreerFoyerCommand command)
        {
            //Traitement du code métier ( vérification de droit ... )
            Foyer foyer = new Foyer(command.NomFoyer);

            _foyerWriteRepository.Add(foyer);
            //Lancement d'event...
        }
Ejemplo n.º 2
0
        private static void PoulateBase()
        {
            Personne chefFoyer1 = new Personne()
            {
                Nom          = "Nom Foyer1",
                Prenom       = "Prénom chef Foyer1",
                TypePersonne = TypePersonne.ChefDeFamille
            };
            Foyer foyer1 = new Foyer(chefFoyer1);

            foyer1.Nom = "Foyer1";
            _tempListFoyer.Add(foyer1);
        }
        public static void ReloadBreachShrinesHook(Action <Foyer> orig, Foyer self1)
        {
            orig(self1);
            bool flag = ReloadBreachShrineHooks.hasInitialized;

            if (!flag)
            {
                {
                    ShrineFactory.PlaceBreachShrines();
                }
                ReloadBreachShrineHooks.hasInitialized = true;
            }
            ShrineFactory.PlaceBreachShrines();
        }
Ejemplo n.º 4
0
        public void ChargerFoyer(Foyer FoyerSelectionner)
        {
            {
                ChargerFoyerQuery chargerFoyerQuerry = new ChargerFoyerQuery(FoyerSelectionner.Id, _utilisateur.Id);
                this.NewTask(() =>
                {
                    ChargerFoyerDTO result =
                        _queryProcessor.Process <ChargerFoyerQuery, ChargerFoyerDTO>(chargerFoyerQuerry);

                    return(result);
                },
                             (result) =>
                {
                    this.FoyerModelUi = new FoyerModelUI(result);
                },
                             (ex) => { throw ex; });
            }
        }
        public static void LateStart1(Action <Foyer> orig, Foyer self1)
        {
            orig(self1);
            bool flag = BunnyModule.hasInitialized;

            if (!flag)
            {
                ArtifactMonger.Add();
                WhisperShrine.Add();
                DeicideShrine.Add();

                {
                    ShrineFactory.PlaceBnyBreachShrines();
                }
                BunnyModule.hasInitialized = true;
            }
            ShrineFactory.PlaceBnyBreachShrines();
        }
Ejemplo n.º 6
0
        public static void LateStart1(Action <Foyer> orig, Foyer self1)
        {
            orig(self1);
            Bugun.ThisIsBasicallyCelsRNGUNButTakenToASillyLevel();
            bool flag = BunnyModule.hasInitialized;

            if (!flag)
            {
                ArtifactMonger.Add();
                WhisperShrine.Add();
                DeicideShrine.Add();
                JammedSquire.Add();
                {
                    ShrineFactory.PlaceBnyBreachShrines();
                }
                BunnyModule.hasInitialized = true;
            }
            //ShrineFactory.PlaceBnyBreachShrines();
        }
Ejemplo n.º 7
0
        //Creates characters late to prevent conflict with custom loadouts and stuff
        public static void LateStart(Action <Foyer> orig, Foyer self)
        {
            orig(self);

            Tools.Print("Late start called");
            if (hasInitialized)
            {
                return;
            }
            Tools.StartTimer("Initializing mod");
            Loader.Init();
            Franseis.Add();
            RandomShrine.Add();
            Tools.StopTimerAndReport("Initializing mod");
            hasInitialized = true;
            Tools.Print($"Custom Character Mod v{version} Initialized", "00FF00", true);
            Tools.Print("Custom Characters Available:", "00FF00", true);
            foreach (var character in CharacterBuilder.storedCharacters)
            {
                Tools.Print("    " + character.Value.First.nameShort, "00FF55", true);
            }
            ShrineFactory.PlaceBreachShrines();
        }
Ejemplo n.º 8
0
        //Triggers FoyerCharacterHandler (called from Foyer.SetUpCharacterCallbacks)
        public static List <FoyerCharacterSelectFlag> FoyerCallbacks(Func <Foyer, List <FoyerCharacterSelectFlag> > orig, Foyer self)
        {
            var sortedByX = orig(self);

            FoyerCharacterHandler.AddCustomCharactersToFoyer(sortedByX);

            return(sortedByX);
        }
Ejemplo n.º 9
0
 public static void OnPlayerChanged(Action <Foyer, PlayerController> orig, Foyer self, PlayerController player)
 {
     ResetCustomCharacters();
     orig(self, player);
 }
Ejemplo n.º 10
0
 public static void OnPlayerChanged(Action <Foyer, PlayerController> orig, Foyer self, PlayerController player)
 {
     ResetInfiniteGuns();
     orig(self, player);
 }
Ejemplo n.º 11
0
 public void Add(Foyer foyer)
 {
     _tempListFoyer.Add(foyer);
 }