-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Item -> MapItem and add [Record] attribute. Remove IItem inter…
…face.
- Loading branch information
1 parent
e29c989
commit c1249b6
Showing
23 changed files
with
93 additions
and
181 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
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
using Amadevus.RecordGenerator; | ||
using Optional; | ||
using System; | ||
|
||
namespace EOLib.Domain.Map | ||
{ | ||
[Record] | ||
public sealed partial class MapItem | ||
{ | ||
public short UniqueID { get; } | ||
|
||
public short ItemID { get; } | ||
|
||
public byte X { get; } | ||
|
||
public byte Y { get; } | ||
|
||
public int Amount { get; } | ||
|
||
public bool IsNPCDrop { get; } | ||
|
||
public Option<int> OwningPlayerID { get; } | ||
|
||
public Option<DateTime> DropTime { get; } | ||
|
||
public static MapItem None => new MapItem(); | ||
|
||
public MapItem(short uid, short id, byte x, byte y, int amount) | ||
{ | ||
UniqueID = uid; | ||
ItemID = id; | ||
X = x; | ||
Y = y; | ||
Amount = amount; | ||
} | ||
|
||
private MapItem() { } | ||
} | ||
} |
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.