Пример #1
0
        internal ManagedReadOnlyContentPack(R2APISerializableContentPack scp, bool autoCreateIContentPackProvider, Assembly assemblyThatCreatedContentPack)
        {
            _contentPack            = scp.GetOrCreateContentPack();
            _contentPack.identifier = scp.name;
            ContentPack             = new ReadOnlyContentPack(_contentPack);

            TiedAssembly = assemblyThatCreatedContentPack;

            if (autoCreateIContentPackProvider)
            {
                HasAutoCreatedIContentPackProvider = true;
                contentPackProvider = new R2APIGenericContentPack(_contentPack);
            }
            else
            {
                HasAutoCreatedIContentPackProvider = false;
                contentPackProvider = null;
            }
        }
Пример #2
0
 internal ManagedSerializableContentPack(R2APISerializableContentPack serializableContentPack, bool autoCreateIContentPackProvider, Assembly assemblyThatCreatedContentPack)
 {
     this.serializableContentPack   = serializableContentPack;
     AutoCreateIContentPackProvider = autoCreateIContentPackProvider;
     AssemblyThatCreatedContentPack = assemblyThatCreatedContentPack;
 }