276 lines
4.8 KiB
C#
276 lines
4.8 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: level.xlsx
|
|||
|
/// </summary>
|
|||
|
public partial class ItemLevel : Item, IItem
|
|||
|
{
|
|||
|
public const string ASSET_NAME = "level";
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 章节名
|
|||
|
/// index:1
|
|||
|
/// </summary>
|
|||
|
public string name
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 关卡类型 1:打怪 2:无尽
|
|||
|
/// index:2
|
|||
|
/// </summary>
|
|||
|
public int type
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 初始地图
|
|||
|
/// index:3
|
|||
|
/// </summary>
|
|||
|
public int[] startStage
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 层数
|
|||
|
/// index:4
|
|||
|
/// </summary>
|
|||
|
public int stageTier
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 终点(Boss关)
|
|||
|
/// index:5
|
|||
|
/// </summary>
|
|||
|
public int[] endStage
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 技能商店礼包ID
|
|||
|
/// index:6
|
|||
|
/// </summary>
|
|||
|
public int[] skillCardPackage
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 技能点
|
|||
|
/// index:7
|
|||
|
/// </summary>
|
|||
|
public int skillCardPoint
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 地图坐标点
|
|||
|
/// index:8
|
|||
|
/// </summary>
|
|||
|
public int[] iconPos
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 关卡掉落展示
|
|||
|
/// index:9
|
|||
|
/// </summary>
|
|||
|
public int[] drop
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 关卡插图
|
|||
|
/// index:10
|
|||
|
/// </summary>
|
|||
|
public string figure
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 关卡描述
|
|||
|
/// index:11
|
|||
|
/// </summary>
|
|||
|
public string description
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 关卡难度系数
|
|||
|
/// index:12
|
|||
|
/// </summary>
|
|||
|
public int[] difficulty
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 战力压制
|
|||
|
/// index:13
|
|||
|
/// </summary>
|
|||
|
public int requireCV
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 每关产出经验
|
|||
|
/// index:14
|
|||
|
/// </summary>
|
|||
|
public int levelExp
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// [金币宝箱,普通宝箱ID,稀有宝箱ID,随机宝箱ID]
|
|||
|
/// index:15
|
|||
|
/// </summary>
|
|||
|
public int[] shopBox
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// index:16
|
|||
|
/// </summary>
|
|||
|
public string[] unlockIcon
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 解锁标识
|
|||
|
/// index:17
|
|||
|
/// </summary>
|
|||
|
public int unlockTips
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 1:基础怪 2:精英怪 3:远程(弓箭兵) 4:远程(闪电兵) 5:远程(炸弹兵) 6:自爆兵 7:特殊兵种1 8:特殊兵种2 9:基础Boss 10:Boss [1,2,3,4,5,6,7,8,9,10]
|
|||
|
/// index:18
|
|||
|
/// </summary>
|
|||
|
public int[] enemies
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 路段宝箱
|
|||
|
/// index:19
|
|||
|
/// </summary>
|
|||
|
public int[] boxes
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 剧情
|
|||
|
/// index:20
|
|||
|
/// </summary>
|
|||
|
public int[][] stories
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 地图资源
|
|||
|
/// index:21
|
|||
|
/// </summary>
|
|||
|
public string[] assets
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// index:22
|
|||
|
/// </summary>
|
|||
|
public int[] rewards
|
|||
|
{
|
|||
|
get; private set;
|
|||
|
}
|
|||
|
|
|||
|
public void Load(IList<object> list)
|
|||
|
{
|
|||
|
id = list.GetInt(0);
|
|||
|
name = list.GetString(1);
|
|||
|
type = list.GetInt(2);
|
|||
|
startStage = list.GetIntArray(3);
|
|||
|
stageTier = list.GetInt(4);
|
|||
|
endStage = list.GetIntArray(5);
|
|||
|
skillCardPackage = list.GetIntArray(6);
|
|||
|
skillCardPoint = list.GetInt(7);
|
|||
|
iconPos = list.GetIntArray(8);
|
|||
|
drop = list.GetIntArray(9);
|
|||
|
figure = list.GetString(10);
|
|||
|
description = list.GetString(11);
|
|||
|
difficulty = list.GetIntArray(12);
|
|||
|
requireCV = list.GetInt(13);
|
|||
|
levelExp = list.GetInt(14);
|
|||
|
shopBox = list.GetIntArray(15);
|
|||
|
unlockIcon = list.GetStringArray(16);
|
|||
|
unlockTips = list.GetInt(17);
|
|||
|
enemies = list.GetIntArray(18);
|
|||
|
boxes = list.GetIntArray(19);
|
|||
|
stories = list.GetIntArray2(20);
|
|||
|
assets = list.GetStringArray(21);
|
|||
|
rewards = list.GetIntArray(22);
|
|||
|
}
|
|||
|
|
|||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemLevel> result)
|
|||
|
{
|
|||
|
if (result == null)
|
|||
|
{
|
|||
|
return false;
|
|||
|
}
|
|||
|
var list = dictionary.GetList("Level");
|
|||
|
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 ItemLevel CreateThis()
|
|||
|
{
|
|||
|
return new ItemLevel();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|