public override bool Build(SHXmlCore e) { if (!_bPassed) { return(false); } if (!e.Dialogs.IsValid(dialog) || !e.Dialogs[dialog].Passed) { _szCompiled = "퀘스트 종료를 위한 대화문이 정의되어 있지 않거나 오류가 있습니다."; _bPassed = false; return(false); } for (int i = 0; i < dataList.Count; i++) { SHQuestReward reward = (SHQuestReward)dataList[i]; if (reward.Build(e) == false) { return(Error(reward.CompiledMessage)); } } return(_bPassed); }
public object Clone() { SHQuestReward clone = new SHQuestReward(); clone._type = this._type; clone.typeSpecified = this.typeSpecified; clone._param1 = this._param1; clone.param1Specified = this.param1Specified; clone._param2 = this._param2; clone.param2Specified = this.param2Specified; return(clone); }
public override bool Compile() { _bPassed = true; _szCompiled = SHGlobal.C*K; if (!dialogSpecified) { return(Error("퀘스트 보상(Rewards)을 위한 대화문(dialog)이 기술되어 있지 않습니다.")); } for (int i = 0; i < dataList.Count; i++) { SHQuestReward reward = (SHQuestReward)dataList[i]; if (reward.Compile() == false) { return(Error(reward.CompiledMessage)); } } return(_bPassed); }
public void Add(SHQuestReward i) { dataList.Add(i); }