-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
SightKeeper.Data/Binary/Model/DataSets/Tags/PackableBooleanItemProperty.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,15 @@ | ||
using MemoryPack; | ||
using SightKeeper.Domain.Model.DataSets.Poser3D; | ||
|
||
namespace SightKeeper.Data.Binary.Model.DataSets.Tags; | ||
|
||
/// <summary> | ||
/// MemoryPackable version of <see cref="BooleanItemProperty"/> | ||
/// </summary> | ||
[MemoryPackable] | ||
internal sealed partial class PackableBooleanItemProperty : PackableItemProperty | ||
{ | ||
public PackableBooleanItemProperty(string name) : base(name) | ||
{ | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
SightKeeper.Data/Binary/Model/DataSets/Tags/PackableItemProperty.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,16 @@ | ||
using SightKeeper.Domain.Model.DataSets.Poser; | ||
|
||
namespace SightKeeper.Data.Binary.Model.DataSets.Tags; | ||
|
||
/// <summary> | ||
/// MemoryPackable version of <see cref="ItemProperty"/> | ||
/// </summary> | ||
internal abstract class PackableItemProperty | ||
{ | ||
public string Name { get; } | ||
|
||
public PackableItemProperty(string name) | ||
{ | ||
Name = name; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
SightKeeper.Data/Binary/Model/DataSets/Tags/PackableNumericItemProperty.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,20 @@ | ||
using MemoryPack; | ||
using SightKeeper.Domain.Model.DataSets.Poser; | ||
|
||
namespace SightKeeper.Data.Binary.Model.DataSets.Tags; | ||
|
||
/// <summary> | ||
/// MemoryPackable version of <see cref="NumericItemProperty"/> | ||
/// </summary> | ||
[MemoryPackable] | ||
internal sealed partial class PackableNumericItemProperty : PackableItemProperty | ||
{ | ||
public double MinimumValue { get; } | ||
public double MaximumValue { get; } | ||
|
||
public PackableNumericItemProperty(string name, double minimumValue, double maximumValue) : base(name) | ||
{ | ||
MinimumValue = minimumValue; | ||
MaximumValue = 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