예제 #1
0
 // Make sure Attribute is instantiated in the constructor
 public Character()
 {
     Attribute = new AttributeBase();
     Alive     = true;
 }
예제 #2
0
        // Return a formated string of the datastruture
        public static string GetAttributeString(AttributeBase data)
        {
            var myString = (JObject)JToken.FromObject(data);

            return(myString.ToString());
        }