Add PropInt and PropBool

This commit is contained in:
Jarrod Doyle 2024-09-07 11:18:26 +01:00
parent da67a26eec
commit b959fb97c2
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 22 additions and 0 deletions

View File

@ -54,6 +54,28 @@ public class PropGeneric : Property
}
}
public class PropBool : Property
{
public bool value;
public override void Read(BinaryReader reader)
{
base.Read(reader);
value = reader.ReadInt32() != 0;
}
}
public class PropInt : Property
{
public int value;
public override void Read(BinaryReader reader)
{
base.Read(reader);
value = reader.ReadInt32();
}
}
public class PropLabel : Property
{
public string value;