0.586.0.5860000

This commit is contained in:
Max 2023-07-21 01:21:48 -05:00
parent ef5612f25e
commit 2aaee093b4
5 changed files with 594 additions and 536 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Auto-generated list of Roblox enums. // Auto-generated list of Roblox enums.
// Updated as of 0.554.1.5540506 // Updated as of 0.586.0.5860000
namespace RobloxFiles.Enums namespace RobloxFiles.Enums
{ {
@ -100,6 +100,12 @@ namespace RobloxFiles.Enums
ScaleWithParentSize ScaleWithParentSize
} }
public enum AudioSubType
{
Music = 1,
SoundEffect
}
public enum AutomaticSize public enum AutomaticSize
{ {
None, None,
@ -108,6 +114,13 @@ namespace RobloxFiles.Enums
XY XY
} }
public enum AvatarUnificationMode
{
Default,
Disabled,
Enabled
}
public enum Axis public enum Axis
{ {
X, X,
@ -250,6 +263,26 @@ namespace RobloxFiles.Enums
Height Height
} }
public enum DragDetectorDragStyle
{
TranslateLine,
TranslatePlane,
TranslatePlaneOrLine,
TranslateLineOrPlane,
TranslateViewPlane,
RotateAxis,
RotateTrackball,
Scriptable,
BestForDevice
}
public enum DragDetectorResponseStyle
{
Geometric,
Physical,
Custom
}
public enum EasingDirection public enum EasingDirection
{ {
In, In,
@ -387,6 +420,12 @@ namespace RobloxFiles.Enums
Heavy = 900 Heavy = 900
} }
public enum ForceLimitMode
{
Magnitude,
PerAxis
}
public enum FormFactor public enum FormFactor
{ {
Symmetric, Symmetric,
@ -473,6 +512,13 @@ namespace RobloxFiles.Enums
LuaStateMachine LuaStateMachine
} }
public enum IKControlConstraintSupport
{
Default,
Disabled,
Enabled
}
public enum IKControlType public enum IKControlType
{ {
Transform, Transform,
@ -767,13 +813,6 @@ namespace RobloxFiles.Enums
Right Right
} }
public enum LevelOfDetailSetting
{
Low,
Medium,
High
}
public enum LineJoinMode public enum LineJoinMode
{ {
Round, Round,
@ -872,11 +911,20 @@ namespace RobloxFiles.Enums
Disabled Disabled
} }
public enum ModelStreamingBehavior
{
Default,
Legacy,
Improved
}
public enum ModelStreamingMode public enum ModelStreamingMode
{ {
Default, Default,
Atomic, Atomic,
Persistent Persistent,
PersistentPerPlayer,
Nonatomic
} }
public enum MouseBehavior public enum MouseBehavior
@ -893,13 +941,6 @@ namespace RobloxFiles.Enums
OccludeAll OccludeAll
} }
public enum NewAnimationRuntimeSetting
{
Default,
Disabled,
Enabled
}
public enum NormalId public enum NormalId
{ {
Right, Right,
@ -920,7 +961,9 @@ namespace RobloxFiles.Enums
{ {
Ball, Ball,
Block, Block,
Cylinder Cylinder,
Wedge,
CornerWedge
} }
public enum ParticleEmitterShape public enum ParticleEmitterShape
@ -1016,6 +1059,13 @@ namespace RobloxFiles.Enums
InnerBox InnerBox
} }
public enum RejectCharacterDeletions
{
Default,
Disabled,
Enabled
}
public enum RenderFidelity public enum RenderFidelity
{ {
Automatic, Automatic,
@ -1088,6 +1138,13 @@ namespace RobloxFiles.Enums
ZYX ZYX
} }
public enum RtlTextSupport
{
Default,
Disabled,
Enabled
}
public enum RunContext public enum RunContext
{ {
Legacy, Legacy,
@ -1147,6 +1204,25 @@ namespace RobloxFiles.Enums
Stop Stop
} }
public enum SensorMode
{
Floor,
Ladder
}
public enum SensorUpdateType
{
OnRead,
Manual
}
public enum ServiceVisibility
{
Always,
Off,
WithChildren
}
public enum SignalBehavior public enum SignalBehavior
{ {
Default, Default,
@ -1192,13 +1268,6 @@ namespace RobloxFiles.Enums
PauseOutsideLoadedArea PauseOutsideLoadedArea
} }
public enum StreamingPauseMode
{
Default,
Disabled,
ClientPhysicsPause
}
public enum Style public enum Style
{ {
AlternatingSupports, AlternatingSupports,
@ -1264,6 +1333,13 @@ namespace RobloxFiles.Enums
Bottom Bottom
} }
public enum TextDirection
{
Auto,
LeftToRight,
RightToLeft
}
public enum TextTruncate public enum TextTruncate
{ {
None, None,
@ -1305,13 +1381,6 @@ namespace RobloxFiles.Enums
False False
} }
public enum UnionsScaleNonuniformly
{
Default,
Disabled,
Enabled
}
public enum VelocityConstraintMode public enum VelocityConstraintMode
{ {
Line, Line,

View File

@ -8,10 +8,8 @@ export type GetSet = string | {
} }
export type Patch = { export type Patch = {
Add: { [string]: string }?,
Redirect: { [string]: GetSet }?, Redirect: { [string]: GetSet }?,
Defaults: { [string]: any }?, Defaults: { [string]: any }?,
Remove: { string }?,
} }
-- strict type reaffirmation? -- strict type reaffirmation?
@ -28,18 +26,6 @@ local function UseColor3(propName: string): GetSet
} }
end end
local function TryDefineEnum(enumName: string): string?
local gotEnum, enum = pcall(function()
return (Enum :: any)[enumName] :: Enum
end)
if gotEnum then
return "Enum:" .. tostring(enum)
end
return nil
end
local function TryGetEnumItem(enumName, itemName): EnumItem? local function TryGetEnumItem(enumName, itemName): EnumItem?
local gotEnum, enum = pcall(function() local gotEnum, enum = pcall(function()
return (Enum :: any)[enumName] :: Enum return (Enum :: any)[enumName] :: Enum
@ -59,8 +45,6 @@ local function TryGetEnumItem(enumName, itemName): EnumItem?
end end
local GuiTextMixIn: Patch = { local GuiTextMixIn: Patch = {
Add = { Transparency = "float" },
Redirect = { Redirect = {
Font = GetSet({ Font = GetSet({
Get = "FontUtility.GetLegacyFont(FontFace)", Get = "FontUtility.GetLegacyFont(FontFace)",
@ -87,20 +71,6 @@ local GuiTextMixIn: Patch = {
local PropertyPatches: { [string]: Patch } = { local PropertyPatches: { [string]: Patch } = {
AnimationRigData = { AnimationRigData = {
Add = {
name = "BinaryString",
label = "BinaryString",
parent = "BinaryString",
weight = "BinaryString",
transform = "BinaryString",
facsControl = "BinaryString",
preTransform = "BinaryString",
postTransform = "BinaryString",
articulatedJoint = "BinaryString",
endEffectorRotationConstraint = "BinaryString",
endEffectorTranslationConstraint = "BinaryString",
},
Defaults = { Defaults = {
name = "AQAAAAEAAAAAAAAA", name = "AQAAAAEAAAAAAAAA",
label = "AQAAAAEAAAAAAAAA", label = "AQAAAAEAAAAAAAAA",
@ -111,33 +81,23 @@ local PropertyPatches: { [string]: Patch } = {
postTransform = "AQAAAAEAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAA=", postTransform = "AQAAAAEAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAA=",
weight = "AQAAAAAAAAA=", weight = "AQAAAAAAAAA=",
facsControl = "AQAAAAAAAAA=", },
articulatedJoint = "AQAAAAAAAAA=", },
endEffectorRotationConstraint = "AQAAAAAAAAA=",
endEffectorTranslationConstraint = "AQAAAAAAAAA=", AudioSearchParams = {
Redirect = {
AudioSubtype = GetSet("AudioSubType"),
}, },
}, },
BallSocketConstraint = { BallSocketConstraint = {
-- Why does this even exist? -- Why does this even exist?
Add = {
MaxFrictionTorqueXml = "float",
MaxFrictionTorque = "float",
},
Redirect = { Redirect = {
MaxFrictionTorque = GetSet("MaxFrictionTorqueXml"), MaxFrictionTorque = GetSet("MaxFrictionTorqueXml"),
}, },
}, },
BasePart = { BasePart = {
Add = {
MaterialVariantSerialized = "string",
MaterialVariant = "string",
Color3uint8 = "Color3uint8",
size = "Vector3",
},
Redirect = { Redirect = {
Position = GetSet({ Position = GetSet({
Get = "CFrame.Position", Get = "CFrame.Position",
@ -157,22 +117,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
}, },
BaseScript = {
Remove = { "LinkedSource" },
},
BevelMesh = {
Add = {
Bevel = "float",
Bevel_Roundness = "float",
Bulge = "float",
},
},
BinaryStringValue = {
Add = { Value = "BinaryString" },
},
BodyColors = { BodyColors = {
Redirect = { Redirect = {
HeadColor = UseColor3("HeadColor3"), HeadColor = UseColor3("HeadColor3"),
@ -196,22 +140,6 @@ local PropertyPatches: { [string]: Patch } = {
Redirect = { CoordinateFrame = GetSet("CFrame") }, Redirect = { CoordinateFrame = GetSet("CFrame") },
}, },
CustomEvent = {
Add = { PersistedCurrentValue = "float" },
},
DataModelMesh = {
Add = {
LODX = TryDefineEnum("LevelOfDetailSetting"),
LODY = TryDefineEnum("LevelOfDetailSetting"),
},
Defaults = {
LODX = TryGetEnumItem("LevelOfDetailSetting", "High"),
LODY = TryGetEnumItem("LevelOfDetailSetting", "High"),
},
},
DataStoreService = { DataStoreService = {
Defaults = { Defaults = {
AutomaticRetry = true, AutomaticRetry = true,
@ -220,8 +148,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
DoubleConstrainedValue = { DoubleConstrainedValue = {
Add = { value = "double" },
Redirect = { Redirect = {
Value = GetSet("value"), Value = GetSet("value"),
ConstrainedValue = GetSet("value"), ConstrainedValue = GetSet("value"),
@ -229,11 +155,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
Fire = { Fire = {
Add = {
heat_xml = "float",
size_xml = "float",
},
Defaults = { Defaults = {
heat_xml = 9, heat_xml = 9,
size_xml = 5, size_xml = 5,
@ -246,15 +167,10 @@ local PropertyPatches: { [string]: Patch } = {
}, },
FloatCurve = { FloatCurve = {
Add = { ValuesAndTimes = "BinaryString" },
Defaults = { ValuesAndTimes = "AAAAAAEAAAAKAAAAAAAAFkUAAAAA" }, Defaults = { ValuesAndTimes = "AAAAAAEAAAAKAAAAAAAAFkUAAAAA" },
}, },
FormFactorPart = { FormFactorPart = {
Add = {
formFactorRaw = TryDefineEnum("FormFactor"),
},
Defaults = { Defaults = {
formFactorRaw = TryGetEnumItem("FormFactor", "Brick"), formFactorRaw = TryGetEnumItem("FormFactor", "Brick"),
}, },
@ -265,7 +181,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
FunctionalTest = { FunctionalTest = {
Add = { HasMigratedSettingsToTestService = "bool" },
Defaults = { HasMigratedSettingsToTestService = false }, Defaults = { HasMigratedSettingsToTestService = false },
}, },
@ -285,24 +200,11 @@ local PropertyPatches: { [string]: Patch } = {
}, },
}, },
HiddenSurfaceRemovalAsset = {
Add = {
HSRData = "BinaryString",
HSRMeshIdData = "BinaryString",
},
},
HttpService = { HttpService = {
Defaults = { HttpEnabled = false }, Defaults = { HttpEnabled = false },
}, },
Humanoid = { Humanoid = {
Add = {
Health_XML = "float",
InternalHeadScale = "float",
InternalBodyScale = "Vector3",
},
Defaults = { Defaults = {
Health_XML = 100, Health_XML = 100,
InternalHeadScale = 1, InternalHeadScale = 1,
@ -312,21 +214,9 @@ local PropertyPatches: { [string]: Patch } = {
Redirect = { Redirect = {
Health = GetSet("Health_XML"), Health = GetSet("Health_XML"),
}, },
Remove = {
"Jump",
"Torso",
"LeftLeg",
"RightLeg",
},
}, },
HumanoidDescription = { HumanoidDescription = {
Add = {
EmotesDataInternal = "string",
EquippedEmotesDataInternal = "string",
},
Defaults = { Defaults = {
AccessoryBlob = "[]", AccessoryBlob = "[]",
EmotesDataInternal = "[]", EmotesDataInternal = "[]",
@ -335,13 +225,10 @@ local PropertyPatches: { [string]: Patch } = {
}, },
InsertService = { InsertService = {
Add = { AllowClientInsertModels = "bool" },
Defaults = { AllowClientInsertModels = false }, Defaults = { AllowClientInsertModels = false },
}, },
IntConstrainedValue = { IntConstrainedValue = {
Add = { value = "int64" },
Redirect = { Redirect = {
Value = GetSet("value"), Value = GetSet("value"),
ConstrainedValue = GetSet("value"), ConstrainedValue = GetSet("value"),
@ -349,17 +236,12 @@ local PropertyPatches: { [string]: Patch } = {
}, },
Lighting = { Lighting = {
Add = {
Technology = TryDefineEnum("Technology"),
},
Defaults = { Defaults = {
Technology = TryGetEnumItem("Technology", "Compatibility"), Technology = TryGetEnumItem("Technology", "Compatibility"),
}, },
}, },
LocalizationTable = { LocalizationTable = {
Add = { Contents = "string" },
Defaults = { Contents = "[]" }, Defaults = { Contents = "[]" },
Redirect = { Redirect = {
@ -367,32 +249,11 @@ local PropertyPatches: { [string]: Patch } = {
}, },
}, },
LocalScript = {
Remove = {
"LinkedSource",
"Source",
},
},
LuaSourceContainer = {
Add = {
LinkedSource = "Content",
ScriptGuid = "string",
Source = "ProtectedString",
},
},
MarkerCurve = { MarkerCurve = {
Add = { ValuesAndTimes = "BinaryString" },
Defaults = { ValuesAndTimes = "AAAAAAEAAAAKAAAAAAAAFkUAAAAA" }, Defaults = { ValuesAndTimes = "AAAAAAEAAAAKAAAAAAAAFkUAAAAA" },
}, },
MaterialService = { MaterialService = {
Add = {
Use2022Materials = "bool",
Use2022MaterialsXml = "bool",
},
Redirect = { Use2022Materials = GetSet("Use2022MaterialsXml") }, Redirect = { Use2022Materials = GetSet("Use2022MaterialsXml") },
Defaults = { Defaults = {
@ -431,47 +292,20 @@ local PropertyPatches: { [string]: Patch } = {
}, },
}, },
MaterialVariant = {
Add = {
TexturePack0 = "Content",
TexturePack1 = "Content",
},
},
MeshPart = { MeshPart = {
Add = { VertexCount = "int" },
Defaults = { VertexCount = 0 }, Defaults = { VertexCount = 0 },
Redirect = { MeshID = GetSet("MeshId") }, Redirect = { MeshID = GetSet("MeshId") },
}, },
Model = { Model = {
Add = { Defaults = { ScaleFactor = 1 },
ModelMeshCFrame = "CFrame",
ModelMeshData = "SharedString",
ModelMeshSize = "Vector3",
NeedsPivotMigration = "bool",
WorldPivotData = "Optional<CFrame>",
},
},
ModuleScript = {
Remove = {
"LinkedSource",
"Source",
},
}, },
PackageLink = { PackageLink = {
Add = {
VersionIdSerialize = "int64",
PackageIdSerialize = "Content",
},
Defaults = { AutoUpdate = false }, Defaults = { AutoUpdate = false },
}, },
Part = { Part = {
Add = { shape = TryDefineEnum("PartType") },
Redirect = { Shape = GetSet("shape") }, Redirect = { Shape = GetSet("shape") },
}, },
@ -485,38 +319,14 @@ local PropertyPatches: { [string]: Patch } = {
}, },
PartOperation = { PartOperation = {
Add = {
AssetId = "Content",
ChildData = "BinaryString",
ChildData2 = "SharedString",
MeshData = "BinaryString",
MeshData2 = "SharedString",
FormFactor = TryDefineEnum("FormFactor"),
},
Defaults = { FormFactor = Enum.FormFactor.Custom }, Defaults = { FormFactor = Enum.FormFactor.Custom },
}, },
PartOperationAsset = {
Add = {
ChildData = "BinaryString",
MeshData = "BinaryString",
},
},
Players = { Players = {
Defaults = { MaxPlayersInternal = 16 }, Defaults = { MaxPlayersInternal = 16 },
}, },
PolicyService = { PolicyService = {
Add = {
IsLuobuServer = TryDefineEnum("TriStateBoolean"),
LuobuWhitelisted = TryDefineEnum("TriStateBoolean"),
},
Defaults = { Defaults = {
IsLuobuServer = TryGetEnumItem("TriStateBoolean", "Unknown"), IsLuobuServer = TryGetEnumItem("TriStateBoolean", "Unknown"),
LuobuWhitelisted = TryGetEnumItem("TriStateBoolean", "Unknown"), LuobuWhitelisted = TryGetEnumItem("TriStateBoolean", "Unknown"),
@ -524,7 +334,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
RotationCurve = { RotationCurve = {
Add = { ValuesAndTimes = "BinaryString" },
Defaults = { ValuesAndTimes = "AAAAAAEAAAAKAAAAAAAAFkUAAAAA" }, Defaults = { ValuesAndTimes = "AAAAAAEAAAAKAAAAAAAAFkUAAAAA" },
}, },
@ -540,27 +349,7 @@ local PropertyPatches: { [string]: Patch } = {
Defaults = { LoadStringEnabled = false }, Defaults = { LoadStringEnabled = false },
}, },
Script = {
Remove = {
"LinkedSource",
"Source",
},
},
ScriptDebugger = {
Add = {
CoreScriptIdentifier = "string",
ScriptGuid = "string",
},
},
Smoke = { Smoke = {
Add = {
size_xml = "float",
opacity_xml = "float",
riseVelocity_xml = "float",
},
Defaults = { Defaults = {
size_xml = 1, size_xml = 1,
opacity_xml = 0.5, opacity_xml = 0.5,
@ -575,12 +364,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
Sound = { Sound = {
Add = {
MaxDistance = "float", -- ?!
xmlRead_MaxDistance_3 = "float",
xmlRead_MinDistance_3 = "float",
},
Defaults = { Defaults = {
xmlRead_MinDistance_3 = 10, xmlRead_MinDistance_3 = 10,
xmlRead_MaxDistance_3 = 10000, xmlRead_MaxDistance_3 = 10000,
@ -600,10 +383,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
StarterPlayer = { StarterPlayer = {
Add = {
LoadCharacterLayeredClothing = "Enum:LoadCharacterLayeredClothing",
},
Defaults = { Defaults = {
GameSettingsAvatar = Enum.GameAvatarType.R15, GameSettingsAvatar = Enum.GameAvatarType.R15,
GameSettingsR15Collision = Enum.R15CollisionType.OuterBox, GameSettingsR15Collision = Enum.R15CollisionType.OuterBox,
@ -617,14 +396,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
}, },
StudioData = {
Add = {
CommitInflightGuid = "string",
CommitInflightAuthorId = "int64",
CommitInflightPlaceVersion = "int",
},
},
SurfaceAppearance = { SurfaceAppearance = {
Defaults = { AlphaMode = Enum.AlphaMode.Overlay }, Defaults = { AlphaMode = Enum.AlphaMode.Overlay },
}, },
@ -634,13 +405,6 @@ local PropertyPatches: { [string]: Patch } = {
TextButton = GuiTextMixIn, TextButton = GuiTextMixIn,
Terrain = { Terrain = {
Add = {
AcquisitionMethod = TryDefineEnum("TerrainAcquisitionMethod"),
ClusterGridV3 = "BinaryString",
PhysicsGrid = "BinaryString",
SmoothGrid = "BinaryString",
},
Defaults = { Defaults = {
Decoration = false, Decoration = false,
SmoothGrid = "AQU=", SmoothGrid = "AQU=",
@ -650,19 +414,7 @@ local PropertyPatches: { [string]: Patch } = {
}, },
}, },
TerrainDetail = {
Add = { TexturePack = "Content" },
},
TerrainRegion = { TerrainRegion = {
Add = {
ExtentsMax = "Vector3int16",
ExtentsMin = "Vector3int16",
GridV3 = "BinaryString",
SmoothGrid = "BinaryString",
},
Defaults = { Defaults = {
ExtentsMax = Vector3int16.new(), ExtentsMax = Vector3int16.new(),
ExtentsMin = Vector3int16.new(), ExtentsMin = Vector3int16.new(),
@ -680,13 +432,6 @@ local PropertyPatches: { [string]: Patch } = {
}, },
TriangleMeshPart = { TriangleMeshPart = {
Add = {
InitialSize = "Vector3",
LODData = "BinaryString",
PhysicsData = "BinaryString",
PhysicalConfigData = "SharedString",
},
Defaults = { Defaults = {
InitialSize = Vector3.new(1, 1, 1), InitialSize = Vector3.new(1, 1, 1),
PhysicalConfigData = "1B2M2Y8AsgTpgAmY7PhCfg==", PhysicalConfigData = "1B2M2Y8AsgTpgAmY7PhCfg==",
@ -694,13 +439,10 @@ local PropertyPatches: { [string]: Patch } = {
}, },
TrussPart = { TrussPart = {
Add = { style = TryDefineEnum("Style") },
Redirect = { Style = GetSet("style") }, Redirect = { Style = GetSet("style") },
}, },
UnvalidatedAssetService = { UnvalidatedAssetService = {
Add = { CachedData = "string" },
Defaults = { Defaults = {
CachedData = HttpService:JSONEncode({ CachedData = HttpService:JSONEncode({
users = {}, users = {},
@ -711,39 +453,19 @@ local PropertyPatches: { [string]: Patch } = {
}, },
UserInputService = { UserInputService = {
Add = { LegacyInputEventsEnabled = "bool" },
Defaults = { LegacyInputEventsEnabled = true }, Defaults = { LegacyInputEventsEnabled = true },
}, },
ViewportFrame = { ViewportFrame = {
Add = {
CameraCFrame = "CFrame",
CameraFieldOfView = "float",
},
Defaults = { Defaults = {
CameraCFrame = CFrame.new(), CameraCFrame = CFrame.identity,
CameraFieldOfView = 70, CameraFieldOfView = 70,
}, },
}, },
WeldConstraint = { WeldConstraint = {
Add = {
Part0Internal = "Class:BasePart",
Part1Internal = "Class:BasePart",
EnabledInternal = "bool",
State = "int",
CFrame0 = "CFrame",
CFrame1 = "CFrame",
},
Defaults = { Defaults = {
CFrame0 = CFrame.new(), CFrame0 = CFrame.identity,
CFrame1 = CFrame.new(),
EnabledInternal = true,
State = 3, State = 3,
Part0 = Instance.new("Part"), Part0 = Instance.new("Part"),
@ -753,29 +475,12 @@ local PropertyPatches: { [string]: Patch } = {
Redirect = { Redirect = {
Part0 = GetSet("Part0Internal"), Part0 = GetSet("Part0Internal"),
Part1 = GetSet("Part1Internal"), Part1 = GetSet("Part1Internal"),
Enabled = GetSet("EnabledInternal"),
}, },
}, },
Workspace = { Workspace = {
Add = {
CollisionGroups = "string",
ExplicitAutoJoints = "bool",
TerrainWeldsFixed = "bool",
StreamingMinRadius = "int",
StreamingTargetRadius = "int",
MeshPartHeads = TryDefineEnum("MeshPartHeads"),
SignalBehavior = TryDefineEnum("SignalBehavior"),
StreamingPauseMode = TryDefineEnum("StreamingPauseMode"),
PhysicsSteppingMethod = TryDefineEnum("PhysicsSteppingMethod"),
MeshPartHeadsAndAccessories = TryDefineEnum("MeshPartHeadsAndAccessories"),
},
Defaults = { Defaults = {
CollisionGroups = "Default^0^1", CollisionGroupData = "AQEABP////8HRGVmYXVsdA==",
TouchesUseCollisionGroups = false, TouchesUseCollisionGroups = false,
ExplicitAutoJoints = true, ExplicitAutoJoints = true,

View File

@ -173,33 +173,6 @@ local function collectProperties(class)
return propMap return propMap
end end
local function createProperty(propName, propType)
local category = "DataType"
local name = propType
if propType:find(":") then
local data = string.split(propType, ":")
category = data[1]
name = data[2]
end
return {
Name = propName,
Serialization = {
CanSave = true,
CanLoad = true,
},
ValueType = {
Category = category,
Name = name,
},
Security = "None",
}
end
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Formatting -- Formatting
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@ -222,6 +195,7 @@ local formatLinks = {
["Color3uint8"] = "Color3", ["Color3uint8"] = "Color3",
["ProtectedString"] = "String", ["ProtectedString"] = "String",
["OptionalCoordinateFrame"] = "Optional<CFrame>",
} }
local function getFormatFunction(valueType: string): FormatFunc local function getFormatFunction(valueType: string): FormatFunc
@ -294,7 +268,7 @@ local function generateClasses()
local env = getfenv() local env = getfenv()
local version = getAsync(baseUrl .. "version.txt") local version = getAsync(baseUrl .. "version.txt")
local apiDump = getAsync(baseUrl .. "API-Dump.json") local apiDump = getAsync(baseUrl .. "Full-API-Dump.json")
apiDump = HttpService:JSONDecode(apiDump) apiDump = HttpService:JSONDecode(apiDump)
local classNames = {} local classNames = {}
@ -306,6 +280,7 @@ local function generateClasses()
FontSize = true, FontSize = true,
FontStyle = true, FontStyle = true,
FontWeight = true, FontWeight = true,
AdPortalType = true,
} }
for _, class in ipairs(apiDump.Classes) do for _, class in ipairs(apiDump.Classes) do
@ -366,6 +341,7 @@ local function generateClasses()
writeLine() writeLine()
writeLine("#pragma warning disable IDE1006 // Naming Styles") writeLine("#pragma warning disable IDE1006 // Naming Styles")
writeLine("#pragma warning disable CS0612 // Type or member is obsolete")
writeLine() writeLine()
writeLine("namespace RobloxFiles") writeLine("namespace RobloxFiles")
@ -430,14 +406,17 @@ local function generateClasses()
local propMap = collectProperties(class) local propMap = collectProperties(class)
local propNames = {} local propNames = {}
--[[
for _, propName in pairs(classPatches.Remove) do for _, propName in pairs(classPatches.Remove) do
propMap[propName] = nil propMap[propName] = nil
end end
]]
for propName in pairs(propMap) do for propName in pairs(propMap) do
table.insert(propNames, propName) table.insert(propNames, propName)
end end
--[[
for propName, propType in pairs(classPatches.Add) do for propName, propType in pairs(classPatches.Add) do
local prop = propMap[propName] local prop = propMap[propName]
@ -450,6 +429,7 @@ local function generateClasses()
table.insert(propNames, propName) table.insert(propNames, propName)
end end
end end
]]
local firstLine = true local firstLine = true
class.PropertyMap = propMap class.PropertyMap = propMap
@ -569,7 +549,11 @@ local function generateClasses()
local default = "" local default = ""
if propName == className then if propName == className then
name = name .. "_" name ..= "_"
end
if name:find(" ") then
name = name:gsub(" ", "_")
end end
if valueType == "int64" then if valueType == "int64" then
@ -578,6 +562,8 @@ local function generateClasses()
valueType = "byte[]" valueType = "byte[]"
elseif valueType == "Font" and category ~= "Enum" then elseif valueType == "Font" and category ~= "Enum" then
valueType = "FontFace" valueType = "FontFace"
elseif valueType == "OptionalCoordinateFrame" then
valueType = "Optional<CFrame>"
end end
local first = name:sub(1, 1) local first = name:sub(1, 1)

Binary file not shown.