示例#1
0
 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;
 }
示例#2
0
 private void SaveNeededTokens(DialogCondition p_condition)
 {
     if (p_condition is TokenAcquiredCondition)
     {
         m_neededTokens.Add(((TokenAcquiredCondition)p_condition).TokenID);
     }
 }
示例#3
0
 public bool Equals(DialogCondition other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.Op.Equals(Op) &&
            other.Left.Equals(Left) &&
            other.Right.Equals(Right));
 }
示例#4
0
 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;
 }