1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Scripting WIP

This commit is contained in:
Perttu Ahola 2011-11-12 02:25:30 +02:00
parent 41c91391fc
commit f145d498a6
7 changed files with 380 additions and 151 deletions

View file

@ -1001,6 +1001,9 @@ Server::Server(
// Initialize Environment
m_env = new ServerEnvironment(new ServerMap(mapsavedir), m_lua);
// Give environment reference to scripting api
scriptapi_add_environment(m_lua, m_env);
// Register us to receive map edit events
m_env->getMap().addEventReceiver(this);