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