shaoxiadiablo/Assets/AGame/Scripts/Item/Static/ItemTutorialAction.cs

136 lines
2.5 KiB
C#
Raw 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: tutorial.xlsx
/// </summary>
public partial class ItemTutorialAction : Item, IItem
{
public const string ASSET_NAME = "tutorial";
/// <summary>
/// 1=按钮(强,弱) 2=对话 3=气泡 4=装上装备 5=地面文字 6=延时事件, 7=全屏引导
/// index:1
/// </summary>
public int type
{
get; private set;
}
/// <summary>
/// 参数
/// index:2
/// </summary>
public int[] typeArgs
{
get; private set;
}
/// <summary>
/// 0 = 旁白(不显示姓名) 1 = 我(显示角色名) 2 = 白公主
/// index:3
/// </summary>
public int[] speaker
{
get; private set;
}
/// <summary>
///
/// index:4
/// </summary>
public int[] talkings
{
get; private set;
}
/// <summary>
/// 持续时间
/// index:5
/// </summary>
public int duration
{
get; private set;
}
/// <summary>
/// 延时时间
/// index:6
/// </summary>
public int delay
{
get; private set;
}
/// <summary>
/// 触发条件
/// index:7
/// </summary>
public int[] hand
{
get; private set;
}
/// <summary>
///
/// index:8
/// </summary>
public string button
{
get; private set;
}
public void Load(IList<object> list)
{
id = list.GetInt(0);
type = list.GetInt(1);
typeArgs = list.GetIntArray(2);
speaker = list.GetIntArray(3);
talkings = list.GetIntArray(4);
duration = list.GetInt(5);
delay = list.GetInt(6);
hand = list.GetIntArray(7);
button = list.GetString(8);
}
public static bool LoadAll(IDictionary<string, object> dictionary, List<ItemTutorialAction> result)
{
if (result == null)
{
return false;
}
var list = dictionary.GetList("TutorialAction");
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 ItemTutorialAction CreateThis()
{
return new ItemTutorialAction();
}
}
}