对话回顾
This commit is contained in:
@@ -34,6 +34,15 @@ namespace AibisDream.Kit
|
||||
public string headPicPath;
|
||||
public string voicePath;
|
||||
public ActorRole role;
|
||||
|
||||
/// <summary>
|
||||
/// 获取角色应该显示的名字
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string GetActorName()
|
||||
{
|
||||
return string.IsNullOrEmpty(nameColor) ? cn : $"<color={nameColor}>{cn}</color>";
|
||||
}
|
||||
}
|
||||
|
||||
public enum ActorRole
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace AibisDream.Framework
|
||||
var kv = key.ToInt32(null);
|
||||
|
||||
if (!_eventDict.TryGetValue(typeof(T), out var e)) return;
|
||||
if (e.Length >= kv || e[kv] == null) return;
|
||||
if (e.Length <= kv || e[kv] == null) return;
|
||||
|
||||
if (e[kv] is EasyEvent tempEvent)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace AibisDream.Framework
|
||||
var kv = key.ToInt32(null);
|
||||
|
||||
if (!_eventDict.TryGetValue(typeof(T), out var e)) return;
|
||||
if (e.Length >= kv || e[kv] == null) return;
|
||||
if (e.Length <= kv || e[kv] == null) return;
|
||||
|
||||
e[kv].UnRegisterAll();
|
||||
}
|
||||
@@ -120,7 +120,7 @@ namespace AibisDream.Framework
|
||||
var kv = key.ToInt32(null);
|
||||
|
||||
if (!_eventDict.TryGetValue(typeof(T), out var e)) return;
|
||||
if (e.Length >= kv || e[kv] == null) return;
|
||||
if (e.Length <= kv || e[kv] == null) return;
|
||||
|
||||
if (e[kv] is EasyEvent tempEvent)
|
||||
{
|
||||
@@ -133,7 +133,7 @@ namespace AibisDream.Framework
|
||||
var kv = key.ToInt32(null);
|
||||
|
||||
if (!_eventDict.TryGetValue(typeof(T), out var e)) return;
|
||||
if (e.Length >= kv || e[kv] == null) return;
|
||||
if (e.Length <= kv || e[kv] == null) return;
|
||||
|
||||
if (e[kv] is EasyEvent<TE> tempEvent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user