Example #1
0
        public void ActivateContent(Content content)
        {
            // TODO load order
            ActiveContent.Add(content);
            InvalidateCache();

            RefreshContent(content);
        }
Example #2
0
 public void UpdateActiveAdditionalContent(IReadOnlyCollection <Content> contents)
 {
     ActiveContent.Clear();
     ActiveContent.Add(Vanilla);
     foreach (var content in contents)
     {
         ActiveContent.Add(content);
     }
     InvalidateCache();
 }
Example #3
0
        public void LoadVanilla(string gameDir)
        {
            Vanilla              = new Content();
            Vanilla.Name         = "vanilla";
            Vanilla.AbsolutePath = gameDir;

            logger.LogInformation("Loading portraits from vanilla.");
            var reader = new PortraitReader(gameDir);

            Vanilla.PortraitData = reader.Parse();

            // Init
            ActivePortraitData = Vanilla.PortraitData;
            ActiveContent.Add(Vanilla);
            InvalidateCache();
        }