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); }
protected override void DumpMembers(LuaTextWriter output) { output.WriteList("Definitions", Definitions); output.WriteList("Bonuses", Bonuses); output.WriteList("ProhibitedSpells", ProhibitedSpells); output.WriteList("Domains", Domains); output.WriteList("Abilities", Abilities); output.WriteList("ClassSkills", ClassSkills); output.WriteList("AddedSpellCasterLevels", AddedSpellCasterLevels); output.WriteList("SpellLists", SpellLists); if (WeaponBonusProficiencySelections.Any()) { output.WriteObjectValue("WeaponBonusProficiencySelections", () => { foreach (var selection in WeaponBonusProficiencySelections) { output.WriteStartObject(); foreach (var option in selection) { output.WriteValue(option); output.Write(", "); } output.WriteLine(); output.WriteEndObject(); } }); } base.DumpMembers(output); }
protected override void DumpMembers(LuaTextWriter output) { output.WriteKeyValue("Kind", Kind.ToString()); output.WriteKeyValue("Name", Name); output.WriteList("Levels", Levels); base.DumpMembers(output); }
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); }
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); }
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); }
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); }
protected override void DumpMembers(LuaTextWriter output) { output.WriteList("Names", Names); base.DumpMembers(output); }
protected override void DumpMembers(LuaTextWriter output) { base.DumpMembers(output); output.WriteList("Conditions", Conditions); }
protected override void DumpMembers(LuaTextWriter output) { output.WriteKeyValue("SpellLevel", SpellLevel); output.WriteList("Spells", Spells); base.DumpMembers(output); }