kurosio / Teeworlds-MRPG-0.6

Other
6 stars 10 forks source link

Reduce the level of dependency not explicit #19

Open kurosio opened 4 months ago

kurosio commented 4 months ago

For example, getting a player's stats, can be rolled up into one function including everything from outside.

Example:

auto value = pPlayer->GetAttribute(AttributeIdentifier::GunDMG) + pPlayer->GetAttribute(AttributeIdentifier::DMG);

to

auto value = pPlayer->GetAttribute(AttributeIdentifier::GunDMG);