Is it better to use strings or Integers for player body part IDs/Tags

Hi I’m working on a game were the player can have many different body part types. And I’m wondering if it would be better to use strings or integer IDs to represent these different body part types.

I think integers would make my code faster, but it would make my code harder to read, we’re strings would make my code slower but make it easier to read. What’s your take?

Using strings or ints wouldn’t make any difference to the speed your code runs at.

Readability is important.

1 Like

If you want a sort of half way house, you can use enumerated types:

1 Like

@ClockworkOcean thanks for your help I think I will try enums

1 Like