Пример #1
0
        public void ReadRow(Row row)
        {
            this.Uid       = row.Uid;
            this.Title     = row.TryGetString(SaleTypeVO.COLUMN_title);
            this.SaleItems = row.TryGetStringArray(SaleTypeVO.COLUMN_saleItems);
            string dateString  = row.TryGetString(SaleTypeVO.COLUMN_startDate);
            string dateString2 = row.TryGetString(SaleTypeVO.COLUMN_endDate);

            this.StartTimestamp = TimedEventUtils.GetTimestamp(this.Uid, dateString);
            this.EndTimestamp   = TimedEventUtils.GetTimestamp(this.Uid, dateString2);
        }
Пример #2
0
        public void ReadRow(Row row)
        {
            this.Uid      = row.Uid;
            this.PlanetId = row.TryGetString(TournamentVO.COLUMN_planetId);
            string dateString  = row.TryGetString(TournamentVO.COLUMN_startDate);
            string dateString2 = row.TryGetString(TournamentVO.COLUMN_endDate);

            this.BackgroundTextureName = row.TryGetString(TournamentVO.COLUMN_backgroundTextureName);
            this.StartingRating        = row.TryGetInt(TournamentVO.COLUMN_startingRating);
            this.RewardGroupId         = row.TryGetString(TournamentVO.COLUMN_rewardGroupId);
            this.RewardBanner          = row.TryGetInt(TournamentVO.COLUMN_rewardBanner);
            this.StartTimestamp        = TimedEventUtils.GetTimestamp(this.Uid, dateString);
            this.EndTimestamp          = TimedEventUtils.GetTimestamp(this.Uid, dateString2);
        }
Пример #3
0
 public void ReadRow(Row row)
 {
     this.Uid                              = row.Uid;
     this.StartTime                        = TimedEventUtils.GetTimestamp(this.Uid, row.TryGetString(StickerVO.COLUMN_startDate));
     this.EndTime                          = TimedEventUtils.GetTimestamp(this.Uid, row.TryGetString(StickerVO.COLUMN_endDate));
     this.Type                             = StringUtils.ParseEnum <StickerType>(row.TryGetString(StickerVO.COLUMN_type));
     this.IconAsset                        = row.TryGetString(StickerVO.COLUMN_iconAsset);
     this.LabelText                        = row.TryGetString(StickerVO.COLUMN_labelKey);
     this.LabelColor                       = row.TryGetHexValueString(StickerVO.COLUMN_labelColor);
     this.GradientColor                    = row.TryGetHexValueString(StickerVO.COLUMN_gradientColor);
     this.Priority                         = row.TryGetInt(StickerVO.COLUMN_priority);
     this.AudienceConditions               = row.TryGetStringArray(StickerVO.COLUMN_audienceConditions);
     this.MainColor                        = row.TryGetHexValueString(StickerVO.COLUMN_mainColor);
     this.TextureOverrideAssetNameRebel    = row.TryGetString(StickerVO.COLUMN_textureOverrideRebel);
     this.TextureOverrideAssetBundleRebel  = row.TryGetString(StickerVO.COLUMN_textureOverrideRebelAssetBundle);
     this.TextureOverrideAssetNameEmpire   = row.TryGetString(StickerVO.COLUMN_textureOverrideEmpire);
     this.TextureOverrideAssetBundleEmpire = row.TryGetString(StickerVO.COLUMN_textureOverrideEmpireAssetBundle);
 }
Пример #4
0
        public void ReadRow(Row row)
        {
            this.Uid           = row.Uid;
            this.SupplyDataUid = row.TryGetString(PlanetLootEntryVO.COLUMN_supplyDataUid);
            this.MinHQ         = row.TryGetInt(PlanetLootEntryVO.COLUMN_minHQ);
            this.MaxHQ         = row.TryGetInt(PlanetLootEntryVO.COLUMN_maxHQ);
            this.ReqArmory     = row.TryGetBool(PlanetLootEntryVO.COLUMN_reqArmory);
            this.Badge         = row.TryGetBool(PlanetLootEntryVO.COLUMN_badge);
            string text  = row.TryGetString(PlanetLootEntryVO.COLUMN_showDate);
            string text2 = row.TryGetString(PlanetLootEntryVO.COLUMN_hideDate);

            if (!string.IsNullOrEmpty(text))
            {
                this.ShowDateTimeStamp = TimedEventUtils.GetTimestamp(this.Uid, text);
            }
            if (!string.IsNullOrEmpty(text2))
            {
                this.HideDateTimeStamp = TimedEventUtils.GetTimestamp(this.Uid, text2);
            }
            this.FeatureAssetName   = row.TryGetString(PlanetLootEntryVO.COLUMN_featureAssetName);
            this.FeatureAssetBundle = row.TryGetString(PlanetLootEntryVO.COLUMN_featureAssetBundle);
            this.NotesString        = row.TryGetString(PlanetLootEntryVO.COLUMN_notesString);
            this.TypeStringID       = row.TryGetString(PlanetLootEntryVO.COLUMN_typeString);
        }
Пример #5
0
        public void ReadRow(Row row)
        {
            this.Uid         = row.Uid;
            this.Faction     = StringUtils.ParseEnum <FactionType>(row.TryGetString(CampaignVO.COLUMN_faction));
            this.Title       = row.TryGetString(CampaignVO.COLUMN_title);
            this.Timed       = row.TryGetBool(CampaignVO.COLUMN_timed);
            this.UnlockOrder = row.TryGetInt(CampaignVO.COLUMN_unlockOrder);
            this.Description = row.TryGetString(CampaignVO.COLUMN_description);
            this.BundleName  = row.TryGetString(CampaignVO.COLUMN_bundleName);
            this.AssetName   = row.TryGetString(CampaignVO.COLUMN_assetName);
            this.Reward      = row.TryGetString(CampaignVO.COLUMN_reward);
            string dateString  = row.TryGetString(CampaignVO.COLUMN_startDate);
            string dateString2 = row.TryGetString(CampaignVO.COLUMN_endDate);

            this.IntroStory        = row.TryGetString(CampaignVO.COLUMN_introStory);
            this.PurchaseLimit     = row.TryGetInt(CampaignVO.COLUMN_purchaseLimit);
            this.TotalMasteryStars = 0;
            this.TotalMissions     = 0;
            if (this.Timed)
            {
                this.StartTimestamp = TimedEventUtils.GetTimestamp(this.Uid, dateString);
                this.EndTimestamp   = TimedEventUtils.GetTimestamp(this.Uid, dateString2);
            }
        }