OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Variables
Random.cpp File Reference
#include "Random.h"

Variables

RandomEnginegrng = nullptr
 
RandomEnginevrng = nullptr
 

Variable Documentation

◆ grng

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.

◆ vrng

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.