예제 #1
0
        public MatchConditionInfo(MatchCondition matchCondition)
        {
            if (matchCondition == null)
            {
                throw new ArgumentNullException(nameof(matchCondition));
            }

            Type         = matchCondition.type;
            TokenType    = matchCondition.tokenType;
            BoolValue    = matchCondition.boolValue;
            ResourceType = matchCondition.resourceType;
            Comparison   = matchCondition.comparison;
            Val          = matchCondition.val;
            Inverse      = matchCondition.inverse;

            TokenDefinitionID = matchCondition.tokenDefinition?.id ?? -1;
        }
예제 #2
0
 public MatchConditionInfo(MatchConditionType type,
                           MatchConditionTokenType tokenType,
                           PuzzleResourceType resourceType,
                           NumberComparisonType comparison,
                           int val,
                           int tokenDefinitionID,
                           bool boolValue,
                           bool inverse)
 {
     Type              = type;
     TokenType         = tokenType;
     TokenDefinitionID = tokenDefinitionID;
     BoolValue         = boolValue;
     ResourceType      = resourceType;
     Comparison        = comparison;
     Val     = val;
     Inverse = inverse;
 }