Light maintenance
This commit is contained in:
@ -60,8 +60,8 @@ namespace RobloxFiles
|
||||
/// <summary>Indicates whether this Instance has been destroyed.</summary>
|
||||
public bool Destroyed { get; internal set; }
|
||||
|
||||
/// <summary>A list of CollectionService tags assigned to this Instance.</summary>
|
||||
public List<string> Tags { get; } = new List<string>();
|
||||
/// <summary>A hashset of CollectionService tags assigned to this Instance.</summary>
|
||||
public HashSet<string> Tags { get; } = new HashSet<string>();
|
||||
|
||||
/// <summary>The attributes defined for this Instance.</summary>
|
||||
public Attributes Attributes { get; private set; }
|
||||
@ -100,7 +100,7 @@ namespace RobloxFiles
|
||||
{
|
||||
int length = value.Length;
|
||||
|
||||
List<byte> buffer = new List<byte>();
|
||||
var buffer = new List<byte>();
|
||||
Tags.Clear();
|
||||
|
||||
for (int i = 0; i < length; i++)
|
||||
|
@ -104,10 +104,8 @@ namespace RobloxFiles
|
||||
return;
|
||||
}
|
||||
|
||||
if (RawValue is SharedString)
|
||||
if (RawValue is SharedString sharedString)
|
||||
{
|
||||
var sharedString = CastValue<SharedString>();
|
||||
|
||||
if (sharedString != null)
|
||||
{
|
||||
RawBuffer = sharedString.SharedValue;
|
||||
@ -115,10 +113,8 @@ namespace RobloxFiles
|
||||
}
|
||||
}
|
||||
|
||||
if (RawValue is ProtectedString)
|
||||
if (RawValue is ProtectedString protectedString)
|
||||
{
|
||||
var protectedString = CastValue<ProtectedString>();
|
||||
|
||||
if (protectedString != null)
|
||||
{
|
||||
RawBuffer = protectedString.RawBuffer;
|
||||
@ -222,9 +218,8 @@ namespace RobloxFiles
|
||||
{
|
||||
if (Instance != null)
|
||||
{
|
||||
if (Name == "Tags" && value is byte[])
|
||||
if (Name == "Tags" && value is byte[] data)
|
||||
{
|
||||
byte[] data = value as byte[];
|
||||
Instance.SerializedTags = data;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user