File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 22 *
33 * PROJECT: Multi Theft Auto
44 * LICENSE: See LICENSE in the top level directory
5- * FILE: mods/shared_logic/luadefs/CLuaTeamDefs.cpp
6- * PURPOSE: Lua team definitions class
75 *
86 * Multi Theft Auto is available from http://www.multitheftauto.com/
97 *
108 *****************************************************************************/
119
1210#pragma once
1311#include " CLuaDefs.h"
12+ #include < lua/CLuaMultiReturn.h>
1413
1514class CLuaTeamDefs : public CLuaDefs
1615{
1716public:
1817 static void LoadFunctions ();
1918 static void AddClass (lua_State* luaVM);
2019
21- LUA_DECLARE (GetTeamFromName);
22- LUA_DECLARE (GetTeamName);
23- LUA_DECLARE (GetTeamColor);
24- LUA_DECLARE (GetTeamFriendlyFire);
25- LUA_DECLARE (GetPlayersInTeam);
26- LUA_DECLARE (CountPlayersInTeam);
20+ private:
21+ static CClientTeam* GetTeamFromName (const std::string name) noexcept ;
22+ static std::string GetTeamName (CClientTeam* team) noexcept ;
23+ static CLuaMultiReturn<std::uint8_t , std::uint8_t , std::uint8_t > GetTeamColor (CClientTeam* team) noexcept ;
24+ static bool GetTeamFriendlyFire (CClientTeam* team) noexcept ;
25+ static std::vector<CClientPlayer*> GetPlayersInTeam (CClientTeam* team) noexcept ;
26+ static std::uint32_t CountPlayersInTeam (CClientTeam* team) noexcept ;
2727};
You can’t perform that action at this time.
0 commit comments