Wrapper for Microgames created from within the Lua world. This class is returned by CreateMicrogame(...)
public XorShift GetPRNG()
(Client/Server) Get the current pseudo-random number generator.
The returned values are going to be 100% the same on each machine, given that you call the RNG functions the exact same amount of times on each machine.
The PRNG is reseeded before OnMicrogameBegin() is called.
Returns: (XorShift) The current microgame's PRNG.
public void SetTranslationData(string key, object value)
(Client/Server) Sets the extra translation data.
Arguments
(string) The key to be replaced. [key]
(anything) The value to be replaced with. [value]
public void SetTranslationColor(string key, int colorIndex)
(Client/Server) Sets the color for one translation index (already has colorblindness symbols preapplied).
Arguments
(string) The key to be replaced. [key]
(PresetColor) The preset color. [colorIndex]
public void ResetTranslationData()
(Client/Server) Resets the extra translation data.