/// <summary> /// Copies the content of another TextOutline. /// </summary> /// <param name="src">The TextOutline instance to copy the contents from.</param> public void Assign(TextOutline src) { enabled = src.Enabled; color = src.Color; width = src.Width; style = src.Style; drawbehind = src.DrawBehind; }
/// <summary> /// Serializes the TextOutline. /// </summary> /// <param name="writer">Writer object.</param> /// <param name="prefix">TextOutline property name.</param> /// <param name="diff">Another TextOutline to compare with.</param> public void Serialize(FRWriter writer, string prefix, TextOutline diff) { if (enabled != diff.Enabled) { writer.WriteBool(prefix + ".Enabled", enabled); } if (color != diff.Color) { writer.WriteValue(prefix + ".Color", color); } if (width != diff.Width) { writer.WriteFloat(prefix + ".Width", width); } if (style != diff.Style) { writer.WriteValue(prefix + ".Style", style); } if (drawbehind != diff.DrawBehind) { writer.WriteBool(prefix + ".DrawBehind", drawbehind); } }