0.514.0.5140398 + Enum XML encoding bugfix

This commit is contained in:
Max 2022-02-18 15:45:42 -06:00
parent 034799a4de
commit cff4b1ad5c
5 changed files with 70 additions and 26 deletions

View File

@ -1,5 +1,5 @@
// Auto-generated list of creatable Roblox classes. // Auto-generated list of creatable Roblox classes.
// Updated as of 0.513.0.5130420 // Updated as of 0.514.0.5140398
using System; using System;
@ -471,6 +471,14 @@ namespace RobloxFiles
} }
} }
public class HSRDataContentProvider : CacheableContentProvider
{
public HSRDataContentProvider()
{
IsService = true;
}
}
public class MeshContentProvider : CacheableContentProvider public class MeshContentProvider : CacheableContentProvider
{ {
public MeshContentProvider() public MeshContentProvider()
@ -1911,13 +1919,13 @@ namespace RobloxFiles
public class HumanoidDescription : Instance public class HumanoidDescription : Instance
{ {
public string AccessoryBlob = ""; public string AccessoryBlob = "[]";
public string BackAccessory = ""; public string BackAccessory = "";
public float BodyTypeScale = 0.3f; public float BodyTypeScale = 0.3f;
public long ClimbAnimation; public long ClimbAnimation;
public float DepthScale = 1; public float DepthScale = 1;
public string EmotesDataInternal = ""; public string EmotesDataInternal = "[]";
public string EquippedEmotesDataInternal = ""; public string EquippedEmotesDataInternal = "[]";
public long Face; public long Face;
public string FaceAccessory = ""; public string FaceAccessory = "";
public long FallAnimation; public long FallAnimation;
@ -2022,8 +2030,6 @@ namespace RobloxFiles
public abstract class ManualSurfaceJointInstance : JointInstance public abstract class ManualSurfaceJointInstance : JointInstance
{ {
public int Surface0 = -1;
public int Surface1 = -1;
} }
public class ManualGlue : ManualSurfaceJointInstance public class ManualGlue : ManualSurfaceJointInstance
@ -2711,7 +2717,6 @@ namespace RobloxFiles
public class Model : PVInstance public class Model : PVInstance
{ {
public ModelLevelOfDetail LevelOfDetail = ModelLevelOfDetail.Automatic; public ModelLevelOfDetail LevelOfDetail = ModelLevelOfDetail.Automatic;
public CFrame ModelInPrimary = new CFrame();
public CFrame ModelMeshCFrame = new CFrame(); public CFrame ModelMeshCFrame = new CFrame();
public SharedString ModelMeshData = SharedString.FromBase64("yuZpQdnvvUBOTYh1jqZ2cA=="); public SharedString ModelMeshData = SharedString.FromBase64("yuZpQdnvvUBOTYh1jqZ2cA==");
public Vector3 ModelMeshSize = new Vector3(); public Vector3 ModelMeshSize = new Vector3();
@ -3730,6 +3735,13 @@ namespace RobloxFiles
{ {
} }
public class TextChatCommand : Instance
{
public bool Enabled = true;
public string PrimaryAlias = "";
public string SecondaryAlias = "";
}
public class TextChatMessageProperties : Instance public class TextChatMessageProperties : Instance
{ {
} }
@ -3740,6 +3752,10 @@ namespace RobloxFiles
{ {
IsService = true; IsService = true;
} }
public ChatVersion ChatVersion = ChatVersion.LegacyChatService;
public bool CreateDefaultCommands = true;
public bool CreateDefaultTextChannels = true;
} }
public class TextService : Instance public class TextService : Instance

View File

@ -1,5 +1,5 @@
// Auto-generated list of Roblox enums. // Auto-generated list of Roblox enums.
// Updated as of 0.513.0.5130420 // Updated as of 0.514.0.5140398
namespace RobloxFiles.Enums namespace RobloxFiles.Enums
{ {
@ -62,6 +62,9 @@ namespace RobloxFiles.Enums
Idle, Idle,
Movement, Movement,
Action, Action,
Action2,
Action3,
Action4,
Core = 1000 Core = 1000
} }
@ -153,6 +156,12 @@ namespace RobloxFiles.Enums
Orbital Orbital
} }
public enum ChatVersion
{
LegacyChatService,
TextChatService
}
public enum ClientAnimatorThrottlingMode public enum ClientAnimatorThrottlingMode
{ {
Default, Default,

Binary file not shown.

View File

@ -287,6 +287,13 @@ return
EmotesDataInternal = "string"; EmotesDataInternal = "string";
EquippedEmotesDataInternal = "string"; EquippedEmotesDataInternal = "string";
}; };
Defaults =
{
AccessoryBlob = "[]";
EmotesDataInternal = "[]";
EquippedEmotesDataInternal = "[]";
}
}; };
InsertService = InsertService =
@ -349,21 +356,6 @@ return
}; };
}; };
ManualSurfaceJointInstance =
{
Add =
{
Surface0 = "int";
Surface1 = "int";
};
Defaults =
{
Surface0 = -1;
Surface1 = -1;
}
};
MeshPart = MeshPart =
{ {
Redirect = { MeshID = "MeshId" } Redirect = { MeshID = "MeshId" }
@ -373,7 +365,6 @@ return
{ {
Add = Add =
{ {
ModelInPrimary = "CFrame";
ModelMeshCFrame = "CFrame"; ModelMeshCFrame = "CFrame";
ModelMeshData = "SharedString"; ModelMeshData = "SharedString";
ModelMeshSize = "Vector3"; ModelMeshSize = "Vector3";
@ -556,10 +547,16 @@ return
StarterPlayer = StarterPlayer =
{ {
Add =
{
LoadCharacterLayeredClothing = "Enum:LoadCharacterLayeredClothing";
};
Defaults = Defaults =
{ {
GameSettingsAvatar = Enum.GameAvatarType.R15; GameSettingsAvatar = Enum.GameAvatarType.R15;
GameSettingsR15Collision = Enum.R15CollisionType.OuterBox; GameSettingsR15Collision = Enum.R15CollisionType.OuterBox;
LoadCharacterLayeredClothing = Enum.LoadCharacterLayeredClothing.Default;
GameSettingsScaleRangeHead = NumberRange.new(0.95, 1.00); GameSettingsScaleRangeHead = NumberRange.new(0.95, 1.00);
GameSettingsScaleRangeWidth = NumberRange.new(0.70, 1.00); GameSettingsScaleRangeWidth = NumberRange.new(0.70, 1.00);
@ -628,6 +625,15 @@ return
SmoothGrid = "AQU="; SmoothGrid = "AQU=";
}; };
}; };
TextChatService =
{
Defaults =
{
CreateDefaultCommands = true;
CreateDefaultTextChannels = true;
}
};
TriangleMeshPart = TriangleMeshPart =
{ {

View File

@ -42,8 +42,21 @@ namespace RobloxFiles.Tokens
Contract.Requires(prop != null && node != null); Contract.Requires(prop != null && node != null);
object rawValue = prop.Value; object rawValue = prop.Value;
int signed = (int)rawValue; if (!(rawValue is uint value))
uint value = (uint)signed; {
Type type = rawValue.GetType();
if (type.IsEnum)
{
var signed = (int)rawValue;
value = (uint)signed;
}
else
{
value = 0;
RobloxFile.LogError($"Raw value for enum property {prop} could not be casted to uint!");
}
}
node.InnerText = value.ToInvariantString(); node.InnerText = value.ToInvariantString();
} }