[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();
});
}