System.Collections.IEnumerator IContentPackProvider.GenerateContentPackAsync(GetContentPackAsyncArgs args)
        {
            ContentPack.Copy(contentPack, args.output);

            foreach (var loadInfo in args.peerLoadInfos)
            {
                foreach (var survivorDef in loadInfo.previousContentPack.survivorDefs)
                {
                    if (!cachedFamilies.TryGetValue(survivorDef, out var families))
                    {
                        cachedFamilies[survivorDef] = families = ExtendSurvivor(survivorDef);
                    }

                    if (families.Length == 0)
                    {
                        continue;
                    }

                    args.output.skillFamilies.Add(families);
                }
            }

            args.ReportProgress(1);
            yield break;
        }
Пример #2
0
        public IEnumerator GenerateContentPackAsync(GetContentPackAsyncArgs args)
        {
            ContentPack.Copy(ContentPack, args.output);

            args.ReportProgress(1);
            yield break;
        }
Пример #3
0
        public IEnumerator GenerateContentPackAsync(GetContentPackAsyncArgs args)
        {
            Artifact                           = ScriptableObject.CreateInstance <ArtifactDef>();
            Artifact.nameToken                 = "Artifact of Options";
            Artifact.descriptionToken          = "Regular chests are replaced with Multishop Terminals.";
            Artifact.smallIconDeselectedSprite = DisabledTexture;
            Artifact.smallIconSelectedSprite   = EnabledTexture;

            args.output.artifactDefs.Add(new[] { Artifact });
            args.ReportProgress(1f);
            yield break;
        }
Пример #4
0
 public System.Collections.IEnumerator GenerateContentPackAsync(GetContentPackAsyncArgs args)
 {
     ContentPack.Copy(this.contentPack, args.output);
     args.ReportProgress(1f);
     yield break;
 }