OpenEnroth 73e68f7
|
#include "Random.h"
Variables | |
RandomEngine * | grng = nullptr |
RandomEngine * | vrng = nullptr |
RandomEngine* grng = nullptr |
grng
stands for game random number generator
. This is the random number engine that should be used for everything that affects gameplay.
grng
is managed externally by an instance of EngineRandomComponent
. Create the component before using grng
.
RandomEngine* vrng = nullptr |
vrng
stands for view random number generator
. This is the random number engine that should be used for visual & audio effects that do not affect gameplay, e.g. particle trails, or party members shouting "got him!" after a kill.
vrng
is managed externally by an instance of EngineRandomComponent
. Create the component before using vrng
.