/// <summary> /// Are both branch identifiers referencing the same <see cref="DialogTreeBranch"/>? /// </summary> /// <param name="branch">other <see cref="DialogTreeBranchIdentifier"/> to compare</param> /// <returns>true if identifiers reference the same <see cref="DialogTreeBranch"/></returns> public bool Compatible(DialogTreeBranchIdentifier branch) { if (!base.Compatible(branch)) { return(false); } if (DialogTreeBranchId != branch.DialogTreeBranchId) { return(false); } return(true); }
public DialogSegmentIdentifier(DialogTreeBranchIdentifier dialogTree, int dialogSegmentId, DialogTree tree = null, DialogTreeBranch branch = null) : this(dialogTree.DialogTreeId, dialogTree.DialogTreeBranchId, dialogSegmentId, tree, branch) { }
protected bool Equals(DialogTreeBranchIdentifier other) { return(Compatible(other)); }