Jump to content
  • Advertisement
neatdev

How to unregister enums?

Recommended Posts

It is very simple to create enums and their values by calling RegisterEnum and RegisterEnumValue. But I have not found how to unregister enums.

How is this done?

Share this post


Link to post
Share on other sites
Advertisement

I don't think you can unregister anything. Why do you want to do this?

Share this post


Link to post
Share on other sites
Posted (edited)

@WitchLord Ok, will try using configuration groups.

@Miss My game engine registers some enums from a config json file when loading the game. Instead of doing it via the game scripts. It is a one off solution when I ran the game standalone. So it works perfectly in that case.

But my editor uses the engine too. In the editor I need to be able to remove/unregister current loaded game before loading a new one. So the current enums needs to be unregistered as well.

Edited by neatdev

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!