Interfaces are C++ classes that other parts of the engine access when your mod is running.
Some interface objects are very important, and are required for game DLLs to function; to use these you inherit from them for implementation, then cast back to the interface class in a global pointer with a predefined name.
Warning: It is important to create all objects listed when exposing a vital interface, even if your mod can be compiled and run without one or another of them. If you try to cut corners you are likely to encounter weird, almost impossible to debug errors either today or after a future engine update!
Warning: Never, ever modify an interface class itself. You must always inherit then cast back.
static CInput g_Input; IInput* input = (IInput*)&g_Input;
You are free to modify
CInput, or to create your own inherited class and use that instead; just remember that only the members of
IInput will be accessed by the engine.
This category has the following 5 subcategories, out of 5 total.
Pages in category "Interfaces"
The following 26 pages are in this category, out of 26 total.