0.466.1.418149

This commit is contained in:
Max 2021-02-22 11:41:55 -06:00
parent 131b1dabf0
commit b0f532f31a
11 changed files with 5818 additions and 5551 deletions

View File

@ -1,5 +1,5 @@
// Auto-generated list of creatable Roblox classes.
// Updated as of 0.465.0.417678
// Updated as of 0.466.1.418149
using System;
@ -2285,6 +2285,7 @@ namespace RobloxFiles
public class Terrain : BasePart
{
public TerrainAcquisitionMethod AcquisitionMethod = TerrainAcquisitionMethod.None;
public byte[] ClusterGridV3 = Array.Empty<byte>();
public bool Decoration;
public byte[] MaterialColors = Convert.FromBase64String("AAAAAAAAan8/P39rf2Y/ilY+j35fi21PZmxvZbDqw8faiVpHOi4kHh4lZlw76JxKc3trhHtagcLgc4RKxr21zq2UlJSM");
@ -2328,8 +2329,10 @@ namespace RobloxFiles
{
public Content AssetId = "";
public byte[] ChildData = Array.Empty<byte>();
public SharedString ChildData2 = SharedString.FromBase64("yuZpQdnvvUBOTYh1jqZ2cA==");
public FormFactor FormFactor = FormFactor.Custom;
public byte[] MeshData = Array.Empty<byte>();
public SharedString MeshData2 = SharedString.FromBase64("yuZpQdnvvUBOTYh1jqZ2cA==");
public RenderFidelity RenderFidelity = RenderFidelity.Precise;
public float SmoothingAngle;
public bool UsePartColor;
@ -2372,7 +2375,7 @@ namespace RobloxFiles
public ModelLevelOfDetail LevelOfDetail = ModelLevelOfDetail.Automatic;
public CFrame ModelInPrimary = new CFrame();
public CFrame ModelMeshCFrame = new CFrame();
public SharedString ModelMeshData;
public SharedString ModelMeshData = SharedString.FromBase64("yuZpQdnvvUBOTYh1jqZ2cA==");
public Vector3 ModelMeshSize = new Vector3();
public BasePart PrimaryPart;
}
@ -2401,7 +2404,7 @@ namespace RobloxFiles
public bool FilteringEnabled;
public float Gravity = 196.2f;
public InterpolationThrottlingMode InterpolationThrottling = InterpolationThrottlingMode.Default;
public MeshPartHeads MeshPartHeads = MeshPartHeads.Default;
public MeshPartHeadsAndAccessories MeshPartHeadsAndAccessories = MeshPartHeadsAndAccessories.Default;
public PhysicsSteppingMethod PhysicsSteppingMethod = PhysicsSteppingMethod.Default;
public bool StreamingEnabled;
public int StreamingMinRadius = 64;
@ -3409,12 +3412,24 @@ namespace RobloxFiles
public float Scale = 1;
}
public class UIStroke : UIComponent
{
public ApplyStrokeMode ApplyStrokeMode = ApplyStrokeMode.Contextual;
public Color3 Color = new Color3();
public bool Enabled = true;
public LineJoinMode LineJoinMode = LineJoinMode.Round;
public float Thickness = 1;
public float Transparency;
}
public class UnvalidatedAssetService : Instance
{
public UnvalidatedAssetService()
{
IsService = true;
}
public string CachedData = "";
}
public class UserInputService : Instance

View File

@ -1,5 +1,5 @@
// Auto-generated list of Roblox enums.
// Updated as of 0.465.0.417678
// Updated as of 0.466.1.418149
namespace RobloxFiles.Enums
{
@ -43,6 +43,12 @@ namespace RobloxFiles.Enums
Core = 1000
}
public enum ApplyStrokeMode
{
Contextual,
Border
}
public enum AspectType
{
FitWithinMaxSize,
@ -661,6 +667,13 @@ namespace RobloxFiles.Enums
High
}
public enum LineJoinMode
{
Round,
Bevel,
Miter
}
public enum Material
{
Plastic = 256,
@ -702,7 +715,7 @@ namespace RobloxFiles.Enums
Water = 2048
}
public enum MeshPartHeads
public enum MeshPartHeadsAndAccessories
{
Default,
Disabled,
@ -965,6 +978,22 @@ namespace RobloxFiles.Enums
Future
}
public enum TerrainAcquisitionMethod
{
None,
Legacy,
Template,
Generate,
Import,
Convert,
EditAddTool,
EditSeaLevelTool,
EditReplaceTool,
RegionFillTool,
RegionPasteTool,
Other
}
public enum TextTruncate
{
None,

5
Plugins/.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"Lua.diagnostics.ignore": [
"CopyToClipboard"
]
}

Binary file not shown.

View File

@ -203,12 +203,12 @@ return
{
Add =
{
formFactorRaw = "Enum:FormFactor";
formFactorRaw = TryDefineEnum("FormFactor");
};
Defaults =
{
formFactorRaw = Enum.FormFactor.Brick;
formFactorRaw = TryGetEnumItem("FormFactor", "Brick");
};
Redirect =
@ -400,7 +400,7 @@ return
Part =
{
Add = { shape = "Enum:PartType" };
Add = { shape = TryDefineEnum("PartType") };
Redirect = { Shape = "shape" };
};
@ -421,9 +421,14 @@ return
Add =
{
AssetId = "Content";
ChildData = "BinaryString";
ChildData2 = "SharedString";
MeshData = "BinaryString";
FormFactor = "Enum:FormFactor";
MeshData2 = "SharedString";
FormFactor = TryDefineEnum("FormFactor");
};
Defaults = { FormFactor = Enum.FormFactor.Custom };
@ -560,6 +565,7 @@ return
{
Add =
{
AcquisitionMethod = TryDefineEnum("TerrainAcquisitionMethod");
ClusterGridV3 = "BinaryString";
PhysicsGrid = "BinaryString";
SmoothGrid = "BinaryString";
@ -570,6 +576,7 @@ return
Decoration = false;
SmoothGrid = "AQU=";
PhysicsGrid = "AgMAAAAAAAAAAAAAAAA=";
AcquisitionMethod = TryGetEnumItem("TerrainAcquisitionMethod", "None");
MaterialColors = "AAAAAAAAan8/P39rf2Y/ilY+j35fi21PZmxvZbDqw8faiVpHOi4kHh4lZlw76JxKc3trhHtagcLgc4RKxr21zq2UlJSM";
};
};
@ -614,9 +621,14 @@ return
TrussPart =
{
Add = { style = "Enum:Style" };
Add = { style = TryDefineEnum("Style") };
Redirect = { Style = "style" };
};
UnvalidatedAssetService =
{
Add = { CachedData = "string" };
};
ViewportFrame =
{

View File

@ -1,5 +1,5 @@
local Selection = game:GetService("Selection")
local HttpService = game:GetService("HttpService")
local ServerStorage = game:GetService("ServerStorage")
local StarterPlayer = game:GetService("StarterPlayer")
local StudioService = game:GetService("StudioService")
@ -77,6 +77,8 @@ local function exportStream(label)
export.Source = results
export.Name = label
export.Parent = workspace
Selection:Add{export}
end
if isCoreScript then
@ -312,11 +314,18 @@ local function generateClasses()
end)
elseif not classTags.NotCreatable then
pcall(function ()
local dumpFolder = game:FindFirstChild("DumpFolder")
class.Object = Instance.new(className)
if game:FindFirstChild("DumpFolder") then
if dumpFolder then
local old = dumpFolder:FindFirstChildOfClass(className)
if old then
old:Destroy()
end
class.Object.Name = className
class.Object.Parent = game.DumpFolder
class.Object.Parent = dumpFolder
end
end)
end
@ -549,6 +558,9 @@ local function generateClasses()
elseif stringTypes[typeName] then
value = ""
gotValue = true
elseif typeName == "SharedString" then
value = "yuZpQdnvvUBOTYh1jqZ2cA=="
gotValue = true
elseif category == "DataType" then
local DataType = env[typeName]

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

View File

@ -8,10 +8,20 @@ namespace RobloxFiles.Utility
internal class ImplicitMember
{
private const BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.IgnoreCase;
private readonly object member;
private ImplicitMember(FieldInfo field) { member = field; }
private ImplicitMember(PropertyInfo prop) { member = prop; }
private readonly object member;
private readonly string inputName;
private ImplicitMember(FieldInfo field, string name)
{
member = field;
inputName = name;
}
private ImplicitMember(PropertyInfo prop, string name)
{
member = prop;
inputName = name;
}
public static ImplicitMember Get(Type type, string name)
{
@ -21,7 +31,7 @@ namespace RobloxFiles.Utility
.FirstOrDefault();
if (field != null)
return new ImplicitMember(field);
return new ImplicitMember(field, name);
var prop = type
.GetProperties(flags)
@ -29,7 +39,7 @@ namespace RobloxFiles.Utility
.FirstOrDefault();
if (prop != null)
return new ImplicitMember(prop);
return new ImplicitMember(prop, name);
return null;
}
@ -38,35 +48,54 @@ namespace RobloxFiles.Utility
{
get
{
Type result = null;
if (member is FieldInfo field)
result = field.FieldType;
else if (member is PropertyInfo prop)
result = prop.PropertyType;
return result;
switch (member)
{
case PropertyInfo prop: return prop.PropertyType;
case FieldInfo field: return field.FieldType;
default: return null;
}
}
}
public object GetValue(object obj)
{
if (member is FieldInfo field)
return field.GetValue(obj);
else if (member is PropertyInfo prop)
return prop.GetValue(obj);
return null;
object result = null;
switch (member)
{
case FieldInfo field:
{
result = field.GetValue(obj);
break;
}
case PropertyInfo prop:
{
result = prop.GetValue(obj);
break;
}
}
return result;
}
public void SetValue(object obj, object value)
{
if (member is FieldInfo field)
field.SetValue(obj, value);
else if (member is PropertyInfo prop)
prop.SetValue(obj, value);
RobloxFile.LogError("Unknown field in ImplicitMember.SetValue");
switch (member)
{
case FieldInfo field:
{
field.SetValue(obj, value);
return;
}
case PropertyInfo prop:
{
prop.SetValue(obj, value);
return;
}
}
RobloxFile.LogError($"Unknown field '{inputName}' in ImplicitMember.SetValue");
}
}
}