コード例 #1
0
ファイル: ALayer.cs プロジェクト: Deneyr/Metempsychoid
 public virtual void NotifyObjectPropertyChanged(AEntity obj, string propertyName)
 {
     if (this.raiseEntityEvents)
     {
         this.EntityPropertyChanged?.Invoke(obj, propertyName);
     }
 }
コード例 #2
0
ファイル: ALayer.cs プロジェクト: Deneyr/Metempsychoid
 protected void NotifyObjectRemoved(AEntity obj)
 {
     if (this.raiseEntityEvents)
     {
         this.EntityRemoved?.Invoke(obj);
     }
 }
コード例 #3
0
ファイル: ALayer.cs プロジェクト: Deneyr/Metempsychoid
        public virtual void RemoveEntityFromLayer(AEntity entity)
        {
            //AObject.animationManager.StopAnimation(entity);

            this.entities.Remove(entity);

            this.NotifyObjectRemoved(entity);

            entity.Dispose();
        }
コード例 #4
0
ファイル: ALayer.cs プロジェクト: Deneyr/Metempsychoid
 public virtual void NotifyObjectBeforePropertyChanged(AEntity obj, string propertyName)
 {
 }
コード例 #5
0
ファイル: ALayer.cs プロジェクト: Deneyr/Metempsychoid
        public void AddEntityToLayer(AEntity entity)
        {
            this.entities.Add(entity);

            this.NotifyObjectAdded(entity);
        }