public DialogChoice(string name, string text, string target = null, DialogCondition condition = null) { this._name = name; this._text = text; this._target = target; this._condition = condition ?? defaultCondition; }
private void SaveNeededTokens(DialogCondition p_condition) { if (p_condition is TokenAcquiredCondition) { m_neededTokens.Add(((TokenAcquiredCondition)p_condition).TokenID); } }
public bool Equals(DialogCondition other) { if (other == null) { return(false); } return(other.Op.Equals(Op) && other.Left.Equals(Left) && other.Right.Equals(Right)); }
public DialogEntry(byte npc, byte type, int message, byte cnd, int cndData01, int cndData02, byte cmd, int cmdData01, int cmdData02) { Npc = npc; Message = message; Type = (DialogType)type; CommandData01 = cmdData01; CommandData02 = cmdData02; ConditionData01 = cndData01; ConditionData02 = cndData02; Command = (DialogCommand)cmd; Condition = (DialogCondition)cnd; }