private void Update(EntityDataBase entity) { if (KingmakerPatchSettings.Cheats.DisableFogOfWar) { return; } this.source_Update(entity); }
public App(string dbPath, ISQLitePlatform sqlitePlatform, int id) { //set database path first, then retrieve main page ChapitreDb = new ChapitreDataBase(sqlitePlatform, dbPath); EntiteDb = new EntityDataBase(sqlitePlatform, dbPath); CoursDb = new CoursDataBase(sqlitePlatform, dbPath); QuestionDb = new QuestionDataBase(sqlitePlatform, dbPath, id); ReponseDb = new ReponseDataBase(sqlitePlatform, dbPath); this.MainPage = new Menu(); //this.MainPage = new TestPage(); //this.MainPage = new Hello(); //this.MainPage = new ListeChapitre_CSharp(); }
static void Postfix(EntityDataBase sourceEntity, UnitEntityData targetUnit, RulebookEvent evt, ref bool __result) { if (__result) { return; } UnitEntityData unit = sourceEntity as UnitEntityData; if (unit == null || unit.IsAlly(targetUnit) || evt != null) { return; } __result = !targetUnit.Ensure <UnitPartSanctuary>().canBeAttackedBy(unit); }
static void Postfix(EntityDataBase __instance, EntityViewBase view) { if (view != null) { return; } var unit_entity_data = __instance as UnitEntityData; if (unit_entity_data == null) { return; } if (unit_entity_data.GetActivePolymorph() != null) { return; } var replace_view = unit_entity_data.Descriptor?.Get <UnitPartViewReplacement>()?.buff?.Blueprint.GetComponent <ReplaceUnitView>(); if (replace_view != null) { Aux.TryReplaceView(unit_entity_data.Descriptor, replace_view.prefab, replace_view.use_master_view); } }
private void source_Update(EntityDataBase entity) { throw new DeadEndException("source_Update"); }