some further reduction of large functions in the engine.
Merge branch 'master' of https://github.com/vance/ForeverScapeCore