public override void generateVaild(System.Random rand, WorldCondition worldCond) { elements = new CondExprElement[2]; elements[0].type = CondExprElemntType.Object; elements[0].meta = rand.Next() % (int)ObjectId.NumCondObject; elements[1].type = CondExprElemntType.IntValue; elements[1].meta = worldCond.getObjectNum((ObjectId)elements[0].meta); }
public override bool testVaild(WorldCondition worldCond) { return elements[1].meta == worldCond.getObjectNum((ObjectId)elements[0].meta); }