Пример #1
0
        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
 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);
        }