Skip to content

Commit

Permalink
SharedLib: Data are readonly record structs.
Browse files Browse the repository at this point in the history
In case have to modify them use the 'with' keyword
  • Loading branch information
Xian55 committed Dec 5, 2023
1 parent c056497 commit 2f007fa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SharedLib/Data/Creature.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SharedLib;

public readonly struct Creature
public readonly record struct Creature
{
public int Entry { get; init; }
public string Name { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion SharedLib/Data/Item.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SharedLib;

public readonly struct Item
public readonly record struct Item
{
public int Entry { get; init; }
public string Name { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion SharedLib/Data/Spell.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SharedLib;

public readonly struct Spell
public readonly record struct Spell
{
public int Id { get; init; }
public string Name { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion SharedLib/Data/TalentTab.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SharedLib;

public readonly struct TalentTab
public readonly record struct TalentTab
{
public int Id { get; init; }
public int OrderIndex { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion SharedLib/Data/TalentTreeElement.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SharedLib;

public readonly struct TalentTreeElement
public readonly record struct TalentTreeElement
{
public int TierID { get; init; }
public int ColumnIndex { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion SharedLib/Data/WorldMapArea.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace SharedLib;

public readonly struct WorldMapArea
public readonly record struct WorldMapArea
{
public int MapID { get; init; }
public int AreaID { get; init; }
Expand Down

0 comments on commit 2f007fa

Please sign in to comment.