Add PropInt and PropBool
This commit is contained in:
parent
da67a26eec
commit
b959fb97c2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue