using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace UniversalEditor.ObjectModels.UnrealEngine { public class ImportTableEntry : ICloneable { public class ImportTableEntryCollection : System.Collections.ObjectModel.Collection { } public object Clone() { ImportTableEntry clone = new ImportTableEntry(); return clone; } private NameTableEntry mvarPackageName = null; /// /// Package file in which the class of the object is defined /// public NameTableEntry PackageName { get { return mvarPackageName; } set { mvarPackageName = value; } } private NameTableEntry mvarClassName = null; /// /// Class of the object, i.e. "Texture", "Palette", "Package", etc. /// public NameTableEntry ClassName { get { return mvarClassName; } set { mvarClassName = value; } } private ObjectReference mvarPackage = null; /// /// Reference where the object resides /// public ObjectReference Package { get { return mvarPackage; } set { mvarPackage = value; } } private NameTableEntry mvarObjectName = null; /// /// The name of the object /// public NameTableEntry ObjectName { get { return mvarObjectName; } set { mvarObjectName = value; } } public override string ToString() { StringBuilder sb = new StringBuilder(); if (mvarPackageName != null) { sb.Append(mvarPackageName.ToString(false)); sb.Append("."); } if (mvarObjectName == null) { sb.Append("(invalid name)"); } else { sb.Append(mvarObjectName.ToString(false)); } if (mvarClassName != null) { sb.Append(" ("); sb.Append(mvarClassName.ToString(false)); sb.Append(")"); } return sb.ToString(); } } }