Added serialization support for PackageLinks.

This commit is contained in:
CloneTrooper1019 2019-10-01 13:47:56 -05:00
parent 01775f9691
commit 5981bd9c30
4 changed files with 58 additions and 0 deletions

View File

@ -2152,6 +2152,28 @@ namespace RobloxFiles
public bool TerrainWeldsFixed = true;
}
public class PackageLink : Instance
{
public bool AutoUpdate = false;
public long OriginalHash = 0;
public Content PackageIdSerialize = "";
public string SymbolicLink = "";
public long VersionId
{
get { return VersionIdSerialize; }
set { VersionIdSerialize = value; }
}
public long VersionIdSerialize = 0;
public long VersionNumber
{
get { return VersionIdSerialize; }
set { VersionIdSerialize = value; }
}
}
public class PackageService : Instance
{
public PackageService()

Binary file not shown.

View File

@ -353,6 +353,10 @@ local function generateClasses()
end
end
if class.Name == "PackageLink" then
registerClass = true
end
if registerClass then
local objectType

View File

@ -385,6 +385,38 @@ return
Remove = {"SelectedTheme"}
};
PackageLink =
{
Add =
{
VersionId = "int64";
OriginalHash = "int64";
SymbolicLink = "string";
VersionIdSerialize = "int64";
PackageIdSerialize = "Content";
};
Defaults =
{
AutoUpdate = false;
OriginalHash = 0;
SymbolicLink = "";
VersionIdSerialize = 0;
PackageIdSerialize = "";
};
Redirect =
{
PackageId = "PackageIdSerialize";
VersionId = "VersionIdSerialize";
VersionNumber = "VersionIdSerialize";
};
};
Part =
{
Add = { shape = "Enum:PartType" };