コード例 #1
0
 public void SetFact(
     NPCPlayerApex.Facts fact,
     byte value,
     bool triggerCallback = true,
     bool onlyTriggerCallbackOnDiffValue = true)
 {
     this.AIAgent.SetFact(fact, value, triggerCallback, onlyTriggerCallbackOnDiffValue);
 }
コード例 #2
0
        public override void DoExecute(BaseContext c)
        {
            object      obj;
            BaseContext baseContext = c;

            NPCPlayerApex.Facts fact = this.fact;
            if (this.@value)
            {
                obj = 1;
            }
            else
            {
                obj = null;
            }
            baseContext.SetFact(fact, (byte)obj, true, true);
        }
コード例 #3
0
 public byte GetFact(NPCPlayerApex.Facts fact)
 {
     return(this.AIAgent.GetFact(fact));
 }