상속: EntityBase
예제 #1
0
파일: Critter.cs 프로젝트: BeeWarloc/Pomona
        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();
        }