Exemple #1
0
 public LogicConditionInfo(LogicConditionType type,
                           NumberComparisonType comparisonType,
                           ClockDaytimeType daytimeType,
                           DollOrientationType dollOrientation,
                           PuzzleAffectionType affectionType,
                           PuzzleResourceType resourceType,
                           SettingDifficulty settingDifficulty,
                           PuzzleStatusType dateType,
                           string stringValue,
                           int intValue,
                           int locationDefinitionID,
                           int girlPairDefinitionID,
                           int girlDefinitionID,
                           int itemDefinitionID,
                           bool inverse,
                           bool boolValue)
 {
     Type                 = type;
     Inverse              = inverse;
     BoolValue            = boolValue;
     IntValue             = intValue;
     StringValue          = stringValue;
     ComparisonType       = comparisonType;
     LocationDefinitionID = locationDefinitionID;
     DaytimeType          = daytimeType;
     GirlPairDefinitionID = girlPairDefinitionID;
     GirlDefinitionID     = girlDefinitionID;
     DollOrientation      = dollOrientation;
     AffectionType        = affectionType;
     ResourceType         = resourceType;
     ItemDefinitionID     = itemDefinitionID;
     SettingDifficulty    = settingDifficulty;
     DateType             = dateType;
 }
Exemple #2
0
        public LogicConditionInfo(LogicCondition logicCondition)
        {
            if (logicCondition == null)
            {
                throw new ArgumentNullException(nameof(logicCondition));
            }

            Type              = logicCondition.type;
            Inverse           = logicCondition.inverse;
            BoolValue         = logicCondition.boolValue;
            IntValue          = logicCondition.intValue;
            StringValue       = logicCondition.stringValue;
            ComparisonType    = logicCondition.comparisonType;
            DaytimeType       = logicCondition.daytimeType;
            DollOrientation   = logicCondition.dollOrientation;
            AffectionType     = logicCondition.affectionType;
            ResourceType      = logicCondition.resourceType;
            SettingDifficulty = logicCondition.settingDifficulty;
            DateType          = logicCondition.dateType;

            LocationDefinitionID = logicCondition.locationDefinition?.id ?? -1;
            GirlPairDefinitionID = logicCondition.girlPairDefinition?.id ?? -1;
            GirlDefinitionID     = logicCondition.girlDefinition?.id ?? -1;
            ItemDefinitionID     = logicCondition.itemDefinition?.id ?? -1;
        }