mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Séparation abilities en view model et déplacement level dans class view model
This commit is contained in:
parent
c78d296810
commit
1c443c0592
3 changed files with 28 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace AideDeJeu.ViewModels.PlayerCharacter
|
||||
{
|
||||
public class AbilitiesViewModel : BaseViewModel
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -11,9 +11,13 @@ namespace AideDeJeu.ViewModels.PlayerCharacter
|
|||
private ClassItem _Class = null;
|
||||
public ClassItem Class { get { return _Class; } set { SetProperty(ref _Class, value); } }
|
||||
|
||||
private int _Level = 1;
|
||||
public int Level { get { return _Level; } set { SetProperty(ref _Level, value); } }
|
||||
|
||||
private SubClassItem _SubClass = null;
|
||||
public SubClassItem SubClass { get { return _SubClass; } set { SetProperty(ref _SubClass, value); } }
|
||||
|
||||
|
||||
private ClassHitPointsItem _HitPoints = null;
|
||||
public ClassHitPointsItem HitPoints { get { return _HitPoints; } set { SetProperty(ref _HitPoints, value); } }
|
||||
|
||||
|
|
@ -33,6 +37,7 @@ namespace AideDeJeu.ViewModels.PlayerCharacter
|
|||
public string Description { get { return Class?.Description; } }
|
||||
public string Markdown { get { return Class?.Markdown; } }
|
||||
|
||||
|
||||
public List<ClassFeatureItem> LeveledFeatures
|
||||
{
|
||||
get
|
||||
|
|
|
|||
|
|
@ -58,6 +58,19 @@ namespace AideDeJeu.ViewModels.PlayerCharacter
|
|||
}
|
||||
}
|
||||
|
||||
private AbilitiesViewModel _Abilities = null;
|
||||
public AbilitiesViewModel Abilities
|
||||
{
|
||||
get
|
||||
{
|
||||
return _Abilities;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref _Abilities, value);
|
||||
//_Background.LoadDetailsAsync().ConfigureAwait(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue