Look at main.cpp as an example.
To integrate this library to your Engine/Game perform these steps:
1) Copy sources/gotop to your project
2) Change sources/gotop/GoTopProjSpec.h:
* Remove windows.h (if desired)
* Change: Mutex_Lock(), Mutex_Unlock(), WindowsMutex, Time, GetTime as you wish
3) Implement ServerInterface class (sources/gotop/ServerInterface.h) - or use sources/gotop/ServerInterfaces/OfflineInterface implementation.
4) Change all your important variable types to gotop::ProtectedVar<...>
* use a define, i.e. #define gotop::ProtectedVar<double> PRDOUBLE - so it's easy to switch the variable protection on and off for testing
5) Somewhere in main initialization function:
* Create instance of gotop::ProtectedVariableManager and your ServerInterface classes
* Using the function gotop::ProtectedVariableManager::SetServerInterface set pointer to your server interface
7) Call gotop::ProtectedVariableManager::Update every frame.
8) Be sure to follow the gotop VMProtect integration guide, or security for this and other projects will be compromised.
Optional: Adapt the constants in sources/gotop/SecureBuffer.h to your usage pattern