1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 19:38:47 +00:00

Remove With_ methods

This commit is contained in:
Oliver Booth 2022-12-06 13:27:56 +00:00
parent 35684cccca
commit 7422a663af
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -1,5 +1,4 @@
using System.Numerics;
using VpSharp.Internal;
using VpSharp.Internal;
using static VpSharp.Internal.NativeAttributes.StringAttribute;
using static VpSharp.Internal.NativeMethods;
@ -37,41 +36,6 @@ public sealed class VirtualParadiseModelObjectBuilder : VirtualParadiseObjectBui
/// <value>The value of this object's <c>Model</c> field, or <see langword="null" /> to leave unchanged.</value>
public Optional<string> Model { get; set; }
/// <summary>
/// Sets the value of this object's <c>Action</c> field.
/// </summary>
/// <param name="action">The new value of the <c>Action</c> field, or <see langword="null" /> to leave unchanged.</param>
/// <returns>The current instance of this builder.</returns>
public VirtualParadiseModelObjectBuilder WithAction(Optional<string> action)
{
Action = action;
return this;
}
/// <summary>
/// Sets the value of this object's <c>Description</c> field.
/// </summary>
/// <param name="description">
/// The new value of the <c>Description</c> field, or <see langword="null" /> to leave unchanged.
/// </param>
/// <returns>The current instance of this builder.</returns>
public VirtualParadiseModelObjectBuilder WithDescription(Optional<string> description)
{
Description = description;
return this;
}
/// <summary>
/// Sets the value of this object's <c>Model</c> field.
/// </summary>
/// <param name="model">The new value of the <c>Model</c> field, or <see langword="null" /> to leave unchanged.</param>
/// <returns>The current instance of this builder.</returns>
public VirtualParadiseModelObjectBuilder WithModel(Optional<string> model)
{
Model = model;
return this;
}
internal override void ApplyChanges()
{
base.ApplyChanges();