User:Chalst/hier

From Minetest Developer Wiki
< User:Chalst
Revision as of 09:58, 27 August 2014 by Chalst (talk | contribs) (Trying to figure out how the C++/Lua coding split works)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Project file hierarchy

minetest/src folders

  1. cguitfont - Freetype font stuff
  2. json -
  3. jthread
  4. lua - include a Lua 5.1 implementation
  5. script - both C++ to intialise Lua structures, and code to register C++ code as Lua functions. (E.g., script/scripting_mainmenu.cpp seems to be C++ code to invoke Lua fns defined in script/lua_api/l_mainmenu.cpp)
    1. lua_api - (i) wrappers for C++ code to use in Lua scripts and via the Lua-C api (e.g., lua_api/l_server.cpp), and (ii) making simple game abstractions (e.g., lua_api/l_inventory.cpp)
    2. cpp_api - seems to be C++ similar to and working with those (ii) for lua_api, except they use *the* global L Lua state object

Subsystems

  1. Inventory
  2. Menus
  3. Mapgen
  4. Server