146 lines
2.5 KiB
C#
146 lines
2.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace G
|
|
{
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using F;
|
|
using F.Item;
|
|
|
|
/// <summary>
|
|
/// Generated from: shop.xlsx
|
|
/// </summary>
|
|
public partial class ItemShopCharge : Item, IItem
|
|
{
|
|
public const string ASSET_NAME = "shop";
|
|
|
|
/// <summary>
|
|
/// 1:充值 2:周卡 3:月卡 4:永久 5:礼包
|
|
/// index:1
|
|
/// </summary>
|
|
public int type
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 原始价格
|
|
/// index:2
|
|
/// </summary>
|
|
public int price
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 购买内容
|
|
/// index:3
|
|
/// </summary>
|
|
public int[] exchange
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 1:首充
|
|
/// index:4
|
|
/// </summary>
|
|
public int extraFlag
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// index:5
|
|
/// </summary>
|
|
public string extraName
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 礼包的名字
|
|
/// index:6
|
|
/// </summary>
|
|
public string name
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 礼包描述
|
|
/// index:7
|
|
/// </summary>
|
|
public string description
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 道具图标
|
|
/// index:8
|
|
/// </summary>
|
|
public string[] icon
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 每日获得
|
|
/// index:9
|
|
/// </summary>
|
|
public int timeId
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
public void Load(IList<object> list)
|
|
{
|
|
id = list.GetInt(0);
|
|
type = list.GetInt(1);
|
|
price = list.GetInt(2);
|
|
exchange = list.GetIntArray(3);
|
|
extraFlag = list.GetInt(4);
|
|
extraName = list.GetString(5);
|
|
name = list.GetString(6);
|
|
description = list.GetString(7);
|
|
icon = list.GetStringArray(8);
|
|
timeId = list.GetInt(9);
|
|
}
|
|
|
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemShopCharge> result)
|
|
{
|
|
if (result == null)
|
|
{
|
|
return false;
|
|
}
|
|
var list = dictionary.GetList("ShopCharge");
|
|
if (list == null || list.Count == 0)
|
|
{
|
|
return false;
|
|
}
|
|
int i = 0;
|
|
for (int c = list.Count; i < c; i++)
|
|
{
|
|
var item = CreateThis();
|
|
item.Load((IList<object>)list[i]);
|
|
result.Add(item);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private static ItemShopCharge CreateThis()
|
|
{
|
|
return new ItemShopCharge();
|
|
}
|
|
}
|
|
}
|