Commit Graph

12 Commits (sol2-server-rewrite)

Author SHA1 Message Date
Koncord c4949ac5d9 [General] Change regular enums to enum class 7 years ago
Koncord 585c24cee8 [Server] Optimize CellController 7 years ago
Koncord ff8b5061b4 [Server] Modernize CellController singleton 7 years ago
David Cernat ad61d88cb1 [General] Fix typos and use consistent style for recent additions 7 years ago
David Cernat 07d75abdf8 [Server] Use consistent order for includes 7 years ago
Koncord 510e657c93 Merge branch 'master' into new-script-api 7 years ago
David Cernat 499c7db121 [Server] Initialize interiors correctly if exterior 0, 0 has been loaded 7 years ago
Koncord 2d0840cb3a [General] Modernize Script API
This commit changes the style of tes3mp serverside scripting mods. Short list of changes:
* Break compatibility with old server mods
* OOP style lua API
* Basic dependency checker, allowing the installation of multiple server mods without changing configs
* Remove support for C++ plugins
* Change outdated LuaBridge to [sol2](https://github.com/ThePhD/sol2);
* Support GCC, Clang and MSVC compilers
* New environment variables: "TES3MP_SERVER_DIR" and "TES3MP_SERVER_USERDIR";
* New entity "Command controller" for registering new chat commands;
* New Event system
* Simplified Timer API
* All Lua mods now run in their own environments
* Add global namespace - Data that can be used for communicating between mods
* Player and Actor inherit base class NetActor
7 years ago
David Cernat 62d93a09c1 [Server] Add new script callbacks for cells, remove a couple of others
OnPlayerCellState and OnActorStatsDynamic are now removed as callbacks.

The old OnCellUnload is now renamed into OnCellDeletion.

OnCellLoad and a new OnCellUnload relating to a specific player's load/unload are added.
8 years ago
David Cernat 0ba8a407bc [Server] Reuse Cell deletion code in CellController 8 years ago
David Cernat b62969d3cf [Server] Add OnCellUnload script callback 8 years ago
David Cernat 234510a87f [Server] Split off Cell and CellController into two different files 8 years ago