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:
parent
3495fd43f4
commit
14d47213ef
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ void Players::Init(LuaState &lua)
|
|||
for (shared_ptr<Player> player : store)
|
||||
func(player);
|
||||
});
|
||||
|
||||
playersTable.set_function("size", [](){
|
||||
return store.size();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue