Ejemplo n.º 1
0
 public LocationDataMod(int id,
                        string locationName,
                        LocationType?locationType,
                        AudioKlipInfo bgMusic,
                        float?bgYOffset,
                        SpriteInfo finderLocationIcon,
                        GirlStyleType?dateGirlStyleType,
                        string nonStopOptionText,
                        List <LocationSpecialLabelSubDefinition> specialLabels,
                        List <SpriteInfo> backgrounds,
                        List <LogicBundleInfo> arriveBundleList,
                        List <LogicBundleInfo> departBundleList,
                        bool isAdditive = false)
     : base(id, isAdditive)
 {
     LocationName       = locationName;
     LocationType       = locationType;
     BgMusic            = bgMusic;
     BgYOffset          = bgYOffset;
     FinderLocationIcon = finderLocationIcon;
     DateGirlStyleType  = dateGirlStyleType;
     NonStopOptionText  = nonStopOptionText;
     SpecialLabels      = specialLabels;
     Backgrounds        = backgrounds;
     ArriveBundleList   = arriveBundleList;
     DepartBundleList   = departBundleList;
 }
Ejemplo n.º 2
0
 public LocationDataMod(LocationDefinition def, AssetProvider assetProvider)
     : base(def.id, false)
 {
     LocationName       = def.locationName;
     LocationType       = def.locationType;
     BgMusic            = new AudioKlipInfo(def.bgMusic, assetProvider);
     BgYOffset          = def.bgYOffset;
     FinderLocationIcon = new SpriteInfo(def.finderLocationIcon, assetProvider);
     DateGirlStyleType  = def.dateGirlStyleType;
     NonStopOptionText  = def.nonStopOptionText;
     SpecialLabels      = def.specialLabels;
     Backgrounds        = def.backgrounds.Select(x => new SpriteInfo(x, assetProvider)).ToList();
     ArriveBundleList   = def.arriveBundleList.Select(x => new LogicBundleInfo(x, assetProvider)).ToList();
     DepartBundleList   = def.departBundleList.Select(x => new LogicBundleInfo(x, assetProvider)).ToList();
 }
Ejemplo n.º 3
0
        public TokenDataMod(TokenDefinition def, AssetProvider assetProvider)
            : base(def.id, false)
        {
            TokenName              = def.tokenName;
            ResourceName           = def.resourceName;
            ResourceSign           = def.resourceSign;
            ResourceType           = def.resourceType;
            AffectionType          = def.affectionType;
            Weight                 = def.weight;
            DifficultyWeightOffset = def.difficultyWeightOffset;
            BonusWeight            = def.bonusWeight;
            Negative               = def.negative;
            AltBonusSprite         = def.altBonusSprite;

            if (def.tokenSprite != null)
            {
                TokenSpriteInfo = new SpriteInfo(def.tokenSprite, assetProvider);
            }
            if (def.overSprite != null)
            {
                OverSpriteInfo = new SpriteInfo(def.overSprite, assetProvider);
            }
            if (def.altTokenSprite != null)
            {
                AltTokenSpriteInfo = new SpriteInfo(def.altTokenSprite, assetProvider);
            }
            if (def.altOverSprite != null)
            {
                AltOverSpriteInfo = new SpriteInfo(def.altOverSprite, assetProvider);
            }
            if (def.sfxMatch != null)
            {
                SfxMatchInfo = new AudioKlipInfo(def.sfxMatch, assetProvider);
            }

            EnergyDefinitionID = def.energyDefinition?.id ?? -1;
        }
Ejemplo n.º 4
0
 public TokenDataMod(int id,
                     string tokenName,
                     string resourceName,
                     string resourceSign,
                     PuzzleResourceType?resourceType,
                     PuzzleAffectionType?affectionType,
                     int?weight,
                     int[] difficultyWeightOffset,
                     int?bonusWeight,
                     bool?negative,
                     bool?altBonusSprite,
                     SpriteInfo tokenSpriteInfo,
                     SpriteInfo overSpriteInfo,
                     SpriteInfo altTokenSpriteInfo,
                     SpriteInfo altOverSpriteInfo,
                     int?energyDefinitionID,
                     AudioKlipInfo sfxMatchInfo,
                     bool isAdditive = false)
     : base(id, isAdditive)
 {
     TokenName              = tokenName;
     ResourceName           = resourceName;
     ResourceSign           = resourceSign;
     ResourceType           = resourceType;
     AffectionType          = affectionType;
     Weight                 = weight;
     DifficultyWeightOffset = difficultyWeightOffset;
     BonusWeight            = bonusWeight;
     Negative               = negative;
     AltBonusSprite         = altBonusSprite;
     TokenSpriteInfo        = tokenSpriteInfo;
     OverSpriteInfo         = overSpriteInfo;
     AltTokenSpriteInfo     = altTokenSpriteInfo;
     AltOverSpriteInfo      = altOverSpriteInfo;
     EnergyDefinitionID     = energyDefinitionID;
     SfxMatchInfo           = sfxMatchInfo;
 }