//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace G { using System.Collections; using System.Collections.Generic; using F; using F.Item; /// /// Generated from: tutorial.xlsx /// public partial class ItemTutorialAction : Item, IItem { public const string ASSET_NAME = "tutorial"; /// /// 1=按钮(强,弱) 2=对话 3=气泡 4=装上装备 5=地面文字 6=延时事件, 7=全屏引导 /// index:1 /// public int type { get; private set; } /// /// 参数 /// index:2 /// public int[] typeArgs { get; private set; } /// /// 0 = 旁白(不显示姓名) 1 = 我(显示角色名) 2 = 白公主 /// index:3 /// public int[] speaker { get; private set; } /// /// /// index:4 /// public int[] talkings { get; private set; } /// /// 持续时间 /// index:5 /// public int duration { get; private set; } /// /// 延时时间 /// index:6 /// public int delay { get; private set; } /// /// 触发条件 /// index:7 /// public int[] hand { get; private set; } /// /// /// index:8 /// public string button { get; private set; } public void Load(IList 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 dictionary, List 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)list[i]); result.Add(item); } return true; } private static ItemTutorialAction CreateThis() { return new ItemTutorialAction(); } } }