public class LuaMicrogameWrapper : MonoBehaviourWrapper

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


public void SetTranslationColor(string key, int colorIndex)

(Client/Server) Sets the color for one translation index (already has colorblindness symbols preapplied).

Arguments


public void ResetTranslationData()

(Client/Server) Resets the extra translation data.