修改导回逻辑
This commit is contained in:
parent
72870cfd84
commit
6b2046229a
@ -388,16 +388,56 @@ namespace Logic.Editor
|
||||
}
|
||||
|
||||
item.ID = id;
|
||||
if (cells.Length >= 3) item.ZH = RemoveCsvQuotes(cells[2]);
|
||||
if (cells.Length >= 4) item.TDZH = RemoveCsvQuotes(cells[3]);
|
||||
if (cells.Length >= 5) item.EN = RemoveCsvQuotes(cells[4]);
|
||||
if (cells.Length >= 6) item.JP = RemoveCsvQuotes(cells[5]);
|
||||
if (cells.Length >= 7) item.KR = RemoveCsvQuotes(cells[6]);
|
||||
if (cells.Length >= 8) item.IsProperNoun = MultilingualItem.ParseBoolStr(RemoveCsvQuotes(cells[7]));
|
||||
if (cells.Length >= 9) item.IsDialogue = MultilingualItem.ParseBoolStr(RemoveCsvQuotes(cells[8]));
|
||||
if (cells.Length >= 10) item.DialogueSpeaker = RemoveCsvQuotes(cells[9]);
|
||||
if (cells.Length >= 11) item.IsDeprecated = MultilingualItem.ParseBoolStr(RemoveCsvQuotes(cells[10]));
|
||||
if (cells.Length >= 12) item.IsCustom = MultilingualItem.ParseBoolStr(RemoveCsvQuotes(cells[11]));
|
||||
if (cells.Length >= 3)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[2]);
|
||||
if (!string.IsNullOrEmpty(str)) item.ZH = str;
|
||||
}
|
||||
if (cells.Length >= 4)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[3]);
|
||||
if (!string.IsNullOrEmpty(str)) item.TDZH = str;
|
||||
}
|
||||
if (cells.Length >= 5)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[4]);
|
||||
if (!string.IsNullOrEmpty(str)) item.EN = str;
|
||||
}
|
||||
if (cells.Length >= 6)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[5]);
|
||||
if (!string.IsNullOrEmpty(str)) item.JP = str;
|
||||
}
|
||||
if (cells.Length >= 7)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[6]);
|
||||
if (!string.IsNullOrEmpty(str)) item.KR = str;
|
||||
}
|
||||
if (cells.Length >= 8)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[7]);
|
||||
if (!string.IsNullOrEmpty(str)) item.IsProperNoun = MultilingualItem.ParseBoolStr(str);
|
||||
}
|
||||
if (cells.Length >= 9)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[8]);
|
||||
if (!string.IsNullOrEmpty(str)) item.IsDialogue = MultilingualItem.ParseBoolStr(str);
|
||||
}
|
||||
if (cells.Length >= 10)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[9]);
|
||||
if (!string.IsNullOrEmpty(str)) item.DialogueSpeaker = str;
|
||||
}
|
||||
if (cells.Length >= 11)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[10]);
|
||||
if (!string.IsNullOrEmpty(str)) item.IsDeprecated = MultilingualItem.ParseBoolStr(str);
|
||||
}
|
||||
if (cells.Length >= 12)
|
||||
{
|
||||
var str = RemoveCsvQuotes(cells[11]);
|
||||
if (!string.IsNullOrEmpty(str)) item.IsCustom = MultilingualItem.ParseBoolStr(str);
|
||||
}
|
||||
}
|
||||
|
||||
EditorUtility.SetDirty(_asset);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user