76 lines
1.9 KiB
C#
76 lines
1.9 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: tutorial.xlsx
|
||
|
/// </summary>
|
||
|
public partial class ItemTutorialCondition : Item, IItem
|
||
|
{
|
||
|
public const string ASSET_NAME = "tutorial";
|
||
|
|
||
|
/// <summary>
|
||
|
/// 1Level开始 2Level结束 3开始Stage 4结束Stage 5Level时间 6Stage时间 11获得道具 12背包已满 21地图交互 22打开界面 23关闭界面 31角色状态 40结算界面 41死亡结算 42首次通关 43关闭引导界面
|
||
|
/// index:1
|
||
|
/// </summary>
|
||
|
public int type
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 类型1 目标场景ID 类型2 填写达到的等级 类型3 填写stageId 类型4 目标关卡ID 类型5 填写章节ID 类型6 目标关卡ID 类型7 目标关卡ID 类型8 目标关卡ID 类型9 目标场景ID
|
||
|
/// index:2
|
||
|
/// </summary>
|
||
|
public int target
|
||
|
{
|
||
|
get; private set;
|
||
|
}
|
||
|
|
||
|
public void Load(IList<object> list)
|
||
|
{
|
||
|
id = list.GetInt(0);
|
||
|
type = list.GetInt(1);
|
||
|
target = list.GetInt(2);
|
||
|
}
|
||
|
|
||
|
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemTutorialCondition> result)
|
||
|
{
|
||
|
if (result == null)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
var list = dictionary.GetList("TutorialCondition");
|
||
|
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 ItemTutorialCondition CreateThis()
|
||
|
{
|
||
|
return new ItemTutorialCondition();
|
||
|
}
|
||
|
}
|
||
|
}
|