-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
c51e532
commit 52f2f74
Showing
9 changed files
with
25,924 additions
and
6,360 deletions.
There are no files selected for viewing
3,769 changes: 3,769 additions & 0 deletions
3,769
src/LuminaSupplemental.Excel/Generated/GardeningCrossbreed.csv
Large diffs are not rendered by default.
Oops, something went wrong.
10,870 changes: 5,434 additions & 5,436 deletions
10,870
src/LuminaSupplemental.Excel/Generated/ItemSupplement.csv
Large diffs are not rendered by default.
Oops, something went wrong.
1,843 changes: 921 additions & 922 deletions
1,843
src/LuminaSupplemental.Excel/Generated/MobSpawn.csv
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using System.Globalization; | ||
|
||
using CsvHelper.Configuration.Attributes; | ||
|
||
using Lumina.Data; | ||
using Lumina.Excel; | ||
using Lumina.Excel.Sheets; | ||
|
||
namespace LuminaSupplemental.Excel.Model; | ||
|
||
public class GardeningCrossbreed : ICsv | ||
{ | ||
[Name("ItemResultId")] public uint ItemResultId { get; set; } | ||
[Name("ItemRequirement1Id")] public uint ItemRequirement1Id { get; set; } | ||
[Name("ItemRequirement2Id")] public uint ItemRequirement2Id { get; set; } | ||
|
||
public RowRef<Item> ItemResult; | ||
|
||
public RowRef<Item> ItemRequirement1; | ||
public RowRef<Item> ItemRequirement2; | ||
|
||
public GardeningCrossbreed(uint itemResultId, uint itemRequirement1Id, uint itemRequirement2Id ) | ||
{ | ||
ItemResultId = itemResultId; | ||
ItemRequirement1Id = itemRequirement1Id; | ||
ItemRequirement2Id = itemRequirement2Id; | ||
} | ||
|
||
public GardeningCrossbreed() | ||
{ | ||
|
||
} | ||
|
||
public void FromCsv(string[] lineData) | ||
{ | ||
ItemResultId = uint.Parse( lineData[ 0 ] ); | ||
ItemRequirement1Id = uint.Parse( lineData[ 1 ] ); | ||
ItemRequirement2Id = uint.Parse( lineData[ 2 ] ); | ||
} | ||
|
||
public string[] ToCsv() | ||
{ | ||
return [ItemResultId.ToString(CultureInfo.InvariantCulture), ItemRequirement1Id.ToString(CultureInfo.InvariantCulture), ItemRequirement2Id.ToString(CultureInfo.InvariantCulture) | ||
]; | ||
} | ||
|
||
public bool IncludeInCsv() | ||
{ | ||
return true; | ||
} | ||
|
||
public void PopulateData(ExcelModule gameData, Language language) | ||
{ | ||
ItemResult = new RowRef<Item>( gameData, ItemResultId, language); | ||
ItemRequirement1 = new RowRef<Item>( gameData, ItemRequirement1Id, language); | ||
ItemRequirement2 = new RowRef<Item>( gameData, ItemRequirement2Id, language); | ||
} | ||
} |
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.