Files
AdamuSw/src/Persistence/BasicModel/BattleZoneDefinition.Generated.cs
2026-07-14 19:00:35 +03:00

118 lines
3.5 KiB
C#

// <copyright file="BattleZoneDefinition.Generated.cs" company="MUnique">
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// </copyright>
//------------------------------------------------------------------------------
// <auto-generated>
// This source code was auto-generated by a roslyn code generator.
// </auto-generated>
//------------------------------------------------------------------------------
// ReSharper disable All
namespace MUnique.OpenMU.Persistence.BasicModel;
using MUnique.OpenMU.Persistence.Json;
/// <summary>
/// A plain implementation of <see cref="BattleZoneDefinition"/>.
/// </summary>
public partial class BattleZoneDefinition : MUnique.OpenMU.DataModel.Configuration.BattleZoneDefinition, IIdentifiable, IConvertibleTo<BattleZoneDefinition>
{
/// <summary>
/// Gets or sets the identifier of this instance.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets the raw object of <see cref="Ground" />.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyName("ground")]
public Rectangle RawGround
{
get => base.Ground as Rectangle;
set => base.Ground = value;
}
/// <inheritdoc/>
[System.Text.Json.Serialization.JsonIgnore]
public override MUnique.OpenMU.DataModel.Configuration.Rectangle Ground
{
get => base.Ground;
set => base.Ground = value;
}
/// <summary>
/// Gets the raw object of <see cref="LeftGoal" />.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyName("leftGoal")]
public Rectangle RawLeftGoal
{
get => base.LeftGoal as Rectangle;
set => base.LeftGoal = value;
}
/// <inheritdoc/>
[System.Text.Json.Serialization.JsonIgnore]
public override MUnique.OpenMU.DataModel.Configuration.Rectangle LeftGoal
{
get => base.LeftGoal;
set => base.LeftGoal = value;
}
/// <summary>
/// Gets the raw object of <see cref="RightGoal" />.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyName("rightGoal")]
public Rectangle RawRightGoal
{
get => base.RightGoal as Rectangle;
set => base.RightGoal = value;
}
/// <inheritdoc/>
[System.Text.Json.Serialization.JsonIgnore]
public override MUnique.OpenMU.DataModel.Configuration.Rectangle RightGoal
{
get => base.RightGoal;
set => base.RightGoal = value;
}
/// <inheritdoc />
public override MUnique.OpenMU.DataModel.Configuration.BattleZoneDefinition Clone(MUnique.OpenMU.DataModel.Configuration.GameConfiguration gameConfiguration)
{
var clone = new BattleZoneDefinition();
clone.AssignValuesOf(this, gameConfiguration);
return clone;
}
/// <inheritdoc />
public override void AssignValuesOf(MUnique.OpenMU.DataModel.Configuration.BattleZoneDefinition other, MUnique.OpenMU.DataModel.Configuration.GameConfiguration gameConfiguration)
{
base.AssignValuesOf(other, gameConfiguration);
this.Id = other.GetId();
}
/// <inheritdoc/>
public override bool Equals(object obj)
{
var baseObject = obj as IIdentifiable;
if (baseObject != null)
{
return baseObject.Id == this.Id;
}
return base.Equals(obj);
}
/// <inheritdoc/>
public override int GetHashCode()
{
return this.Id.GetHashCode();
}
/// <inheritdoc/>
public BattleZoneDefinition Convert() => this;
}