1
0
Fork 0
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:
Yan Maniez 2019-04-29 00:36:52 +02:00
parent c78d296810
commit 1c443c0592
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace AideDeJeu.ViewModels.PlayerCharacter
{
public class AbilitiesViewModel : BaseViewModel
{
}
}

View file

@ -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

View file

@ -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);
}
}