136 lines
2.3 KiB
C#
136 lines
2.3 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: vip.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemVip : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "vip";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 1:vip 2:商城特殊
|
||
|
/// 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[] unlockA
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 混合变现解锁条件
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int[] unlockB
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 权益
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public int[][] rights
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 每日奖励
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public int adGiftBox
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 付费礼包
|
||
|
/// index:8
|
||
|
/// </summary>
|
||
|
public int freeGiftBox
|
||
|
{
|
||
|
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);
|
||
|
unlockA = list.GetIntArray(4);
|
||
|
unlockB = list.GetIntArray(5);
|
||
|
rights = list.GetIntArray2(6);
|
||
|
adGiftBox = list.GetInt(7);
|
||
|
freeGiftBox = list.GetInt(8);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemVip> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("Vip");
|
||
|
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 ItemVip CreateThis()
|
||
|
{
|
||
|
return new ItemVip();
|
||
|
}
|
||
|
}
|
||
|
}
|