예제 #1
0
파일: Sector.cs 프로젝트: tgspn/Zilon
        private void ActorManager_Added(object sender, ManagerItemsChangedArgs <IActor> e)
        {
            foreach (var actor in e.Items)
            {
                Map.HoldNode(actor.Node, actor);

                actor.State.Dead += ActorState_Dead;
            }
        }
예제 #2
0
파일: Sector.cs 프로젝트: tgspn/Zilon
 private void PropContainerManager_Remove(object sender, ManagerItemsChangedArgs <IPropContainer> e)
 {
     foreach (var container in e.Items)
     {
         if (container.IsMapBlock)
         {
             Map.ReleaseNode(container.Node, container);
         }
     }
 }
예제 #3
0
        private void DoRemoved(params TSectorEntity[] entities)
        {
            var args = new ManagerItemsChangedArgs <TSectorEntity>(entities);

            Removed?.Invoke(this, args);
        }