private long _UnregisterUnsupply(PassageCallback handler) { SoulPassage passage = _UnsupplyPassages.FirstOrDefault(p => p.Handler == handler); if (passage == null) { return(0); } _UnsupplyPassages.Remove(passage); return(passage.Id); }
private PassageCallback _FindUnsupply(long notifier_id) { SoulPassage passage = _UnsupplyPassages.FirstOrDefault(p => p.Id == notifier_id); return(passage?.Handler); }