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(); }
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(); }
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(); }