-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dev/#517-fix-elf-bow-requirements
- Loading branch information
Showing
20 changed files
with
278 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// <copyright file="AttributeDefinition.Custom.cs" company="MUnique"> | ||
// Licensed under the MIT License. See LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace MUnique.OpenMU.Persistence.BasicModel; | ||
|
||
using MUnique.OpenMU.DataModel; | ||
|
||
/// <summary> | ||
/// A plain implementation of <see cref="MUnique.OpenMU.AttributeSystem.AttributeDefinition"/>. | ||
/// </summary> | ||
public partial class AttributeDefinition : | ||
IAssignable, | ||
IAssignable<MUnique.OpenMU.AttributeSystem.AttributeDefinition>, | ||
ICloneable<MUnique.OpenMU.AttributeSystem.AttributeDefinition> | ||
{ | ||
/// <inheritdoc /> | ||
public virtual AttributeSystem.AttributeDefinition Clone(DataModel.Configuration.GameConfiguration gameConfiguration) | ||
{ | ||
var clone = new AttributeDefinition(); | ||
clone.AssignValuesOf(this, gameConfiguration); | ||
return clone; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public virtual void AssignValuesOf(object other, DataModel.Configuration.GameConfiguration gameConfiguration) | ||
{ | ||
if (other is AttributeSystem.AttributeDefinition typedOther) | ||
{ | ||
AssignValuesOf(typedOther, gameConfiguration); | ||
} | ||
} | ||
|
||
/// <inheritdoc /> | ||
public virtual void AssignValuesOf(AttributeSystem.AttributeDefinition other, DataModel.Configuration.GameConfiguration gameConfiguration) | ||
{ | ||
this.Id = other.Id; | ||
this.Designation = other.Designation; | ||
this.Description = other.Description; | ||
this.MaximumValue = other.MaximumValue; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/Persistence/EntityFramework/Model/AttributeDefinition.Custom.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// <copyright file="AttributeDefinition.Custom.cs" company="MUnique"> | ||
// Licensed under the MIT License. See LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace MUnique.OpenMU.Persistence.EntityFramework.Model; | ||
|
||
using MUnique.OpenMU.DataModel; | ||
|
||
/// <summary> | ||
/// The Entity Framework Core implementation of <see cref="MUnique.OpenMU.AttributeSystem.AttributeDefinition"/>. | ||
/// </summary> | ||
|
||
internal partial class AttributeDefinition : | ||
IAssignable, | ||
IAssignable<MUnique.OpenMU.AttributeSystem.AttributeDefinition>, | ||
ICloneable<MUnique.OpenMU.AttributeSystem.AttributeDefinition> | ||
{ | ||
/// <inheritdoc /> | ||
public virtual AttributeSystem.AttributeDefinition Clone(DataModel.Configuration.GameConfiguration gameConfiguration) | ||
{ | ||
var clone = new AttributeDefinition(); | ||
clone.AssignValuesOf(this, gameConfiguration); | ||
return clone; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public virtual void AssignValuesOf(object other, DataModel.Configuration.GameConfiguration gameConfiguration) | ||
{ | ||
if (other is AttributeSystem.AttributeDefinition typedOther) | ||
{ | ||
AssignValuesOf(typedOther, gameConfiguration); | ||
} | ||
} | ||
|
||
/// <inheritdoc /> | ||
public virtual void AssignValuesOf(AttributeSystem.AttributeDefinition other, DataModel.Configuration.GameConfiguration gameConfiguration) | ||
{ | ||
this.Id = other.Id; | ||
this.Designation = other.Designation; | ||
this.Description = other.Description; | ||
this.MaximumValue = other.MaximumValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.