.NET Format Style Fixes
This commit is contained in:
@@ -10,110 +10,62 @@ public abstract record AbstractModMetadata
|
||||
/// <summary>
|
||||
/// Name of this mod
|
||||
/// </summary>
|
||||
public abstract string Name
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Your username
|
||||
/// </summary>
|
||||
public abstract string Author
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract string Author { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// People who have contributed to this mod
|
||||
/// </summary>
|
||||
public abstract List<string>? Contributors
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract List<string>? Contributors { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Semantic version of this mod, this uses the semver standard
|
||||
/// </summary>
|
||||
public abstract string Version
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract string Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SPT version this mod was built for
|
||||
/// </summary>
|
||||
public abstract string SptVersion
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract string SptVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of mods this mod should load before
|
||||
/// </summary>
|
||||
public abstract List<string>? LoadBefore
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract List<string>? LoadBefore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of mods this mod should load after
|
||||
/// </summary>
|
||||
public abstract List<string>? LoadAfter
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract List<string>? LoadAfter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of mods not compatible with this mod
|
||||
/// </summary>
|
||||
public abstract List<string>? Incompatibilities
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract List<string>? Incompatibilities { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Dictionary of mods this mod depends on.
|
||||
///
|
||||
/// Mod dependency is the key, version is the value
|
||||
/// </summary>
|
||||
public abstract Dictionary<string, string>? ModDependencies
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract Dictionary<string, string>? ModDependencies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Link to this mod's mod page, or GitHub page
|
||||
/// </summary>
|
||||
public abstract string? Url
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract string? Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Does this mod load bundles
|
||||
/// </summary>
|
||||
public abstract bool? IsBundleMod
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract bool? IsBundleMod { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the license this mod uses
|
||||
/// </summary>
|
||||
public abstract string? Licence
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public abstract string? Licence { get; set; }
|
||||
}
|
||||
|
||||
@@ -8,9 +8,5 @@ public class ModOrder
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("order")]
|
||||
public List<string> Order
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public List<string> Order { get; set; }
|
||||
}
|
||||
|
||||
@@ -6,11 +6,7 @@ namespace SPTarkov.Server.Core.Models.Spt.Mod;
|
||||
public record NewItemDetails : NewItemDetailsBase
|
||||
{
|
||||
[JsonPropertyName("newItem")]
|
||||
public TemplateItem? NewItem
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public TemplateItem? NewItem { get; set; }
|
||||
}
|
||||
|
||||
public record NewItemFromCloneDetails : NewItemDetailsBase
|
||||
@@ -19,42 +15,26 @@ public record NewItemFromCloneDetails : NewItemDetailsBase
|
||||
/// Id of the item to copy and use as a base
|
||||
/// </summary>
|
||||
[JsonPropertyName("itemTplToClone")]
|
||||
public string? ItemTplToClone
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? ItemTplToClone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Item properties that should be applied over the top of the cloned base
|
||||
/// </summary>
|
||||
[JsonPropertyName("overrideProperties")]
|
||||
public Props? OverrideProperties
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public Props? OverrideProperties { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ParentId for the new item (item type)
|
||||
/// </summary>
|
||||
[JsonPropertyName("parentId")]
|
||||
public string? ParentId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// the id the new item should have, leave blank to have one generated for you.
|
||||
/// This is often known as the TplId, or TemplateId
|
||||
/// </summary>
|
||||
[JsonPropertyName("newId")]
|
||||
public string? NewId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = "";
|
||||
public string? NewId { get; set; } = "";
|
||||
}
|
||||
|
||||
public record NewItemDetailsBase
|
||||
@@ -63,32 +43,16 @@ public record NewItemDetailsBase
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("fleaPriceRoubles")]
|
||||
public double? FleaPriceRoubles
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public double? FleaPriceRoubles { get; set; }
|
||||
|
||||
[JsonPropertyName("handbookPriceRoubles")]
|
||||
public double? HandbookPriceRoubles
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public double? HandbookPriceRoubles { get; set; }
|
||||
|
||||
[JsonPropertyName("handbookParentId")]
|
||||
public string? HandbookParentId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? HandbookParentId { get; set; }
|
||||
|
||||
[JsonPropertyName("locales")]
|
||||
public Dictionary<string, LocaleDetails>? Locales
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public Dictionary<string, LocaleDetails>? Locales { get; set; }
|
||||
}
|
||||
|
||||
public record LocaleDetails
|
||||
@@ -97,25 +61,13 @@ public record LocaleDetails
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("shortName")]
|
||||
public string? ShortName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? ShortName { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
|
||||
public record CreateItemResult
|
||||
@@ -130,25 +82,13 @@ public record CreateItemResult
|
||||
}
|
||||
|
||||
[JsonPropertyName("success")]
|
||||
public bool? Success
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public bool? Success { get; set; }
|
||||
|
||||
[JsonPropertyName("itemId")]
|
||||
public string? ItemId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? ItemId { get; set; }
|
||||
|
||||
[JsonPropertyName("errors")]
|
||||
public List<string>? Errors
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public List<string>? Errors { get; set; }
|
||||
}
|
||||
|
||||
// TODO: This needs to be reworked with however we do it for this project
|
||||
|
||||
@@ -9,23 +9,11 @@ public class SptMod
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("directory")]
|
||||
public string Directory
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string Directory { get; set; }
|
||||
|
||||
[JsonPropertyName("modMetadata")]
|
||||
public AbstractModMetadata? ModMetadata
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public AbstractModMetadata? ModMetadata { get; set; }
|
||||
|
||||
[JsonPropertyName("assemblies")]
|
||||
public List<Assembly>? Assemblies
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public List<Assembly>? Assemblies { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user