|
@@ -1523,9 +1523,17 @@ namespace InABox.Core
|
|
|
public void DeserializeBinary(CoreBinaryReader reader)
|
|
|
{
|
|
|
// For compatability purposes when redesigning system to no longer use Serializable Expression.
|
|
|
- reader.ReadByte();
|
|
|
-
|
|
|
- Property = reader.ReadString();
|
|
|
+ var b = reader.ReadByte();
|
|
|
+ if(b != 0)
|
|
|
+ {
|
|
|
+ var exp = reader.DeserialiseExpression(typeof(T), b);
|
|
|
+ Property = CoreUtils.ExpressionToString(typeof(object), exp);
|
|
|
+ Logger.Send(LogType.Information, "", $"Non-zero byte: {Property} ({exp.Type})");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Property = reader.ReadString();
|
|
|
+ }
|
|
|
|
|
|
Operator = (Operator)reader.ReadByte();
|
|
|
if(Operator == Operator.Not)
|