public new void PopulateCompendium(ICompendium compendium)
        {
            // Populate the compendium with the original content data mixed in with the modded data
            // The mix will be performed by GetContentItems
            orig_PopulateCompendium(compendium);

            // Handle the endings and maps separately, since there is no built-in support for custom endings yet
            var modManager       = Registry.Retrieve <ModManager>();
            var moddedCompendium = (Compendium)compendium;

            moddedCompendium.UpdateEndings(modManager.GetContentForCategory("endings"));
            moddedCompendium.UpdateMaps(modManager.GetContentForCategory("maps"));
        }
 private extern void orig_PopulateCompendium(ICompendium compendium);
 public TypeRegistry(ICompendium compendium, string culture, ContentImportLog log,
                     Dictionary <string, EntityTypeDataLoader> loaders, List <Type> types) : base(compendium, culture, log)
 {
     Loaders = loaders;
     Types   = types;
 }
 public RecipeConductor(ICompendium c, AspectsInContext a, IDice d, Character character) : base(c, a, d,
                                                                                                character)
 {
 }
 public ModIndexing(ICompendium compendium, string culture, ContentImportLog log,
                    List <DataFileLoader> content, List <DataFileLoader> loc) : base(compendium, culture, log)
 {
     Content = content;
     Loc     = loc;
 }
 public Post(ICompendium compendium, string culture, ContentImportLog log, List <DataFileLoader> content,
             List <DataFileLoader> loc) : base(compendium, culture, log, content, loc)
 {
 }
 public CompendiumEvent(ICompendium compendium, string culture, ContentImportLog log)
 {
     Compendium = compendium;
     Culture    = culture;
     Log        = log;
 }
 public Begin(ICompendium compendium, string culture, ContentImportLog log) : base(compendium, culture, log)
 {
 }
 public Post(ICompendium compendium, string culture, ContentImportLog log,
             Dictionary <string, EntityTypeDataLoader> loaders, List <Type> types) : base(compendium, culture, log,
                                                                                          loaders, types)
 {
 }
Exemple #10
0
 protected override void OnPostImportForSpecificEntity(ContentImportLog log, ICompendium populatedCompendium)
 {
 }
Exemple #11
0
 private static void Postfix(ICompendium compendiumToPopulate, string forCultureId, ContentImportLog ____log)
 {
     GreatWorkAPI.Events.FireEvent(new CompendiumEvent.End(compendiumToPopulate, forCultureId, ____log));
 }
Exemple #12
0
 private static bool Prefix(ICompendium compendiumToPopulate, string forCultureId, ContentImportLog ____log)
 {
     GreatWorkAPI.Events.FireEvent(new CompendiumEvent.Begin(compendiumToPopulate, forCultureId, ____log));
     return(true);
 }
 public SituationController(ICompendium co, Character ch) : base(co, ch)
 {
 }