1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 09:15:35 +00:00

[Server] Add Players.size() to Lua API

This commit is contained in:
Koncord 2017-10-28 02:34:45 +08:00
parent 3495fd43f4
commit 14d47213ef

View file

@ -18,6 +18,10 @@ void Players::Init(LuaState &lua)
for (shared_ptr<Player> player : store)
func(player);
});
playersTable.set_function("size", [](){
return store.size();
});
}