コード例 #1
0
        public CharacterAttributeCollection(ICharacterContainer container)
        {
            _characterContainer = container;
            var coll = _characterContainer.ParentContainer == null
                           ? null
                           : _characterContainer.ParentContainer.AttributeCollection;

            if(coll!=null)
            {
                foreach (PropertyDescriptor prop in coll._properties)
                    AddProperty(prop, false);

                coll.PropertyAdded += OnBasePropertyAdded;
            }
        }
コード例 #2
0
        internal List<PropertyDescriptor> GetAssociatedProperties(ICharacterContainer characterContainer)
        {
            if(characterContainer==_characterContainer)
                return _currentLevelProperties;

            if (_characterContainer.ParentContainer != null)
                return
                    _characterContainer.ParentContainer.AttributeCollection.GetAssociatedProperties(characterContainer);

            return null;
        }
コード例 #3
0
        public FormCharactersProperties(ICharacterContainer container)
        {
            InitializeComponent();

            _container = container;
        }