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); }
public void SetFact(BaseNpc.Facts fact, byte value) { this.AIAgent.SetFact(fact, value, true, true); }
public byte GetFact(BaseNpc.Facts fact) { return(this.AIAgent.GetFact(fact)); }