diff --git a/DataTypes/Vector3.cs b/DataTypes/Vector3.cs index 7504937..43bdb93 100644 --- a/DataTypes/Vector3.cs +++ b/DataTypes/Vector3.cs @@ -110,8 +110,6 @@ namespace RobloxFiles.DataTypes public static Vector3 Up => new Vector3(0, 1, 0); public static Vector3 Back => new Vector3(0, 0, 1); - - public float Dot(Vector3 other) { float dotX = X * other.X; diff --git a/Generated/Classes.cs b/Generated/Classes.cs index 5accf4c..1ef2f17 100644 --- a/Generated/Classes.cs +++ b/Generated/Classes.cs @@ -1,5 +1,5 @@ // Auto-generated list of creatable Roblox classes. -// Updated as of 0.410.1.361262 +// Updated as of 0.413.1.370526 using System; @@ -312,6 +312,14 @@ namespace RobloxFiles public float TurnP = 3000; } + public class BrowserService : Instance + { + public BrowserService() + { + IsService = true; + } + } + public abstract class CacheableContentProvider : Instance { public CacheableContentProvider() @@ -1801,7 +1809,9 @@ namespace RobloxFiles public abstract class LuaSourceContainer : Instance { + public Content LinkedSource = ""; public string ScriptGuid = ""; + public ProtectedString Source = ""; } public abstract class BaseScript : LuaSourceContainer @@ -1812,7 +1822,6 @@ namespace RobloxFiles public class Script : BaseScript { - public ProtectedString Source = ""; } public class LocalScript : Script @@ -1821,8 +1830,6 @@ namespace RobloxFiles public class ModuleScript : LuaSourceContainer { - public Content LinkedSource = ""; - public ProtectedString Source = ""; } public class LuaWebService : Instance @@ -2169,10 +2176,8 @@ namespace RobloxFiles { public bool AutoUpdate = false; public long OriginalHash = 0; - public Content PackageId => PackageIdSerialize; public Content PackageIdSerialize = ""; public string SymbolicLink = ""; - public long VersionId => VersionIdSerialize; public long VersionIdSerialize = 0; public long VersionNumber @@ -2246,6 +2251,17 @@ namespace RobloxFiles } } + public class PlayerEmulatorService : Instance + { + public PlayerEmulatorService() + { + IsService = true; + } + + public bool PlayerEmulationEnabled = false; // [Load-only] + public string StudioEmulatedCountryRegionCode = ""; // [Load-only] + } + public class Players : Instance { public Players() @@ -2261,9 +2277,9 @@ namespace RobloxFiles public class PluginAction : Instance { - public bool Checked = true; // [Load-only] + public bool Checked = false; // [Load-only] public string DefaultShortcut = ""; // [Load-only] - public bool Enabled = true; // [Load-only] + public bool Enabled = false; // [Load-only] } public class PluginGuiService : Instance @@ -2973,6 +2989,14 @@ namespace RobloxFiles public int MinTextSize = 1; } + public class UIGradient : UIComponent + { + public ColorSequence Color = new ColorSequence(new Color3(1, 1, 1)); + public Vector2 Offset = new Vector2(); + public float Rotation = 0; + public NumberSequence Transparency = new NumberSequence(0); + } + public abstract class UILayout : UIComponent { } diff --git a/Generated/Enums.cs b/Generated/Enums.cs index 52bbfb2..e62c0d4 100644 --- a/Generated/Enums.cs +++ b/Generated/Enums.cs @@ -1,5 +1,5 @@ // Auto-generated list of Roblox enums. -// Updated as of 0.409.2.359720 +// Updated as of 0.413.1.370526 namespace RobloxFiles.Enums { diff --git a/Plugins/.vscode/tasks.json b/Plugins/.vscode/tasks.json new file mode 100644 index 0000000..f19b956 --- /dev/null +++ b/Plugins/.vscode/tasks.json @@ -0,0 +1,18 @@ +{ + "version": "2.0.0", + + "tasks": + [ + { + "type": "shell", + "label": "Build Plugin", + "command": "rojo build --output GenerateApiDump.rbxm", + + "group": + { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/Plugins/GenerateApiDump.rbxm b/Plugins/GenerateApiDump.rbxm index 21ae51c..03e01e8 100644 Binary files a/Plugins/GenerateApiDump.rbxm and b/Plugins/GenerateApiDump.rbxm differ diff --git a/Plugins/GenerateApiDump/PropertyPatches.lua b/Plugins/GenerateApiDump/PropertyPatches.lua index a3785d0..dae792d 100644 --- a/Plugins/GenerateApiDump/PropertyPatches.lua +++ b/Plugins/GenerateApiDump/PropertyPatches.lua @@ -1,7 +1,7 @@ local function UseColor3(propName) return { - Get = "BrickColor.FromColor3(" .. propName .. ')'; + Get = string.format("BrickColor.FromColor3(%s)", propName); Set = propName .. " = value.Color"; } end @@ -347,11 +347,31 @@ return DevelopmentLanguage = "SourceLocaleId"; } }; + + LocalScript = + { + Remove = + { + "LinkedSource", + "Source" + } + }; LuaSourceContainer = { - Add = { ScriptGuid = "string" }; - Defaults = { ScriptGuid = "" }; + Add = + { + LinkedSource = "Content"; + ScriptGuid = "string"; + Source = "ProtectedString"; + }; + + Defaults = + { + LinkedSource = ""; + ScriptGuid = ""; + Source = ""; + }; }; ManualSurfaceJointInstance = @@ -379,6 +399,15 @@ return Add = { ModelInPrimary = "CFrame" }; Defaults = { ModelInPrimary = CFrame.new() }; }; + + ModuleScript = + { + Remove = + { + "LinkedSource", + "Source" + } + }; NotificationService = { @@ -389,9 +418,6 @@ return { Add = { - VersionId = "int64"; - PackageId = "Content"; - OriginalHash = "int64"; SymbolicLink = "string"; @@ -412,9 +438,6 @@ return Redirect = { - PackageId = { Get = "PackageIdSerialize" }; - VersionId = { Get = "VersionIdSerialize" }; - VersionNumber = "VersionIdSerialize"; }; }; @@ -508,6 +531,15 @@ return { Defaults = { LoadStringEnabled = false } }; + + Script = + { + Remove = + { + "LinkedSource", + "Source" + } + }; Smoke = { diff --git a/Plugins/GenerateApiDump/ApiPlugin.server.lua b/Plugins/GenerateApiDump/init.server.lua similarity index 98% rename from Plugins/GenerateApiDump/ApiPlugin.server.lua rename to Plugins/GenerateApiDump/init.server.lua index e0e1fe1..279be46 100644 --- a/Plugins/GenerateApiDump/ApiPlugin.server.lua +++ b/Plugins/GenerateApiDump/init.server.lua @@ -9,7 +9,7 @@ local stackLevel = 0 local singletons = { - Terrain = workspace:WaitForChild("Terrain"); + Terrain = workspace:WaitForChild("Terrain", 1000); StarterPlayerScripts = StarterPlayer:WaitForChild("StarterPlayerScripts"); StarterCharacterScripts = StarterPlayer:WaitForChild("StarterCharacterScripts"); } @@ -175,7 +175,7 @@ end -- Formatting --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -local formatting = require(script.Parent.Formatting) +local formatting = require(script.Formatting) local formatLinks = { @@ -207,7 +207,7 @@ end -- Property Patches --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -local patches = require(script.Parent.PropertyPatches) +local patches = require(script.PropertyPatches) local patchIndex = {} function patchIndex:__index(key) diff --git a/Plugins/place.project.json b/Plugins/place.project.json deleted file mode 100644 index 7f11180..0000000 --- a/Plugins/place.project.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "GenerateApiDump", - - "tree": - { - "$className": "DataModel", - - "ReplicatedStorage": - { - "$className": "ReplicatedStorage", - - "GenerateApiDump": - { - "$path": "GenerateApiDump" - } - } - } -} \ No newline at end of file diff --git a/RobloxFileFormat.dll b/RobloxFileFormat.dll index 3713341..6adf39b 100644 Binary files a/RobloxFileFormat.dll and b/RobloxFileFormat.dll differ diff --git a/Tree/Instance.cs b/Tree/Instance.cs index d22f398..3a9fa4a 100644 --- a/Tree/Instance.cs +++ b/Tree/Instance.cs @@ -29,7 +29,7 @@ namespace RobloxFiles public IReadOnlyDictionary Properties => props; /// The raw list of children for this Instance. - internal List Children = new List(); + internal HashSet Children = new HashSet(); /// The raw value of the Instance's parent. private Instance RawParent; @@ -445,14 +445,14 @@ namespace RobloxFiles /// /// Returns a string describing the index traversal of this Instance, starting from its root ancestor. /// - 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; }