public float this[VitalsEnum ae] { get{ switch (ae) { case VitalsEnum.health: return(health); case VitalsEnum.stamina: return(stamina); case VitalsEnum.mana: return(mana); } return(0); } set{ switch (ae) { case VitalsEnum.health: health = value; break; case VitalsEnum.stamina: stamina = value; break; case VitalsEnum.mana: mana = value; break; } } }
public float AidValue(VitalsEnum ae) { return(aid[ae]); }