public DamageViewModel() { attackKind = new RadioEnumList(typeof(AttackKind), nameof(AttackKind)); saveOpportunity = new RadioEnumList(typeof(TimePoint), nameof(SaveOpportunity)); damageHits = new RadioEnumList(typeof(TimePoint), nameof(DamageHits)); damageType = new RadioEnumList(typeof(DamageType), nameof(DamageType)); includeTargetSenses = new CheckEnumList(typeof(Senses)); savingThrowAbility = new CheckEnumList(typeof(Ability)); includeCreatures = new CheckEnumList(typeof(CreatureKinds)); conditions = new CheckEnumList(typeof(Conditions)); creatureSizeFilter = new CheckEnumList(typeof(CreatureSize)); }
public ModViewModel() { //damageType = new EnumList(typeof(DamageType), DndCore.DamageType.None, EnumListOption.Exclude); //attackKind = new EnumList(typeof(AttackKind)); damageTypeFilter = new DamageFilterViewModel(); damageTypeFilter.DamageType.Value = DamageType.None; damageTypeFilter.AttackKind.Value = AttackKind.Any; modConditions = new CheckEnumList(typeof(Conditions), DndCore.Conditions.None, EnumListOption.Exclude); modConditions.Value = DndCore.Conditions.None; modType = new RadioEnumList(typeof(ModType), "ModType"); modType.Value = DndCore.ModType.incomingAttack; modAddAbilityModifier = new RadioEnumList(typeof(Ability), "AddModifier"); modAddAbilityModifier.Value = Skills.none; repeats = DndTimeSpan.Never; }
public DamageConditionsViewModel() { conditions = new CheckEnumList(typeof(Conditions), DndCore.Conditions.None, EnumListOption.Exclude); creatureSizeFilter = new CheckEnumList(typeof(CreatureSize)); }
public DamageFilterViewModel() { damageType = new CheckEnumList(typeof(DamageType), DndCore.DamageType.None, EnumListOption.Exclude); attackKind = new RadioEnumList(typeof(AttackKind), nameof(AttackKind)); }