Ejemplo n.º 1
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     output.WriteKeyValue("Kind", Kind.ToString());
     output.WriteKeyValue("Name", Name);
     output.WriteList("Levels", Levels);
     base.DumpMembers(output);
 }
Ejemplo n.º 2
0
        protected override void DumpMembers(LuaTextWriter output)
        {
            if (Alignment != null)
            {
                output.WriteKeyValue("Alignment", Alignment);
            }

            if (Descriptor != null)
            {
                output.WriteKeyValue("Descriptor", Descriptor);
            }

            if (School != null)
            {
                output.WriteKeyValue("School", School);
            }

            if (SubSchool != null)
            {
                output.WriteKeyValue("SubSchool", SubSchool);
            }

            if (Names.Any())
            {
                output.WriteObjectValue("Names", () =>
                {
                    foreach (var name in Names)
                    {
                        output.WriteValue(name);
                        output.Write(",\n");
                    }
                });
            }
            base.DumpMembers(output);
        }
Ejemplo n.º 3
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     output.WriteObjectValue("Choice", () =>
     {
         output.WriteKeyValue("Kind", ChoiceKind);
         output.WriteKeyValue("Value", ChoiceValue);
     });
     output.WriteKeyValue("Cost", Cost);
     output.WriteList("Levels", Levels);
     base.DumpMembers(output);
 }
Ejemplo n.º 4
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     output.WriteKeyValue("Category", Category);
     output.WriteList("Variables", Variables);
     output.WriteKeyValue("Formula", Formula);
     if (Type != null)
     {
         output.Write("Type=");
         Type.Dump(output);
         output.Write(",\n");
     }
     base.DumpMembers(output);
 }
Ejemplo n.º 5
0
        public void Dump(LuaTextWriter output)
        {
            output.Write("SetSource(");
            output.WriteStartObject();

            output.WriteKeyValue("SourceLong", SourceLong);
            output.WriteKeyValue("SourceShort", SourceShort);
            output.WriteKeyValue("SourceWeb", SourceWeb);
            output.WriteKeyValue("SourceDate", SourceDate);

            output.WriteEndObject();
            output.Write(")\n");
        }
Ejemplo n.º 6
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     output.WriteKeyValue("Category", Category);
     output.WriteKeyValue("Nature", Nature);
     if (Name != null)
     {
         output.WriteKeyValue("Name", Name);
     }
     else if (Type != null)
     {
         output.WriteKeyValue("Type", Type);
     }
     base.DumpMembers(output);
 }
Ejemplo n.º 7
0
        protected override void DumpMembers(LuaTextWriter output)
        {
            output.WriteKeyValue("Name", Name);
            if (SpellStat != null)
            {
                output.WriteKeyValue("SpellStat", SpellStat);
            }

            if (SpellListChoiceCount.HasValue)
            {
                Debug.Assert(SpellListChoices != null);
                output.WriteKeyValue("SpellListChoiceCount", SpellListChoiceCount.Value.ToString());
                output.WriteList("SpellListChoices", SpellListChoices);
            }
            base.DumpMembers(output);
        }
Ejemplo n.º 8
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     if (Any)
     {
         output.WriteKeyValue("Any", Any);
     }
     if (CasterType != null)
     {
         output.WriteKeyValue("Type", CasterType);
     }
     if (ClassNames != null)
     {
         output.WriteList("ClassNames", ClassNames);
     }
     base.DumpMembers(output);
 }
Ejemplo n.º 9
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     output.WriteKeyValue("Level", Level);
     output.WriteList("SpellsPerDay", SpellsPerDay.Cast <object>());
     output.WriteList("SpellsKnown", SpellsKnown.Cast <object>());
     base.DumpMembers(output);
 }
Ejemplo n.º 10
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     if (Name != null)
     {
         output.WriteKeyValue("Name", Name);
     }
     else if (Type != null)
     {
         output.WriteKeyValue("Type", Type);
         if (Invert)
         {
             output.WriteKeyValue("Invert", Invert);
         }
     }
     else if (All)
     {
         output.WriteKeyValue("All", All);
     }
     base.DumpMembers(output);
 }
Ejemplo n.º 11
0
 protected override void DumpMembers(LuaTextWriter output)
 {
     output.WriteKeyValue("SpellLevel", SpellLevel);
     output.WriteList("Spells", Spells);
     base.DumpMembers(output);
 }