예제 #1
0
 public virtual void NotifyObjectPropertyChanged(AEntity obj, string propertyName)
 {
     if (this.raiseEntityEvents)
     {
         this.EntityPropertyChanged?.Invoke(obj, propertyName);
     }
 }
예제 #2
0
 protected void NotifyObjectRemoved(AEntity obj)
 {
     if (this.raiseEntityEvents)
     {
         this.EntityRemoved?.Invoke(obj);
     }
 }
예제 #3
0
        public virtual void RemoveEntityFromLayer(AEntity entity)
        {
            //AObject.animationManager.StopAnimation(entity);

            this.entities.Remove(entity);

            this.NotifyObjectRemoved(entity);

            entity.Dispose();
        }
예제 #4
0
 public virtual void NotifyObjectBeforePropertyChanged(AEntity obj, string propertyName)
 {
 }
예제 #5
0
        public void AddEntityToLayer(AEntity entity)
        {
            this.entities.Add(entity);

            this.NotifyObjectAdded(entity);
        }