r/godot•
KlukiaDev

Best place to define a global enum?

help me

Hello!

I have an autoload ItemManager that defines an enum ItemID. IDs are used in the ItemManager itself to manage the items and in various places in the game to retrieve/operate on the items.

Which do you think is the best place to define the enum, and why?

  1. ItemManager
  2. Dedicated class just for the enum
    3 )Item class
  3. Other

Posted Sep 3, 2025, 5:13 PM UTC

15
Loading comments…