Inheritance: OEIShared.IO.ERFResourceEntry
示例#1
0
        /// <summary>
        /// Populate contents of the repository from the ERF.
        /// </summary>
        public override void PopulateRepository()
        {
            OEIShared.IO.ERFResourceEntry ResEntry;
            var ResourceCollection = base.Resources;

            //
            // Clear all entries in the resource collection, walk each resource in the ERF file,
            // and instantiate and add a corresponding ERFResourceEntry for each ERF resource.
            //

            ResourceCollection.Clear();

            foreach (object xResource in ErfFile.Resources)
            {
                OEIShared.IO.ERF.ERFResource Resource = (OEIShared.IO.ERF.ERFResource)xResource;

                ResEntry = new ALFAERFResourceEntry(Resource.ResRef, Resource.ResourceType, this);
                ResourceCollection.Add(ResEntry);
            }
        }
        /// <summary>
        /// Populate contents of the repository from the ERF.
        /// </summary>
        public override void PopulateRepository()
        {
            OEIShared.IO.ERFResourceEntry ResEntry;
            var ResourceCollection = base.Resources;

            //
            // Clear all entries in the resource collection, walk each resource in the ERF file,
            // and instantiate and add a corresponding ERFResourceEntry for each ERF resource.
            //

            ResourceCollection.Clear();

            foreach (object xResource in ErfFile.Resources)
            {
                OEIShared.IO.ERF.ERFResource Resource = (OEIShared.IO.ERF.ERFResource)xResource;

                ResEntry = new ALFAERFResourceEntry(Resource.ResRef, Resource.ResourceType, this);
                ResourceCollection.Add(ResEntry);
            }
        }