Example #1
0
        protected bool PreviousPolicy <T>(out PolicyTagEvent tag)
            where T : PolicyPartBase
        {
            var policyConcept = AsConcept <T>();

            tag = _turnEvents.Where(e => e is PolicyTagEvent tagEvt && tagEvt.Tag.Concept == policyConcept).FirstOrDefault() as PolicyTagEvent;

            return(tag != null);
        }
Example #2
0
 internal virtual void Visit(PolicyTagEvent evt)
 {
     // nothing to do by default
 }