气泡组件和配置项
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
namespace AibisDream.Config
|
||||
{
|
||||
public class Character
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string Cn { get; set; }
|
||||
public string NameColor { get; set; }
|
||||
public string HeadPicPath { get; set; }
|
||||
public string VoicePath { get; set; }
|
||||
public ActorRole Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 避免干扰,复制结构体出来使用
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public CharacterVo GetStructVo()
|
||||
{
|
||||
CharacterVo vo;
|
||||
vo.key = Key;
|
||||
vo.cn = Cn;
|
||||
vo.nameColor = NameColor;
|
||||
vo.headPicPath = HeadPicPath;
|
||||
vo.voicePath = VoicePath;
|
||||
vo.role = Role;
|
||||
return vo;
|
||||
}
|
||||
}
|
||||
|
||||
public struct CharacterVo
|
||||
{
|
||||
public string key;
|
||||
public string cn;
|
||||
public string nameColor;
|
||||
public string headPicPath;
|
||||
public string voicePath;
|
||||
public ActorRole role;
|
||||
}
|
||||
|
||||
public enum ActorRole
|
||||
{
|
||||
Aside,
|
||||
Player,
|
||||
MainActor
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user