166 lines
2.9 KiB
C#
Raw 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 ItemShopGift : Item, IItem
{
public const string ASSET_NAME = "shop";
/// <summary>
/// 1.商城每日爬坡 2.礼包每日爬坡 3.礼包每周爬坡 4.VIP免费礼包 5.VIP付费礼包
/// index:1
/// </summary>
public int type
{
get; private set;
}
/// <summary>
///
/// index:2
/// </summary>
public int prev
{
get; private set;
}
/// <summary>
/// 原始价格
/// index:3
/// </summary>
public int[] price
{
get; private set;
}
/// <summary>
/// 购买内容
/// index:4
/// </summary>
public int[] exchange
{
get; private set;
}
/// <summary>
/// 1:首充
/// index:5
/// </summary>
public int extraFlag
{
get; private set;
}
/// <summary>
///
/// index:6
/// </summary>
public string extraName
{
get; private set;
}
/// <summary>
/// 礼包的名字
/// index:7
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 礼包描述
/// index:8
/// </summary>
public string description
{
get; private set;
}
/// <summary>
/// 道具图标
/// index:9
/// </summary>
public string[] icon
{
get; private set;
}
/// <summary>
/// 每日获得
/// index:10
/// </summary>
public int timeId
{
get; private set;
}
/// <summary>
/// 优惠率图标
/// index:11
/// </summary>
public string discount
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
type = list.GetInt(1);
prev = list.GetInt(2);
price = list.GetIntArray(3);
exchange = list.GetIntArray(4);
extraFlag = list.GetInt(5);
extraName = list.GetString(6);
name = list.GetString(7);
description = list.GetString(8);
icon = list.GetStringArray(9);
timeId = list.GetInt(10);
discount = list.GetString(11);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemShopGift> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("ShopGift");
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 ItemShopGift CreateThis()
{
return new ItemShopGift();
}
}
}