Example #1
0
 void ExportEquiment(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteHeader("Equipment [$" + pc.get_Cost(modConstants.Equipment) + "]");
     foreach (var item in ComplexListTrait(TraitTypes.Equipment, fw).Where(x => string.IsNullOrEmpty(x) != true))
     {
         fw.Write(item);
     }
     fw.WriteLine();
 }
Example #2
0
 void ExportSpells(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteHeader("Spells [" + pc.get_Cost(modConstants.Spells) + "]");
     foreach (var item in ComplexListTrait(TraitTypes.Spells, fw).Where(x => string.IsNullOrEmpty(x) != true))
     {
         fw.Write(item);
     }
     fw.WriteLine();
 }
Example #3
0
        void ExportAttributes(GCACharacter pc, GCAWriter fw)
        {
            fw.WriteHeader("Attributes [" + pc.get_Cost(modConstants.Stats) + "]");

            var StatNames = new List<string> {
                "ST",
                "DX",
                "IQ",
                "HT"};
            foreach (var item in ComplexListAttributes(StatNames, fw))
            {
                fw.Write(item);
            }
            fw.WriteLine();
            StatNames.Clear();

            StatNames.AddRange(new string[] {
                "Hit Points",
                "Will",
                "Perception",
                "Fatigue Points"}
            );
            foreach (var item in ComplexListAttributes(StatNames, fw))
            {
                fw.Write(item);
            }
            fw.WriteLine();
        }