0.413.1.370526

This commit is contained in:
CloneTrooper1019
2019-12-22 21:23:06 -06:00
parent 66bdae9387
commit 92c6f2d96e
10 changed files with 98 additions and 44 deletions

View File

@ -29,7 +29,7 @@ namespace RobloxFiles
public IReadOnlyDictionary<string, Property> Properties => props;
/// <summary>The raw list of children for this Instance.</summary>
internal List<Instance> Children = new List<Instance>();
internal HashSet<Instance> Children = new HashSet<Instance>();
/// <summary>The raw value of the Instance's parent.</summary>
private Instance RawParent;
@ -445,14 +445,14 @@ namespace RobloxFiles
/// <summary>
/// Returns a string describing the index traversal of this Instance, starting from its root ancestor.
/// </summary>
public string GetFullName()
public string GetFullName(string separator = ".")
{
string fullName = Name;
Instance at = Parent;
while (at != null)
{
fullName = at.Name + '.' + fullName;
fullName = at.Name + separator + fullName;
at = at.Parent;
}