-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added extended tooltip (work in progress).
Added storage Brimstone Sands - New Corsica Fixed price overlay for new nwmarketprices API. Updated game data.
- Loading branch information
1 parent
5f20574
commit 4048c63
Showing
29 changed files
with
4,244 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace NewWorldCompanion.Entities | ||
{ | ||
public class PersistableOverlayResource | ||
{ | ||
public string ItemId { get; set; } = string.Empty; | ||
public List<PersistableOverlayResourceRecipe> PersistableOverlayResourceRecipes { get; set; } = new List<PersistableOverlayResourceRecipe> { }; | ||
} | ||
|
||
public class PersistableOverlayResourceRecipe | ||
{ | ||
public string ItemId { get; set; } = string.Empty; | ||
public bool IsVisible { get; set; } = false; | ||
} | ||
} |
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,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace NewWorldCompanion.Helpers | ||
{ | ||
public class IntConverter : JsonConverter<int> | ||
{ | ||
public override void Write(Utf8JsonWriter writer, int value, JsonSerializerOptions options) => | ||
writer.WriteNumberValue(value); | ||
|
||
public override int Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => | ||
reader.TokenType switch | ||
{ | ||
JsonTokenType.True => 1, | ||
JsonTokenType.False => 0, | ||
JsonTokenType.String => int.TryParse(reader.GetString(), out var i) ? i : 0, | ||
JsonTokenType.Number => reader.GetInt32(), | ||
JsonTokenType.Null => 0, | ||
_ => throw new JsonException(), | ||
}; | ||
|
||
|
||
} | ||
} |
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,20 @@ | ||
using NewWorldCompanion.Entities; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace NewWorldCompanion.Interfaces | ||
{ | ||
public interface IRelatedPriceManager | ||
{ | ||
List<PersistableOverlayResource> PersistableOverlayResources | ||
{ | ||
get; | ||
} | ||
|
||
void SaveRelatedPricesConfig(); | ||
void SetRawResourceRecipeVisibility(string itemIDRawResource, string itemID, bool isVisible); | ||
} | ||
} |
Oops, something went wrong.