示例#1
0
        protected virtual bool OnPerish(ActorBase collider)
        {
            EventMap events = api.EventMap;

            if (events != null && (flags & ActorInstantiationFlags.IsCreatedFromEventMap) != 0)
            {
                events.Deactivate(originTile.X, originTile.Y);
                events.StoreTileEvent(originTile.X, originTile.Y, EventType.Empty);
            }

            api.RemoveActor(this);

            return(true);
        }