public static DamageEffect FromDamageEffectData(DamageEffectData data) { DamageEffect effect = new DamageEffect(); effect.damageType = data.DamageType; effect.attackType = data.AttackType; effect.dieType = data.DieType; effect.numberOfDice = data.NumberOfDice; effect.modifier = data.Modifier; return(effect); }
public static DamageEffect FromDamageEffectData(DamageEffectData data) { DamageEffect effect = new DamageEffect(); effect.damageType = data.DamageType; effect.attackType = data.AttackType; effect.dieType = data.DieType; effect.numberOfDice = data.NumberOfDice; effect.modifier = data.Modifier; return effect; }
public static DamageEffect FromDamageEffectData(DamageEffectData data) { DamageEffect effect = new DamageEffect { damageType = data.DamageType, attackType = data.AttackType, dieType = data.DieType, numberOfDice = data.NumberOfDice, modifier = data.Modifier }; return(effect); }
public WeaponData() { DamageEffectData = new DamageEffectData(); }