refactor(mod): changed hardcode items and locale to JSON controlled one
This commit is contained in:
22
moe.yuyui.weebsights-port/Models/WeebItemConfig.cs
Normal file
22
moe.yuyui.weebsights-port/Models/WeebItemConfig.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SPTarkov.Server.Core.Models.Common;
|
||||
|
||||
namespace moe.yuyui.weebsights_port.Models;
|
||||
|
||||
public record WeebItemConfig()
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public MongoId Id { get; set; }
|
||||
|
||||
[JsonPropertyName("clone_from_tpl")]
|
||||
public MongoId CloneFromTpl { get; set; }
|
||||
|
||||
[JsonPropertyName("bundle_path")]
|
||||
public string BundlePath { get; set; }
|
||||
|
||||
[JsonPropertyName("price")]
|
||||
public int Price { get; set; }
|
||||
|
||||
[JsonPropertyName("ergonomics")]
|
||||
public int Ergonomics { get; set; }
|
||||
}
|
||||
16
moe.yuyui.weebsights-port/Models/WeebLocaleConfig.cs
Normal file
16
moe.yuyui.weebsights-port/Models/WeebLocaleConfig.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SPTarkov.Server.Core.Models.Common;
|
||||
|
||||
namespace moe.yuyui.weebsights_port.Models;
|
||||
|
||||
public record WeebLocaleConfig()
|
||||
{
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("short_name")]
|
||||
public string ShortName { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
using SPTarkov.Server.Core.Models.Common;
|
||||
|
||||
namespace moe.yuyui.weebsights_port.Models;
|
||||
|
||||
public record WeebSight(MongoId Id, string Asset, MongoId CloneFromTpl);
|
||||
Reference in New Issue
Block a user