//------------------------------------------------------------------------------ // // 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: story.xlsx /// public partial class ItemStoryAction : Item, IItem { public const string ASSET_NAME = "story"; /// /// 类型 1=选项按钮 2=文本对话 3=选项按钮+头像对话 4=动画对白 5=环境对话 /// index:1 /// public int type { get; private set; } /// /// 对话角色 1=玩家;2=?;3=NPC 1=左;2=中;3=右 1=明;2=暗 [[3,npcid,左中右,明暗]] /// index:2 /// public int[][] talker { get; private set; } /// /// 对白文本 0=无条件 1=主角性别(1男2女) [[条件类型,条件值,对话id1]] /// index:3 /// public string talkings { get; private set; } /// /// type1-选项对话[[text,stage],[text,stage]] /// index:4 /// public IList buttons { get; private set; } /// /// 角色名称参数 [speakerid,称谓1,称谓2] 称谓类型: 1-姓氏(杨) 2-全名(杨玉环) 3-职位(贵妃) 4-名最后一个字(环) 5-封号(端淑) /// index:5 /// public IList talkingsParam { get; private set; } /// /// 自动播放时长 毫秒ms /// index:6 /// public int autoTime { get; private set; } /// /// [[动画id]] /// index:7 /// public IList animation { get; private set; } /// /// 名字框 空-不显示 /// index:8 /// public string namebg { get; private set; } /// /// 背景图 /// index:9 /// public string background { get; private set; } /// /// 对话选项奖励 /// index:10 /// public int drodId { get; private set; } /// /// 音乐 /// index:11 /// public string sound { get; private set; } public void Load(IList list) { id = list.GetInt(0); type = list.GetInt(1); talker = list.GetIntArray2(2); talkings = list.GetString(3); buttons = list.GetList(4); talkingsParam = list.GetList(5); autoTime = list.GetInt(6); animation = list.GetList(7); namebg = list.GetString(8); background = list.GetString(9); drodId = list.GetInt(10); sound = list.GetString(11); } public static bool LoadAll(IDictionary dictionary, List result) { if (result == null) { return false; } var list = dictionary.GetList("StoryAction"); 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 ItemStoryAction CreateThis() { return new ItemStoryAction(); } } }