68 lines
1.8 KiB
C#
68 lines
1.8 KiB
C#
// <copyright file="SkillEntry.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="SkillEntry"/>.
|
|
/// </summary>
|
|
public partial class SkillEntry : MUnique.OpenMU.DataModel.Entities.SkillEntry, IIdentifiable, IConvertibleTo<SkillEntry>
|
|
{
|
|
|
|
/// <summary>
|
|
/// Gets or sets the identifier of this instance.
|
|
/// </summary>
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the raw object of <see cref="Skill" />.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyName("skill")]
|
|
public Skill RawSkill
|
|
{
|
|
get => base.Skill as Skill;
|
|
set => base.Skill = value;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
public override MUnique.OpenMU.DataModel.Configuration.Skill Skill
|
|
{
|
|
get => base.Skill;
|
|
set => base.Skill = value;
|
|
}
|
|
|
|
|
|
/// <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 SkillEntry Convert() => this;
|
|
}
|