Namespace and Naming Convention
Every API class in the engine starts with the prefix U4D. For example,
The Untold Game Engine namespace is:
Thus, if you want to use any of the API classes in your game, you need to specify the namespace of the engine as follows:
I understand that it is tedious to specify the namespace every time you need to create an instance of a class that belongs to the API. Nonetheless, I strongly suggest that you do.
However, if you are tired of writing the namespace, you can bypass this requirement by specifying using namespace U4DEngine at the start of your code, as shown below:
Last updated