Sunday, January 4, 2015

Update All Object Properties on a Single Property Change C#

If I do this it doesn't throw an exception but it doesn't update the secondary properties either.



// Interface Base Ability Scores
public int[] BaseAbilityScore
{
get { return baseAbilityScore; }
set
{
baseAbilityScore = value;
UpdateCreature();
}
}
// Interface Adjusted Ability Scores
public int[] AbilityScore
{
get { return abilityScore; }
set { abilityScore = value; }
}
// Interface Ability Modifiers
public int[] AbilityModifier
{
get { return abilityModifier; }
set { abilityModifier = value; }



No comments:

Post a Comment