minetest/minetest — pull request #677 by sapier (2013-04-22 20:52:32+00:00)
Title: Scriptapi split + move to subfolders

Changes:
Modders:
-declare minetest.env:XXX deprecated use minetest.XXX (old style will work too but give a warning in logfile!)

Developers:
What is done with this commit:
separate Lua from core to prepare improved locking and multithreading

How? -> split scriptapi into two parts
Internal script/cpp_api/*
This files contain interface to be called from within core to do something within scriptapi. All direct references to lua have been removed. DO NOT try to access lua_State from core!

External script/lua_api/*
Files containing interface functions to be called from lua. Put all your additional functions into classes derived from ModApiBase to be initialized by Scriptapi. If you Create a Ref object use REGISTER_LUA_REF(RefClass) to register this to Scriptapi

script/common/*
this files are somehow special. They are used by both internal and external script functions.