Esempio n. 1
0
        public void AddAttribute(CarbonAttribute att)
        {
//            var link = new AttributeActorJoin();
//            link.Actor = this;
//            link.Attribute = att;
//            Attributes.Add(link);
        }
Esempio n. 2
0
        public Character() : base()
        {
            CarbonAttribute age         = new CarbonAttribute("Age", 22);
            CarbonAttribute weight      = new CarbonAttribute("Weight", "100 lbs");
            CarbonAttribute height      = new CarbonAttribute("Height", "5' 10\"");
            CarbonAttribute description = new CarbonAttribute("Description", "");
            CarbonAttribute hairColor   = new CarbonAttribute("Hair Color", "Brown");
            CarbonAttribute eyeColor    = new CarbonAttribute("Eye Color", "Blue");
            // List ones
            CarbonAttribute motivators = new CarbonAttribute("Motivators", new List <String>());
            CarbonAttribute weaknesses = new CarbonAttribute("Weaknesses", new List <String>());
            CarbonAttribute fears      = new CarbonAttribute("Fears", new List <String>());

            this.AddAttribute(age);
            this.AddAttribute(weight);
            this.AddAttribute(height);
            this.AddAttribute(description);
            this.AddAttribute(hairColor);
            this.AddAttribute(eyeColor);

            this.AddAttribute(motivators);
            this.AddAttribute(weaknesses);
            this.AddAttribute(fears);
        }