Example #1
0
 public override void WriteText(MTextWriter writer)
 {
     writer.WriteString(Name);
     writer.WriteSpace();
     writer.WriteString("string");
     writer.WriteString("{\""); writer.WriteString(String); writer.WriteString("\"}");
     writer.SetNeedNewLine();
 }
Example #2
0
 public override void WriteText(MTextWriter writer)
 {
     writer.WriteString(Name);
     writer.WriteSpace();
     writer.WriteString("region");
     writer.WriteString("{"); writer.WriteString($"{X1} {Y1} {X2} {Y2}"); writer.WriteString("}");
     writer.SetNeedNewLine();
 }
Example #3
0
 public override void WriteText(MTextWriter writer)
 {
     writer.WriteString(Name);
     writer.WriteSpace();
     writer.WriteString("rectangle");
     writer.WriteString("{"); writer.WriteString($"{X} {Y} {Width} {Height}"); writer.WriteString("}");
     writer.SetNeedNewLine();
 }
Example #4
0
 public override void WriteText(MTextWriter writer)
 {
     writer.WriteString(Name);
     writer.WriteSpace();
     writer.WriteString("vector");
     writer.WriteString("{"); writer.Write(X); writer.WriteSpace(); writer.Write(Y); writer.WriteString("}");
     writer.SetNeedNewLine();
 }
Example #5
0
        public override void WriteText(MTextWriter writer)
        {
            if (Name != null)
            {
                writer.WriteString(Name);
                writer.WriteSpace();
            }

            writer.WriteString("RGBA");
            writer.WriteString("{"); writer.WriteString($"{R} {G} {B} {A}"); writer.WriteString("}");
            writer.SetNeedNewLine();
        }
Example #6
0
        public override void WriteText(MTextWriter writer)
        {
            if (Name != null)
            {
                writer.WriteString(Name);
                writer.WriteSpace();
            }

            writer.WriteString("color_name");
            writer.WriteString("{\""); writer.WriteString(ColorName); writer.WriteString("\"}");
            writer.SetNeedNewLine();
        }
Example #7
0
        public override void WriteText(MTextWriter writer)
        {
            writer.WriteString(Name);
            writer.WriteString($"[{Length}]");
            writer.WriteOpenScope();

            foreach (var elem in Elements)
            {
                elem.WriteText(writer);
            }

            writer.WriteEndScope();
        }
Example #8
0
        public override void WriteText(MTextWriter writer)
        {
            writer.WriteString(Name);
            writer.WriteSpace();
            writer.WriteString("digit");
            writer.WriteString("{"); writer.WriteString(Value.ToString(CultureInfo.InvariantCulture)); writer.WriteString("}");

            if (writer.Debug)
            {
                writer.WriteString(" // mFloat");
            }

            writer.SetNeedNewLine();
        }
Example #9
0
        public override void WriteText(MTextWriter writer)
        {
            writer.WriteString(Name);
            writer.WriteSpace();
            writer.WriteString("digit");
            writer.WriteString("{"); writer.WriteString(Value.ToString()); writer.WriteString("}");

            if (writer.Debug)
            {
                writer.WriteString(" // mShort");
            }

            writer.SetNeedNewLine();
        }