156 lines
2.7 KiB
C#
Raw Permalink Normal View History

2025-05-18 01:04:31 +08:00
//------------------------------------------------------------------------------
// <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 ItemShopCard : 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[] dailyGet
{
get; private set;
}
/// <summary>
/// 有效天数
/// index:10
/// </summary>
public int validity
{
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);
dailyGet = list.GetIntArray(9);
validity = list.GetInt(10);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemShopCard> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("ShopCard");
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 ItemShopCard CreateThis()
{
return new ItemShopCard();
}
}
}