136 lines
2.5 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: level.xlsx
/// </summary>
public partial class ItemChapter : Item, IItem
{
public const string ASSET_NAME = "level";
/// <summary>
/// 章节描述
/// index:1
/// </summary>
public string name
{
get; private set;
}
/// <summary>
/// 章节名位置
/// index:2
/// </summary>
public int[] iconPos
{
get; private set;
}
/// <summary>
/// 地图场景
/// index:3
/// </summary>
public string mapAsset
{
get; private set;
}
/// <summary>
/// 地图坐标
/// index:4
/// </summary>
public int[] mapPos
{
get; private set;
}
/// <summary>
/// 场景ID
/// index:5
/// </summary>
public int[] levels
{
get; private set;
}
/// <summary>
///
/// index:6
/// </summary>
public string atlas
{
get; private set;
}
/// <summary>
///
/// index:7
/// </summary>
public int[][] rewards
{
get; private set;
}
/// <summary>
/// [0章节福袋,1广告宝箱,2高级宝箱,3高级宝箱保底,4神话宝箱5神话保底宝箱,6材料宝箱,7材料保底宝箱,8广告宝箱,9钻石宝箱,10高级钻石宝箱11普通货币宝箱]
/// index:8
/// </summary>
public int[] shopBox
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
name = list.GetString(1);
iconPos = list.GetIntArray(2);
mapAsset = list.GetString(3);
mapPos = list.GetIntArray(4);
levels = list.GetIntArray(5);
atlas = list.GetString(6);
rewards = list.GetIntArray2(7);
shopBox = list.GetIntArray(8);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemChapter> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("Chapter");
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 ItemChapter CreateThis()
{
return new ItemChapter();
}
}
}