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