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; } }
internal List<PropertyDescriptor> GetAssociatedProperties(ICharacterContainer characterContainer) { if(characterContainer==_characterContainer) return _currentLevelProperties; if (_characterContainer.ParentContainer != null) return _characterContainer.ParentContainer.AttributeCollection.GetAssociatedProperties(characterContainer); return null; }
public FormCharactersProperties(ICharacterContainer container) { InitializeComponent(); _container = container; }