Exemple #1
0
 public void RemoveTrigger(QventSystem.QventType QventType, Decision Consequent)
 {
     if (triggers.ContainsKey(QventType))
     {
         List <Decision> entry = triggers [QventType];
         entry.Remove(Consequent);
     }
 }
Exemple #2
0
    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;
        }
    }