Beispiel #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;
 }
Beispiel #2
0
        public LogicActionInfo(LogicAction logicAction, AssetProvider assetProvider)
        {
            if (logicAction == null)
            {
                throw new ArgumentNullException(nameof(logicAction));
            }
            if (assetProvider == null)
            {
                throw new ArgumentNullException(nameof(assetProvider));
            }

            Type          = logicAction.type;
            BoolValue     = logicAction.boolValue;
            IntValue      = logicAction.intValue;
            FloatValue    = logicAction.floatValue;
            StringValue   = logicAction.stringValue;
            AffectionType = logicAction.affectionType;
            ResourceType  = logicAction.resourceType;
            PuzzleState   = logicAction.puzzleState;

            LocationDefinitionID = logicAction.locationDefinition?.id ?? -1;
            GirlPairDefinitionID = logicAction.girlPairDefinition?.id ?? -1;
            ItemDefinitionID     = logicAction.itemDefinition?.id ?? -1;
            GirlDefinitionID     = logicAction.girlDefinition?.id ?? -1;
            CutsceneDefinitionID = logicAction.cutsceneDefinition?.id ?? -1;

            if (logicAction.backgroundMusic != null)
            {
                BackgroundMusic = new AudioKlipInfo(logicAction.backgroundMusic, assetProvider);
            }
        }
Beispiel #3
0
 public LogicActionInfo(LogicActionType type,
                        PuzzleAffectionType affectionType,
                        PuzzleResourceType resourceType,
                        PuzzleGameState puzzleState,
                        string stringValue,
                        float floatValue,
                        int intValue,
                        int locationDefinitionID,
                        int girlPairDefinitionID,
                        int cutsceneDefinitionID,
                        int itemDefinitionID,
                        int girlDefinitionID,
                        bool boolValue,
                        AudioKlipInfo backgroundMusic)
 {
     Type                 = type;
     BoolValue            = boolValue;
     IntValue             = intValue;
     FloatValue           = floatValue;
     StringValue          = stringValue;
     LocationDefinitionID = locationDefinitionID;
     GirlPairDefinitionID = girlPairDefinitionID;
     AffectionType        = affectionType;
     ResourceType         = resourceType;
     CutsceneDefinitionID = cutsceneDefinitionID;
     PuzzleState          = puzzleState;
     ItemDefinitionID     = itemDefinitionID;
     GirlDefinitionID     = girlDefinitionID;
     BackgroundMusic      = backgroundMusic;
 }
Beispiel #4
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;
        }
Beispiel #5
0
        public AbilityStepInfo(AbilityStepSubDefinition def, AssetProvider assetProvider)
        {
            if (def == null)
            {
                throw new ArgumentNullException(nameof(def));
            }
            if (assetProvider == null)
            {
                throw new ArgumentNullException(nameof(assetProvider));
            }

            StepType          = def.stepType;
            Handle            = def.handle;
            ValueRef          = def.valueRef;
            PuzzleSetRef      = def.puzzleSetRef;
            MinRequirement    = def.minRequirement;
            ResourceType      = def.resourceType;
            AffectionType     = def.affectionType;
            Negative          = def.negative;
            OppositeGirl      = def.oppositeGirl;
            ValueType         = def.valueType;
            Min               = def.min;
            Max               = def.max;
            CombineValues     = def.combineValues;
            CombineOperation  = def.combineOperation;
            ResourceMaxValue  = def.resourceMaxValue;
            GirlValueType     = def.girlValueType;
            ConditionType     = def.conditionType;
            PercentOfValue    = def.percentOfValue;
            OrCheck           = def.orCheck;
            Limit             = def.limit;
            Merged            = def.merged;
            FlatMerge         = def.flatMerge;
            Weighted          = def.weighted;
            VisualEffectType  = def.visualEffectType;
            EnergyType        = def.energyType;
            SplashText        = def.splashText;
            AilmentItemType   = def.ailmentItemType;
            AilmentAlterType  = def.ailmentAlterType;
            AilmentTargetType = def.ailmentTargetType;
            AilmentIndex      = def.ailmentIndex;

            AilmentDefinitionID = def.ailmentDefinition?.id ?? -1;
            EnergyDefinitionID  = def.energyDefinition?.id ?? -1;

            if (def.audioKlip != null)
            {
                AudioKlipInfo = new AudioKlipInfo(def.audioKlip, assetProvider);
            }
            if (def.tokenConditionSet != null)
            {
                TokenConditionSetInfo = new TokenConditionSetInfo(def.tokenConditionSet);
            }

            if (def.tokenDefinitions != null)
            {
                TokenDefinitionIDs = def.tokenDefinitions.Select(x => x.id).ToList();
            }
        }
        public MoveConditionInfo(MoveCondition moveCondition)
        {
            if (moveCondition == null)
            {
                throw new ArgumentNullException(nameof(moveCondition));
            }

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

            TokenDefinitionID = moveCondition.tokenDefinition?.id ?? -1;
        }
 public MoveConditionInfo(MoveConditionType type,
                          MoveConditionTokenType tokenType,
                          PuzzleResourceType resourceType,
                          NumberComparisonType comparison,
                          int tokenDefinitionID,
                          int val,
                          bool boolValue,
                          bool inverse)
 {
     Type              = type;
     TokenType         = tokenType;
     TokenDefinitionID = tokenDefinitionID;
     BoolValue         = boolValue;
     ResourceType      = resourceType;
     Comparison        = comparison;
     Val     = val;
     Inverse = inverse;
 }
Beispiel #8
0
 public AbilityStepInfo(AbilityStepType stepType,
                        AbilityStepValueType valueType,
                        PuzzleResourceType resourceType,
                        PuzzleAffectionType affectionType,
                        AbilityStepConditionType conditionType,
                        AbilityStepVisualEffectType visualEffectType,
                        AbilityStepVisualEffectEnergyType energyType,
                        AbilityStepAilmentAlterType ailmentAlterType,
                        AbilityStepAilmentTargetType ailmentTargetType,
                        NumberCombineOperation combineOperation,
                        GirlValueType girlValueType,
                        ItemType ailmentItemType,
                        string handle,
                        string valueRef,
                        string puzzleSetRef,
                        string minRequirement,
                        string min,
                        string max,
                        string splashText,
                        string limit,
                        float percentOfValue,
                        int ailmentIndex,
                        int ailmentDefinitionID,
                        int energyDefinitionID,
                        bool negative,
                        bool oppositeGirl,
                        bool orCheck,
                        bool merged,
                        bool flatMerge,
                        bool resourceMaxValue,
                        bool weighted,
                        TokenConditionSetInfo tokenConditionSetInfo,
                        AudioKlipInfo audioKlipInfo,
                        List <int> tokenDefinitionIDs,
                        List <string> combineValues)
 {
     StepType              = stepType;
     Handle                = handle;
     ValueRef              = valueRef;
     PuzzleSetRef          = puzzleSetRef;
     MinRequirement        = minRequirement;
     ResourceType          = resourceType;
     AffectionType         = affectionType;
     Negative              = negative;
     OppositeGirl          = oppositeGirl;
     ValueType             = valueType;
     Min                   = min;
     Max                   = max;
     CombineValues         = combineValues;
     CombineOperation      = combineOperation;
     ResourceMaxValue      = resourceMaxValue;
     GirlValueType         = girlValueType;
     ConditionType         = conditionType;
     PercentOfValue        = percentOfValue;
     OrCheck               = orCheck;
     TokenConditionSetInfo = tokenConditionSetInfo;
     Limit                 = limit;
     Merged                = merged;
     FlatMerge             = flatMerge;
     TokenDefinitionIDs    = tokenDefinitionIDs;
     Weighted              = weighted;
     AilmentDefinitionID   = ailmentDefinitionID;
     VisualEffectType      = visualEffectType;
     EnergyType            = energyType;
     EnergyDefinitionID    = energyDefinitionID;
     SplashText            = splashText;
     AudioKlipInfo         = audioKlipInfo;
     AilmentItemType       = ailmentItemType;
     AilmentAlterType      = ailmentAlterType;
     AilmentTargetType     = ailmentTargetType;
     AilmentIndex          = ailmentIndex;
 }