Inheritance: EntityBase
Exemple #1
0
        public Critter()
        {
            Guid = Guid.NewGuid();
            Enemies = new List<Critter>();
            Weapons = new List<Weapon>();
            Subscriptions = new List<Subscription>();

            SimpleAttributes = new List<SimpleAttribute>
            {
                new SimpleAttribute { Key = "MeaningOfLife", Value = "42" },
                new SimpleAttribute { Key = "IsCat", Value = "maybe" }
            };

            OnlyWritableByInheritedResource = "blabla not writable";
            Hat = new Hat();
            Protected = Guid.NewGuid().ToString();
        }