public override IEncodable Decode(BinaryInput stream) { base.Decode(stream); TemplateID = stream.ReadInt32(); Collidable = stream.ReadBoolean(); Shadow = stream.ReadBoolean(); Rotation = stream.ReadSingle(); Scale = stream.ReadSingle(); Opacity = stream.ReadSingle(); TopMost = stream.ReadBoolean(); Color = new Color(stream.ReadVector4()); return(this); }
public override IEncodable Decode(BinaryInput stream) { base.Decode(stream); TemplateID = stream.ReadInt32(); Collidable = stream.ReadBoolean(); Shadow = stream.ReadBoolean(); Rotation = stream.ReadSingle(); Scale = stream.ReadSingle(); Opacity = stream.ReadSingle(); TopMost = stream.ReadBoolean(); Color = new Color(stream.ReadVector4()); return this; }