Exemplo n.º 1
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();
            }
        }
Exemplo n.º 2
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;
 }