feat: 2e save character initial implementation WIP
2e is hidden behind url navigation hiding, so hoping that nobody found it yet. Note: DB migration make this commit a bit risky!
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct CharacterDto
|
||||
public struct Character1eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("name")]
|
||||
@@ -0,0 +1,46 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Character2eDto
|
||||
{
|
||||
[Required]
|
||||
[JsonPropertyName("nev")]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[JsonPropertyName("nem")]
|
||||
public string? Nem { get; set; }
|
||||
|
||||
[JsonPropertyName("kor")]
|
||||
public double? Kor { get; set; }
|
||||
|
||||
[JsonPropertyName("jellem")]
|
||||
public string Jellem { get; set; }
|
||||
|
||||
[JsonPropertyName("isten")]
|
||||
public string? Isten { get; set; }
|
||||
|
||||
[JsonPropertyName("faj")]
|
||||
public string Faj { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagok")]
|
||||
public KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
|
||||
|
||||
[JsonPropertyName("kepzettsegek")]
|
||||
public IList<string> Kepzettsegek { get; set; }
|
||||
|
||||
[JsonPropertyName("tolvajkepzettsegek")]
|
||||
public IList<string>? Tolvajkepzettsegek { get; set; }
|
||||
|
||||
[JsonPropertyName("szint")]
|
||||
public byte Szint { get; set; }
|
||||
|
||||
[JsonPropertyName("szintlepesek")]
|
||||
public IList<Szintlepes> Szintlepesek { get; set; }
|
||||
|
||||
[JsonPropertyName("felszereles")]
|
||||
public KarakterFelszerelesDto Felszereles { get; set; }
|
||||
|
||||
public bool? IsPublic { get; set; }
|
||||
}
|
||||
@@ -2,6 +2,9 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// currently the same for 1st edition and 2nd edition, be cautious!
|
||||
/// </summary>
|
||||
public struct KarakterFelszerelesDto
|
||||
{
|
||||
[JsonPropertyName("pancelID")]
|
||||
|
||||
@@ -2,6 +2,9 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
/// <summary>
|
||||
/// currently the same for 1st edition and 2nd edition, be cautious!
|
||||
/// </summary>
|
||||
public struct KarakterTulajdonsagokDto
|
||||
{
|
||||
[JsonPropertyName("t_ero")]
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public struct Szintlepes
|
||||
{
|
||||
[JsonPropertyName("osztaly")]
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
[JsonPropertyName("HProll")]
|
||||
public byte HProll { get; set; }
|
||||
|
||||
[JsonPropertyName("tolvajExtraKepzettseg")]
|
||||
public string? TolvajExtraKepzettseg { get; set; }
|
||||
|
||||
[JsonPropertyName("harcosFegyver")]
|
||||
public string? HarcosFegyver { get; set; }
|
||||
|
||||
[JsonPropertyName("kalozKritikus")]
|
||||
public string? KalozKritikus { get; set; }
|
||||
|
||||
[JsonPropertyName("tulajdonsagNoveles")]
|
||||
public string? TulajdonsagNoveles { get; set; }
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace Kemkas.Web.ViewModels;
|
||||
|
||||
public class WeatherForecast
|
||||
{
|
||||
public DateOnly Date { get; set; }
|
||||
|
||||
public int TemperatureC { get; set; }
|
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
|
||||
public string? Summary { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user