How to unregister enums?

Started by
3 comments, last by neatdev 5 years ago

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?

Advertisement

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

You can use configuration groups to remove part of the registered interface if necessary.

Manual: Dynamic configurations

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

@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.

This topic is closed to new replies.

Advertisement