ALFA.ALFAERFResourceRepository.PopulateRepository C# (CSharp) Метод

PopulateRepository() публичный Метод

Populate contents of the repository from the ERF.
public PopulateRepository ( ) : void
Результат void
        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);
            }
        }