public bool Pass(Vis.Mask self, Vis.Mask instigator) { if (!this.expanded) { int ruleCount = this.ruleCount; if (ruleCount <= 0) { return(true); } this.rules = new Vis.Rule[ruleCount]; for (int j = 0; j < ruleCount; j++) { this.rules[j] = Vis.Rule.Decode(this.data, j * 4); } this.expanded = true; } for (int i = this.rules.Length - 1; i >= 0; i--) { if (this.rules[i].Pass(self, instigator) != Vis.Rule.Failure.None) { return(false); } } return(true); }
public bool Pass(Vis.Mask self, Vis.Mask instigator) { if (!this.expanded) { int num = this.ruleCount; if (num <= 0) { return(true); } this.rules = new Vis.Rule[num]; for (int i = 0; i < num; i++) { this.rules[i] = Vis.Rule.Decode(this.data, i * 4); } this.expanded = true; } for (int j = (int)this.rules.Length - 1; j >= 0; j--) { if (this.rules[j].Pass(self, instigator) != Vis.Rule.Failure.None) { return(false); } } return(true); }
private bool Try(VisNode self, VisNode instigator) { Vis.Mask traitMask = self.traitMask; Vis.Mask mask2 = instigator.traitMask; return(this.evaluation.Pass(traitMask, mask2)); }
public bool GetMessage(Vis.Mask current, ref Vis.Mask previous, Vis.Mask other) { return(false); }