pioneerspacesim/pioneer — Issue #773: Tear down and reconstruct Lua for each game
Author: johnbartholomew
Created: 2011-11-04 00:55:02+00:00
State: open
Labels: To do

At the moment, the main Lua state (where modules run) is set up once during `Pi::Init` and torn down in `Pi::Quit`. This means that scripts have to do extra work to clear their state between games, or risk cross-talk between games.

Instead, `LuaInit` should be called from `Pi::InitGame` and `LuaUninit` should be called from `Pi::UninitGame`.