/// <summary> /// Compares this mapping to another one, and returns a value indicating which mapping should be checked for a /// match first. The ordering is such that more specific mappings are checked first, so that they trigger even if /// a more generic mapping encompasses the specific one. Hence skippable mappings are treated exactly the same, /// and are only reordered with respect to the single non-skippable mapping that matches the exact same request.</summary> public int CompareTo(UrlMapping other) { var inner = Hook.CompareTo(other.Hook); if (inner != 0) { return(inner); } return(-Skippable.CompareTo(other.Skippable)); }
public void WithSkipableData(Skippable skippable) { Assert.Null(skippable.Skip); Assert.Equal(1, skippable.Data); }
private IEnumerator _FrameSkip(Skippable skippable) { yield return(null); skippable(); }
private void FrameSkip(Skippable skippable) { StartCoroutine(_FrameSkip(skippable)); }