public static ExtSrel FindRelation(ExtSDesc cache, ExtSDesc src, ExtSDesc dst) { uint sinst = src.GetRelationInstance(dst); SimPe.PackedFiles.Wrapper.ExtSrel srel = cache.GetCachedRelation(sinst); if (srel == null) { SimPe.Interfaces.Files.IPackedFileDescriptor spfd = cache.Package.FindFile(Data.MetaData.RELATION_FILE, 0, cache.FileDescriptor.Group, sinst); if (spfd != null) { srel = new SimPe.PackedFiles.Wrapper.ExtSrel(); srel.ProcessData(spfd, cache.Package); } } return(srel); }