Пример #1
0
        public void addImport(UDKFile.ImportEntry importEntry)
        {
            if (importEntry.udkRef != this)
            {
                throw new Exception("you cannot add a new import entry from another udk file, it has invalid references!");
            }

            Imports.Add(importEntry);
            ImportCount = Imports.Count;
        }
Пример #2
0
 private void importImport(UDKFile importudk, int n, int link)
 {
     UDKFile.ImportEntry imp = importudk.Imports[n];
     UDKFile.ImportEntry nimp = new UDKFile.ImportEntry(udk, imp.header);
     nimp.idxLink = link;
     nimp.idxClassName = udk.FindNameOrAdd(importudk.getName(imp.idxClassName));
     nimp.idxObjectName = udk.FindNameOrAdd(importudk.getName(imp.idxObjectName));
     nimp.idxPackageFile = udk.FindNameOrAdd(importudk.getName(imp.idxPackageFile));
     udk.addImport(nimp);
 }