using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RuriLib { /// /// A block that contains LoliScript code for readonly visualization purposes. /// public class BlockLSCode : BlockBase { private string script = ""; /// The LoliScript code to display. public string Script { get { return script; } set { script = value; OnPropertyChanged(); } } /// /// Creates a LSCode block. /// public BlockLSCode() { Label = "LS"; } /// public override BlockBase FromLS(List lines) { Script = string.Join(Environment.NewLine, lines); return this; } /// public override string ToLS(bool indent = true) { return script; } } }