public override void DoExecute(BaseContext c)
        {
            object      obj;
            BaseContext baseContext = c;

            BaseNpc.Facts fact = this.fact;
            if (this.@value)
            {
                obj = 1;
            }
            else
            {
                obj = null;
            }
            baseContext.SetFact(fact, (byte)obj);
        }
Exemple #2
0
 public void SetFact(BaseNpc.Facts fact, byte value)
 {
     this.AIAgent.SetFact(fact, value, true, true);
 }
Exemple #3
0
 public byte GetFact(BaseNpc.Facts fact)
 {
     return(this.AIAgent.GetFact(fact));
 }