// // ImportTableEntry.cs - represents an entry in the import table of an Unreal Engine package file // // Author: // Michael Becker // // Copyright (c) 20112020 Mike Becker's Software // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . using System; using System.Text; namespace UniversalEditor.ObjectModels.UnrealEngine { /// /// Represents an entry in the import table of an Unreal Engine package file. /// public class ImportTableEntry : ICloneable { public class ImportTableEntryCollection : System.Collections.ObjectModel.Collection { } public object Clone() { ImportTableEntry clone = new ImportTableEntry(); return clone; } /// /// Package file in which the class of the object is defined /// public NameTableEntry PackageName { get; set; } /// /// Class of the object, i.e. "Texture", "Palette", "Package", etc. /// public NameTableEntry ClassName { get; set; } /// /// Reference where the object resides /// public ObjectReference Package { get; set; } /// /// The name of the object /// public NameTableEntry ObjectName { get; set; } public override string ToString() { StringBuilder sb = new StringBuilder(); if (PackageName != null) { sb.Append(PackageName.ToString(false)); sb.Append("."); } if (ObjectName == null) { sb.Append("(invalid name)"); } else { sb.Append(ObjectName.ToString(false)); } return sb.ToString(); } } }