196 lines
3.2 KiB
C#
196 lines
3.2 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 ItemShopBox : Item, IItem
|
|
{
|
|
public const string ASSET_NAME = "shop";
|
|
|
|
/// <summary>
|
|
/// 类型
|
|
/// index:1
|
|
/// </summary>
|
|
public int type
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 宝箱名
|
|
/// index:2
|
|
/// </summary>
|
|
public string name
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 宝箱图标
|
|
/// index:3
|
|
/// </summary>
|
|
public string[] icon
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 保底
|
|
/// index:4
|
|
/// </summary>
|
|
public int random
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 掉落宝箱
|
|
/// index:5
|
|
/// </summary>
|
|
public int dropBox
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 保底宝箱
|
|
/// index:6
|
|
/// </summary>
|
|
public int randomBox
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 单抽价格
|
|
/// index:7
|
|
/// </summary>
|
|
public int[] price
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 10连抽价格
|
|
/// index:8
|
|
/// </summary>
|
|
public int[] multiPrice
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 免费倒计时
|
|
/// index:9
|
|
/// </summary>
|
|
public int freeTime
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 广告次数上限
|
|
/// index:10
|
|
/// </summary>
|
|
public int adTimeId
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 开启间隔
|
|
/// index:11
|
|
/// </summary>
|
|
public int openInterval
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 宝箱奖励描述
|
|
/// index:12
|
|
/// </summary>
|
|
public int descriptionId
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 钥匙
|
|
/// index:13
|
|
/// </summary>
|
|
public int[] keyPrice
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 宝箱奖励规则
|
|
/// index:14
|
|
/// </summary>
|
|
public string tips
|
|
{
|
|
get; private set;
|
|
}
|
|
|
|
public void Load(IList<object> list)
|
|
{
|
|
id = list.GetInt(0);
|
|
type = list.GetInt(1);
|
|
name = list.GetString(2);
|
|
icon = list.GetStringArray(3);
|
|
random = list.GetInt(4);
|
|
dropBox = list.GetInt(5);
|
|
randomBox = list.GetInt(6);
|
|
price = list.GetIntArray(7);
|
|
multiPrice = list.GetIntArray(8);
|
|
freeTime = list.GetInt(9);
|
|
adTimeId = list.GetInt(10);
|
|
openInterval = list.GetInt(11);
|
|
descriptionId = list.GetInt(12);
|
|
keyPrice = list.GetIntArray(13);
|
|
tips = list.GetString(14);
|
|
}
|
|
|
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemShopBox> result)
|
|
{
|
|
if (result == null)
|
|
{
|
|
return false;
|
|
}
|
|
var list = dictionary.GetList("ShopBox");
|
|
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 ItemShopBox CreateThis()
|
|
{
|
|
return new ItemShopBox();
|
|
}
|
|
}
|
|
}
|