159 lines
3.4 KiB
C#
159 lines
3.4 KiB
C#
|
||
using System.Collections.Generic;
|
||
|
||
public static class RewardConst
|
||
{
|
||
//public static readonly Dictionary<TokenType, int> token_Fake = new Dictionary<TokenType, int>() {
|
||
// {TokenType.Gold, 9501001},
|
||
// {TokenType.RMB, 9501002},
|
||
|
||
// {TokenType.PaiWeiSai_JiFen, 9501002},
|
||
|
||
// {TokenType.Collection_HeroCamp_1, 9502001},
|
||
// {TokenType.Collection_HeroCamp_2, 9502002},
|
||
// {TokenType.Collection_HeroCamp_3, 9502003},
|
||
// {TokenType.Collection_HeroCamp_4, 9502004},
|
||
// {TokenType.Collection_HeroCamp_5, 9502005},
|
||
|
||
// {TokenType.Collection_MonsterCamp_1, 9502006},
|
||
// {TokenType.Collection_MonsterCamp_2, 9502007},
|
||
// {TokenType.Collection_MonsterCamp_3, 9502008},
|
||
// {TokenType.Collection_MonsterCamp_4, 9502009},
|
||
// {TokenType.Collection_MonsterCamp_5, 9502010},
|
||
//};
|
||
|
||
/// <summary>
|
||
/// 道具品质
|
||
/// </summary>
|
||
public static readonly Dictionary<PropQuality, string> propQuality = new Dictionary<PropQuality, string>() {
|
||
{PropQuality.Green, "wp_wk_greed"},
|
||
{PropQuality.Bule, "wp_wk_blue"},
|
||
{PropQuality.Purple, "wp_wk_purple"},
|
||
{PropQuality.Gold, "wp_wk_gold"},
|
||
{PropQuality.Red, "wp_wk_red"},
|
||
};
|
||
|
||
/// <summary>
|
||
/// 道具品质
|
||
/// </summary>
|
||
public static readonly Dictionary<PropQuality, string> propQuality_text = new Dictionary<PropQuality, string>() {
|
||
{PropQuality.Green, "N"},
|
||
{PropQuality.Bule, "R"},
|
||
{PropQuality.Purple, "SR"},
|
||
{PropQuality.Gold, "SSR"},
|
||
{PropQuality.Red, "UR"},
|
||
};
|
||
}
|
||
|
||
public enum PropQuality : int
|
||
{
|
||
Green = 1,
|
||
Bule = 2,
|
||
Purple = 3,
|
||
Gold = 4,
|
||
Red = 5
|
||
}
|
||
|
||
public enum RewardType : int
|
||
{
|
||
Exp = 2,
|
||
Item = 4,
|
||
Hero = 5,
|
||
Relic = 9,
|
||
Coin = 13,
|
||
/// <summary>
|
||
/// 特权卡
|
||
/// </summary>
|
||
Privilege = 20,
|
||
Pay = 23,
|
||
}
|
||
|
||
public class RewardItemData
|
||
{
|
||
/// <summary>
|
||
/// 大类型
|
||
/// </summary>
|
||
public int t;
|
||
|
||
/// <summary>
|
||
/// 表id(根据类型读对应的表)
|
||
/// </summary>
|
||
public int itemId;
|
||
/// <summary>
|
||
/// 模板id
|
||
/// </summary>
|
||
public int id;
|
||
|
||
/// <summary>
|
||
/// 货币子类型
|
||
/// </summary>
|
||
public int c;
|
||
|
||
/// <summary>
|
||
/// 数量
|
||
/// </summary>
|
||
public int v;
|
||
|
||
/// <summary>
|
||
/// 数量2
|
||
/// </summary>
|
||
public int amount;
|
||
public int job;
|
||
|
||
public int lv;
|
||
public int star;
|
||
|
||
public int RelicTpId;
|
||
|
||
public int isNew;
|
||
|
||
public int cardId;
|
||
public int day;
|
||
public int heroId;
|
||
|
||
public int extPermillage;
|
||
}
|
||
|
||
public class ParseRewardItem
|
||
{
|
||
//public RewardType type;
|
||
public int itemId;
|
||
public string name;
|
||
/// <summary>
|
||
///图集
|
||
/// </summary>
|
||
public string atlas;
|
||
public string icon;
|
||
public RewardType type;
|
||
public int quality;
|
||
public string msg;
|
||
public int count;
|
||
public int star = 0;
|
||
public int RelicTpId;
|
||
public int day;
|
||
public int cardId;
|
||
public int payGiftId;
|
||
public int heroId;
|
||
}
|
||
|
||
public class CardInformationData
|
||
{
|
||
public string fashion
|
||
{
|
||
set
|
||
{
|
||
fashionData = value.FromJson<CardFashionData>();
|
||
}
|
||
}
|
||
public CardFashionData fashionData;
|
||
}
|
||
|
||
public class CardFashionData
|
||
{
|
||
public int star;
|
||
public int strength;
|
||
public long heroUuid;
|
||
public int lv;
|
||
public int heroTpId;
|
||
}
|