mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
Add sequence id's to playeroutfit
This commit is contained in:
1 parent
2eca9b4e9f
commit
482b8c2b72
1 file changed
+21
-1
@@ -2,6 +2,8 @@ namespace Impostor.Api.Innersloth.Customization
|
||||
{
|
||||
public class PlayerOutfit
|
||||
{
|
||||
public string PlayerName { get; internal set; } = string.Empty;
|
||||
|
||||
public ColorType Color { get; internal set; } = (ColorType)(-1);
|
||||
|
||||
public string HatId { get; internal set; } = "missing";
|
||||
@@ -14,7 +16,15 @@ namespace Impostor.Api.Innersloth.Customization
|
||||
|
||||
public string NamePlateId { get; internal set; } = "missing";
|
||||
|
||||
public string PlayerName { get; internal set; } = "missing";
|
||||
private byte HatSequenceId { get; set; } = 0;
|
||||
|
||||
private byte PetSequenceId { get; set; } = 0;
|
||||
|
||||
private byte SkinSequenceId { get; set; } = 0;
|
||||
|
||||
private byte VisorSequenceId { get; set; } = 0;
|
||||
|
||||
private byte NamePlateSequenceId { get; set; } = 0;
|
||||
|
||||
public bool IsIncomplete
|
||||
{
|
||||
@@ -38,6 +48,11 @@ namespace Impostor.Api.Innersloth.Customization
|
||||
writer.Write(SkinId);
|
||||
writer.Write(VisorId);
|
||||
writer.Write(NamePlateId);
|
||||
writer.Write(HatSequenceId);
|
||||
writer.Write(PetSequenceId);
|
||||
writer.Write(SkinSequenceId);
|
||||
writer.Write(VisorSequenceId);
|
||||
writer.Write(NamePlateSequenceId);
|
||||
}
|
||||
|
||||
public void Deserialize(IMessageReader reader)
|
||||
@@ -49,6 +64,11 @@ namespace Impostor.Api.Innersloth.Customization
|
||||
SkinId = reader.ReadString();
|
||||
VisorId = reader.ReadString();
|
||||
NamePlateId = reader.ReadString();
|
||||
HatSequenceId = reader.ReadByte();
|
||||
PetSequenceId = reader.ReadByte();
|
||||
SkinSequenceId = reader.ReadByte();
|
||||
VisorSequenceId = reader.ReadByte();
|
||||
NamePlateSequenceId = reader.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user