public override void Read(BinaryReader reader, bool includeHeader, long leng) { if (includeHeader) { reader.ReadByte(); } BlendTime = reader.ReadSingle(); BlendFunction = (ViewTargetBlendFunction)reader.ReadByte(); BlendExp = reader.ReadSingle(); bLockOutgoing = reader.ReadInt32() != 0; }
public override void Read(AssetBinaryReader reader, bool includeHeader, long leng1, long leng2 = 0) { if (includeHeader) { PropertyGuid = reader.ReadPropertyGuid(); } BlendTime = reader.ReadSingle(); BlendFunction = (ViewTargetBlendFunction)reader.ReadByte(); BlendExp = reader.ReadSingle(); bLockOutgoing = reader.ReadInt32() != 0; }
public override void FromString(string[] d) { if (float.TryParse(d[0], out float res1)) { BlendTime = res1; } if (Enum.TryParse(d[1], out ViewTargetBlendFunction res2)) { BlendFunction = res2; } if (float.TryParse(d[2], out float res3)) { BlendExp = res3; } if (bool.TryParse(d[3], out bool res4)) { bLockOutgoing = res4; } }