public void RemoveTrigger(QventSystem.QventType QventType, Decision Consequent) { if (triggers.ContainsKey(QventType)) { List <Decision> entry = triggers [QventType]; entry.Remove(Consequent); } }
public void AddTrigger(QventSystem.QventType QventType, Decision Consequent) { List <Decision> entry; if (triggers.ContainsKey(QventType)) { entry = triggers [QventType]; entry.Add(Consequent); } else { entry = new List <Decision> (); entry.Add(Consequent); triggers [QventType] = entry; } }