新对话记录
This commit is contained in:
@@ -45,19 +45,24 @@ namespace AibisDream
|
||||
public string line;
|
||||
public CharacterVo actor;
|
||||
public string lineId;
|
||||
public string localizationTableName;
|
||||
|
||||
public static DialogText GetLine(LocalizedLine dialogueLine, string projName)
|
||||
public static DialogText GetLine(LocalizedLine dialogueLine)
|
||||
{
|
||||
return new DialogText
|
||||
{
|
||||
isOption = false,
|
||||
line = dialogueLine.TextWithoutCharacterName.Text,
|
||||
lineId = dialogueLine.TextID,
|
||||
actor = dialogueLine.GetCharacterVo(),
|
||||
localizationTableName = projName
|
||||
actor = dialogueLine.GetCharacterVo()
|
||||
};
|
||||
}
|
||||
|
||||
public string GetRecordLine()
|
||||
{
|
||||
const string allowedTagsPattern = @"(<|{)(?!\/?(b|i|color)(?=>|\s|=))[^(>|})]+(>|})";
|
||||
var res = Regex.Replace(line, allowedTagsPattern, "");
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
public enum StorageEvent
|
||||
|
||||
Reference in New Issue
Block a user