Exemple #1
0
        /// <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);
        }
Exemple #2
0
 public DialogSegmentIdentifier(DialogTreeBranchIdentifier dialogTree, int dialogSegmentId, DialogTree tree = null, DialogTreeBranch branch = null)
     : this(dialogTree.DialogTreeId, dialogTree.DialogTreeBranchId, dialogSegmentId, tree, branch)
 {
 }
Exemple #3
0
 protected bool Equals(DialogTreeBranchIdentifier other)
 {
     return(Compatible(other));
 }