176 lines
3.0 KiB
C#
176 lines
3.0 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: home.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemBusiness : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "home";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 主事件标识
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public int type
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 解锁红颜ID
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public int beauty
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 每秒产出类型与数量
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public int[] rewards
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 产出间隔
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int rewardIntervalSeconds
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int rewardTotalSeconds
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 文本
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public string description
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 事件1
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public string matter_1
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 事件1条件
|
||
|
/// index:8
|
||
|
/// </summary>
|
||
|
public int[] option_1
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 事件2
|
||
|
/// index:9
|
||
|
/// </summary>
|
||
|
public string matter_2
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 事件2条件
|
||
|
/// index:10
|
||
|
/// </summary>
|
||
|
public int[] option_2
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 事件3
|
||
|
/// index:11
|
||
|
/// </summary>
|
||
|
public string matter_3
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 事件3条件
|
||
|
/// index:12
|
||
|
/// </summary>
|
||
|
public int[] option_3
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
type = list.GetInt(1);
|
||
|
beauty = list.GetInt(2);
|
||
|
rewards = list.GetIntArray(3);
|
||
|
rewardIntervalSeconds = list.GetInt(4);
|
||
|
rewardTotalSeconds = list.GetInt(5);
|
||
|
description = list.GetString(6);
|
||
|
matter_1 = list.GetString(7);
|
||
|
option_1 = list.GetIntArray(8);
|
||
|
matter_2 = list.GetString(9);
|
||
|
option_2 = list.GetIntArray(10);
|
||
|
matter_3 = list.GetString(11);
|
||
|
option_3 = list.GetIntArray(12);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemBusiness> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("Business");
|
||
|
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 ItemBusiness CreateThis()
|
||
|
{
|
||
|
return new ItemBusiness();
|
||
|
}
|
||
|
}
|
||
|
}
|