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... }
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(); }
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(); }
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(); }
//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(); }
//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); }
public static void OnPlayerChanged(Action <Foyer, PlayerController> orig, Foyer self, PlayerController player) { ResetCustomCharacters(); orig(self, player); }
public static void OnPlayerChanged(Action <Foyer, PlayerController> orig, Foyer self, PlayerController player) { ResetInfiniteGuns(); orig(self, player); }
public void Add(Foyer foyer) { _tempListFoyer.Add(foyer); }