Example #1
0
 public ActorTemplate(Actor actor)
 {
     Name                   = actor.Name;
     Foreground             = actor.Appearance.Foreground;
     Background             = actor.Appearance.Background;
     Glyph                  = (char)actor.Appearance.Glyph;
     Stats                  = actor.Stats;
     Anatomy                = actor.Anatomy;
     Description            = actor.Description;
     Layer                  = actor.Layer;
     Size                   = actor.Size;
     Weight                 = actor.Weight;
     MaterialId             = actor.Material.Id;
     ColoredGlyphSerialized = actor.Appearance;
 }
Example #2
0
 public ActorTemplate(string name, Color foreground, Color background, int glyph,
                      int layer, Stat stats, Anatomy anatomy, string description, int size, float weight, string materialId)
 {
     Name                   = name;
     Foreground             = foreground;
     Background             = background;
     Glyph                  = (char)glyph;
     Stats                  = stats;
     Anatomy                = anatomy;
     Description            = description;
     Layer                  = layer;
     Size                   = size;
     Weight                 = weight;
     MaterialId             = materialId;
     ColoredGlyphSerialized = new ColoredGlyphSerialized()
     {
         Background = background,
         Foreground = foreground,
         Glyph      = glyph
     };
 }