196 lines
3.3 KiB
C#
196 lines
3.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: city.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemCityEvent : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "city";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 1.红颜好感 2.击杀怪物 3.送信任务 4.奇遇任务 5.乞讨任务 6.宠物
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public int type
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public int[] typeArgs
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:3
|
||
|
/// </summary>
|
||
|
public int nameId
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:4
|
||
|
/// </summary>
|
||
|
public int descriptionId
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:5
|
||
|
/// </summary>
|
||
|
public int[] rewards
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:6
|
||
|
/// </summary>
|
||
|
public int rewardBox
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 关联剧情
|
||
|
/// index:7
|
||
|
/// </summary>
|
||
|
public int story
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 选项1
|
||
|
/// index:8
|
||
|
/// </summary>
|
||
|
public int[][] option_1
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 选项1文字
|
||
|
/// index:9
|
||
|
/// </summary>
|
||
|
public string[] matter_1
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:10
|
||
|
/// </summary>
|
||
|
public string[] talk_1
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 选项2
|
||
|
/// index:11
|
||
|
/// </summary>
|
||
|
public int[][] option_2
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 选项2文字
|
||
|
/// index:12
|
||
|
/// </summary>
|
||
|
public string[] matter_2
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:13
|
||
|
/// </summary>
|
||
|
public string[] talk_2
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// index:14
|
||
|
/// </summary>
|
||
|
public string bg
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
type = list.GetInt(1);
|
||
|
typeArgs = list.GetIntArray(2);
|
||
|
nameId = list.GetInt(3);
|
||
|
descriptionId = list.GetInt(4);
|
||
|
rewards = list.GetIntArray(5);
|
||
|
rewardBox = list.GetInt(6);
|
||
|
story = list.GetInt(7);
|
||
|
option_1 = list.GetIntArray2(8);
|
||
|
matter_1 = list.GetStringArray(9);
|
||
|
talk_1 = list.GetStringArray(10);
|
||
|
option_2 = list.GetIntArray2(11);
|
||
|
matter_2 = list.GetStringArray(12);
|
||
|
talk_2 = list.GetStringArray(13);
|
||
|
bg = list.GetString(14);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemCityEvent> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("CityEvent");
|
||
|
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 ItemCityEvent CreateThis()
|
||
|
{
|
||
|
return new ItemCityEvent();
|
||
|
}
|
||
|
}
|
||
|
}
|