Skip to content

Commit 1f706e0

Browse files
committed
Header
1 parent e5e0a68 commit 1f706e0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaTeamDefs.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
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

1514
class CLuaTeamDefs : public CLuaDefs
1615
{
1716
public:
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
};

0 commit comments

Comments
 (0)