示例#1
0
        private long _UnregisterUnsupply(PassageCallback handler)
        {
            SoulPassage passage = _UnsupplyPassages.FirstOrDefault(p => p.Handler == handler);

            if (passage == null)
            {
                return(0);
            }
            _UnsupplyPassages.Remove(passage);
            return(passage.Id);
        }
示例#2
0
        private PassageCallback _FindUnsupply(long notifier_id)
        {
            SoulPassage passage = _UnsupplyPassages.FirstOrDefault(p => p.Id == notifier_id);

            return(passage?.Handler);
        }