public void SyntaxCheck(string fileName) { var codeList = TextConverter.Convert(GetData()).ToList(); CodeData tempcode = new EndCode(); foreach (var code in codeList) { var codeData = tempcode.CreateCodeData(code, this); if (codeData == null) { ThrowErrorLog(null, fileName, "ヘッダーが不正な値です", name, code._head); break; } else { tempcode = codeData; } } }
public void SetEventData(EventCodeScriptable data) { if (data == null) { Debug.Log("SetEventData: data is null"); return; } _nowScriptable = data; var dataList = TextConverter.Convert(data.GetData()); CodeData nowCode = new EndCode(); while (dataList.Count != 0) { var target = dataList.Dequeue(); var nextCode = nowCode.CreateCodeData(target, data); if (nextCode.Equals(nowCode)) { continue; } nowCode = nextCode; _codeList.Enqueue(nextCode); } }