/// <summary> /// Creates a fully-defined <see cref="MethodCall"/> for any splice. /// </summary> /// <param name="method">The <see cref="Method"/> being spliced to.</param> /// <param name="location">The location of the splice.</param> /// <param name="splice_end_index">How far from the lead end of the last method the splice takes effect (should be negative). See <see cref="splice_start_index"/>.</param> /// <param name="splice_start_index">How far through the lead of the next method the splice starts (should be positive). See <see cref="splice_end_index"/>.</param> public MethodCall(Method method, Touch.ICallLocation location, int splice_end_index, int splice_start_index = 0) { this.method = method; this.location = location; this.splice_start_index = splice_end_index; this.splice_end_index = splice_start_index; }
/// <summary> /// Creates a fully-defined <see cref="MethodCall"/> for a lead-end to lead-end splice. /// </summary> /// <param name="method">The <see cref="Method"/> being spliced to.</param> /// <param name="location">The location of the splice.</param> public MethodCall(Method method, Touch.ICallLocation location) { this.method = method; this.location = location; }
/// <summary> /// Creates a fully-defined <see cref="BasicCall"/>. /// </summary> /// <param name="call">The call being called.</param> /// <param name="call_location">The location of the call.</param> public BasicCall(Call call, Touch.ICallLocation call_location) { this.call = call; this.call_location = call_location; }