Skip to content

Commit 1fd3af5

Browse files
committed
Server class: shutdown function
1 parent c261cf4 commit 1fd3af5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

VCMP-LUA/vcmpWrap/Classes/Server.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,11 @@ void Server::Init(sol::state* L) {
10751075
usertype["getPassword"] = &Server::getPassword;
10761076
usertype["password"] = sol::property(&Server::getPassword, &Server::setPassword);
10771077

1078+
usertype["shutdown"] = []()
1079+
{
1080+
g_Funcs->ShutdownServer();
1081+
};
1082+
10781083
usertype["setClassPosition"] =
10791084
sol::overload(
10801085
[](sol::table position) {

0 commit comments

Comments
 (0)