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

View File

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

Binary file not shown.

View File

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

View File

@ -42,8 +42,21 @@ namespace RobloxFiles.Tokens
Contract.Requires(prop != null && node != null);
object rawValue = prop.Value;
int signed = (int)rawValue;
uint value = (uint)signed;
if (!(rawValue is uint value))
{
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();
}