public virtual void NotifyObjectPropertyChanged(AEntity obj, string propertyName) { if (this.raiseEntityEvents) { this.EntityPropertyChanged?.Invoke(obj, propertyName); } }
protected void NotifyObjectRemoved(AEntity obj) { if (this.raiseEntityEvents) { this.EntityRemoved?.Invoke(obj); } }
public virtual void RemoveEntityFromLayer(AEntity entity) { //AObject.animationManager.StopAnimation(entity); this.entities.Remove(entity); this.NotifyObjectRemoved(entity); entity.Dispose(); }
public virtual void NotifyObjectBeforePropertyChanged(AEntity obj, string propertyName) { }
public void AddEntityToLayer(AEntity entity) { this.entities.Add(entity); this.NotifyObjectAdded(entity); }