Bringing up to date.

Brought everything up to date with 0.437.0.406875 and made some improvements.
This commit is contained in:
CloneTrooper1019
2020-06-21 20:02:36 -05:00
parent e5f6852e7a
commit 5f4d3e16d2
16 changed files with 12822 additions and 257 deletions

View File

@ -18,7 +18,13 @@ function Format.String(value)
end
function Format.Int(value)
return string.format("%i", value)
if value == 2147483647 then
return "int.MaxValue"
elseif value == -2147483648 then
return "int.MinValue"
else
return string.format("%i", value)
end
end
function Format.Number(value)
@ -238,7 +244,7 @@ function Format.ColorSequence(cs)
local csKey = cs.Keypoints[1]
local fmt = "new ColorSequence(%s)"
local value = Format.Color3(csKey.Value)
local value = tostring(csKey.Value)
return fmt:format(value)
end

View File

@ -8,7 +8,9 @@ end
local GuiTextMixIn =
{
Redirect =
Add = { Transparency = "float" };
Redirect =
{
FontSize =
{
@ -18,41 +20,44 @@ local GuiTextMixIn =
TextColor = UseColor3("TextColor3");
TextWrap = "TextWrapped";
Transparency =
{
Get = "base.Transparency";
Set = "base.Transparency = value;\n" ..
"TextTransparency = value;";
Flag = "new";
}
};
}
return
{
Accoutrement =
{
Remove =
{
"AttachmentUp";
"AttachmentPos";
"AttachmentRight";
"AttachmentForward";
};
};
AnalyticsService =
{
Defaults = { ApiKey = "" }
};
Attachment =
BallSocketConstraint =
{
Remove =
-- Why does this even exist?
Add =
{
"Axis";
"Orientation";
"Position";
"SecondaryAxis";
"WorldAxis";
"WorldCFrame";
"WorldOrientation";
"WorldPosition";
"WorldSecondaryAxis";
MaxFrictionTorque = "float";
MaxFrictionTorqueXml = "float";
};
Defaults =
{
MaxFrictionTorqueXml = 0;
};
Redirect =
{
MaxFrictionTorque = "MaxFrictionTorqueXml";
}
};
BasePart =
@ -83,6 +88,11 @@ return
"Rotation";
}
};
BaseScript =
{
Remove = {"LinkedSource"};
};
BevelMesh =
{
@ -137,10 +147,21 @@ return
Redirect = { cframe = "CFrame" };
};
Bone =
{
Remove = {"Transform"}
};
Camera =
{
Redirect = { CoordinateFrame = "CFrame" }
};
CustomEvent =
{
Add = { PersistedCurrentValue = "float"; };
Defaults = { PersistedCurrentValue = 0; };
};
DataModelMesh =
{
@ -173,7 +194,14 @@ return
DoubleConstrainedValue =
{
Redirect = { ConstrainedValue = "Value" }
Add = { value = "double" };
Defaults = { value = 0.0 };
Redirect =
{
Value = "value";
ConstrainedValue = "value";
}
};
Fire =
@ -210,10 +238,16 @@ return
};
Redirect =
{
{
FormFactor = "formFactorRaw";
};
};
FunctionalTest =
{
Add = { HasMigratedSettingsToTestService = "bool"; };
Defaults = { HasMigratedSettingsToTestService = false; };
};
GuiBase2d =
{
@ -293,7 +327,14 @@ return
IntConstrainedValue =
{
Redirect = { ConstrainedValue = "Value" }
Add = { value = "int64" };
Defaults = { value = 0; };
Redirect =
{
Value = "value";
ConstrainedValue = "value";
}
};
JointInstance =
@ -310,31 +351,9 @@ return
};
Defaults =
{
LegacyOutlines = false;
{
Technology = Enum.Technology.Compatibility;
};
Redirect =
{
Outlines = "LegacyOutlines";
};
Remove =
{
"ClockTime";
};
};
LocalizationService =
{
Remove =
{
"ForcePlayModeGameLocaleId";
"ForcePlayModeRobloxLocaleId";
"RobloxForcePlayModeGameLocaleId";
"RobloxForcePlayModeRobloxLocaleId";
}
};
LocalizationTable =
@ -409,18 +428,10 @@ return
}
};
NotificationService =
{
Remove = {"SelectedTheme"}
};
PackageLink =
{
Add =
{
OriginalHash = "int64";
SymbolicLink = "string";
VersionIdSerialize = "int64";
PackageIdSerialize = "Content";
};
@ -429,17 +440,9 @@ return
{
AutoUpdate = false;
OriginalHash = 0;
SymbolicLink = "";
VersionIdSerialize = 0;
PackageIdSerialize = "";
};
Redirect =
{
VersionNumber = "VersionIdSerialize";
};
};
Part =
@ -503,20 +506,6 @@ return
}
};
RenderingTest =
{
Remove =
{
"Position";
"Orientation";
};
};
ScriptContext =
{
Remove = { "ScriptsDisabled" }
};
SelectionBox =
{
Redirect = { SurfaceColor = UseColor3("SurfaceColor3") }
@ -583,8 +572,8 @@ return
Redirect =
{
EmitterSize = "xmlRead_MinDistance_3";
MaxDistance = "xmlRead_MaxDistance_3";
xmlRead_MinDistance_3 = "EmitterSize";
MinDistance = "EmitterSize";
Pitch = "PlaybackSpeed";
@ -598,13 +587,29 @@ return
StudioData =
{
Add =
{
CommitInflightAuthorId = "int64";
CommitInflightGuid = "string";
CommitInflightPlaceVersion = "int";
};
Defaults =
{
CommitInflightAuthorId = 0;
CommitInflightGuid = "";
CommitInflightPlaceVersion = 0;
SrcPlaceId = 0;
SrcUniverseId = 0;
};
};
SurfaceAppearance =
{
Defaults = { AlphaMode = Enum.AlphaMode.Overlay }
};
TextBox = GuiTextMixIn;
TextLabel = GuiTextMixIn;
TextButton = GuiTextMixIn;
@ -656,17 +661,6 @@ return
};
};
Tool =
{
Remove =
{
"GripForward";
"GripPos";
"GripRight";
"GripUp";
};
};
TriangleMeshPart =
{
Add =
@ -705,8 +699,6 @@ return
CameraCFrame = CFrame.new();
CameraFieldOfView = 70;
};
Remove = {"CurrentCamera"};
};
WeldConstraint =
@ -748,6 +740,7 @@ return
StreamingPauseMode = "Enum:StreamingPauseMode";
TerrainWeldsFixed = "bool";
TemporaryLegacyPhysicsSolverOverrideStreaming = "bool";
};
Defaults =
@ -760,6 +753,7 @@ return
StreamingPauseMode = Enum.StreamingPauseMode.Default;
TerrainWeldsFixed = true;
TemporaryLegacyPhysicsSolverOverrideStreaming = false;
}
}
}

View File

@ -324,6 +324,9 @@ local function generateClasses()
writeLine("using RobloxFiles.Utility;")
writeLine()
writeLine("#pragma warning disable IDE1006 // Suppress warnings about camelCase.")
writeLine()
writeLine("namespace RobloxFiles")
openStack()
@ -401,28 +404,23 @@ local function generateClasses()
writeLine("IsService = true;")
closeStack()
for i, propName in ipairs(propNames) do
local prop = propMap[propName]
local serial = prop.Serialization
if serial.CanLoad then
writeLine()
break
end
end
end
for i, propName in ipairs(propNames) do
local prop = propMap[propName]
local propTags = getTags(prop)
local serial = prop.Serialization
local valueType = prop.ValueType.Name
if serial.CanLoad then
local propTags = getTags(prop)
local redirect = redirectProps[propName]
local couldSave = (serial.CanSave or propTags.Deprecated or redirect)
if serial.CanLoad and couldSave then
if firstLine and classTags.Service then
writeLine()
end
local redirect = redirectProps[propName]
local name = propName
local default = ""
@ -446,14 +444,19 @@ local function generateClasses()
end
if redirect then
local get, set
local get, set, flag
if typeof(redirect) == "string" then
get = redirect
set = redirect .. " = value"
if redirect == "value" then
set = "this." .. set
end
else
get = redirect.Get
set = redirect.Set
get = redirect.Get
set = redirect.Set
flag = redirect.Flag
end
if not firstLine and set then
@ -465,11 +468,30 @@ local function generateClasses()
end
if set then
writeLine("public %s %s", valueType, name)
if flag then
writeLine("public %s %s %s", flag, valueType, name)
else
writeLine("public %s %s", valueType, name)
end
openStack()
writeLine("get { return %s; }", get)
writeLine("get { return %s; }", get)
if set:find('\n') then
writeLine()
writeLine("set")
openStack()
for line in set:gmatch("[^\r\n]+") do
writeLine(line)
end
closeStack()
else
writeLine("set { %s; }", set)
end
closeStack()
else
writeLine("public %s %s => %s;", valueType, name, get)
@ -512,13 +534,8 @@ local function generateClasses()
result = formatFunc(value)
end
if not serial.CanSave and not propTags.Deprecated then
comment = " // [Load-only]"
else
comment = ""
end
default = " = " .. result
comment = ""
end
if propTags.Deprecated then