public static List<DisplayCharacter> DisplayCharacterCollectionFromString(string fileString)
 {
     string[] charBuilders = fileString.Split(groupDelim);
     List<DisplayCharacter> dcBuilders = new List<DisplayCharacter>();
     foreach (string dcBuilder in charBuilders)
     {
         DisplayCharacter dc = new DisplayCharacter(dcBuilder);
         if (dc.Hair >= 0) dcBuilders.Add(dc);
     }
     return dcBuilders;
 }
Beispiel #2
0
 public void Remove(DisplayCharacter ch)
 {
     if (drawableCharacters.Contains(ch))
     {
         drawableCharacters.Remove(ch);
     }
     if (drawableImages.Contains(ch.CachedImage))
     {
         drawableImages.Remove(ch.CachedImage);
     }
     this.Refresh();
 }
Beispiel #3
0
 public void Add(DisplayCharacter ch)
 {
     drawableCharacters.Add(ch);
     CharacterImage image = ch.Image(ViewCenterX, ViewCenterY, ViewCenterZ, topDirection, this);
     drawableImages.Add(image);
     drawableImages.Sort();
     this.Refresh();
 }