Beispiel #1
0
        void ExportCultural(GCACharacter pc, GCAWriter fw)
        {
            fw.WriteHeader("Cultural Background");
            var label = "TL:";
            var curItem = pc.ItemByNameAndExt("Tech Level", modConstants.Stats);
            if (curItem != null)
            {
                var buffer = curItem.DisplayScore;
                if (curItem.Points != 0)
                {
                    buffer = string.Format("{0} [{1}]", buffer, curItem.Points);
                }
                fw.WriteTrait(label, buffer);
            }
            fw.WriteLine();

            if (pc.get_Count(modConstants.Cultures) > 0)
            {
                label = "Cultures: ";
                var buffer = SimpleStringTrait(TraitTypes.Cultures);
                fw.WriteTrait(label, buffer);
            }
            if (pc.get_Count(modConstants.Languages) > 0)
            {
                label = "Languages: ";
                var buffer = SimpleStringTrait(TraitTypes.Languages);
                fw.WriteTrait(label, buffer);
            }
            fw.WriteLine();
        }
Beispiel #2
0
        void ExportBiography(GCACharacter CurChar, GCAWriter fw)
        {
            fw.WriteTrait("Name:", CurChar.Name);
            fw.WriteTrait("Player:", CurChar.Player);
            fw.WriteTrait("Race:", CurChar.Race);
            if (! string.IsNullOrEmpty( CurChar.Appearance))
                fw.WriteTrait("Appearance: ", CurChar.Appearance);

            if (!string.IsNullOrEmpty(CurChar.Height))
                fw.WriteTrait("Height:", CurChar.Height);

            if (!string.IsNullOrEmpty(CurChar.Weight))
                fw.WriteTrait("Weight:", CurChar.Weight);

            if (!string.IsNullOrEmpty(CurChar.Age))
                fw.WriteTrait("Age:", CurChar.Age);

            fw.WriteLine("");
        }