Introduce a Context that provides data while GameLogic callbacks are running. In particular, it gives access to a new utility instance Random, which can be used to get random numbers seeded already based on the current block (or specially for the initial state).
This also changes the callbacks themselves to be protected and named GetInitialStateInternal, ProcessForwardInternal and ProcessBackwardsInternal. The non-Internal versions are now implemented in GameLogic directly and handle management of the context before calling through to the real callbacks.
Introduce a
Context
that provides data whileGameLogic
callbacks are running. In particular, it gives access to a new utility instanceRandom
, which can be used to get random numbers seeded already based on the current block (or specially for the initial state).This also changes the callbacks themselves to be
protected
and namedGetInitialStateInternal
,ProcessForwardInternal
andProcessBackwardsInternal
. The non-Internal
versions are now implemented inGameLogic
directly and handle management of the context before calling through to the real callbacks.