1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Pass clang-format on 14 trivial header files fixes

Also remove them from whitelist
This commit is contained in:
Loic Blot 2017-04-07 23:22:00 +02:00
parent 271d7c31e6
commit 4af99b75cf
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
15 changed files with 146 additions and 154 deletions

View file

@ -22,8 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define S_CLIENT_H_
#include "cpp_api/s_base.h"
#include "util/string.h"
#include "mapnode.h"
#include "util/string.h"
#ifdef _CRT_MSVCP_CURRENT
#include <cstdint>
@ -31,7 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class ClientEnvironment;
class ScriptApiClient: virtual public ScriptApiBase
class ScriptApiClient : virtual public ScriptApiBase
{
public:
// Calls on_shutdown handlers

View file

@ -26,8 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
struct ToolCapabilities;
class ScriptApiPlayer
: virtual public ScriptApiBase
class ScriptApiPlayer : virtual public ScriptApiBase
{
public:
virtual ~ScriptApiPlayer();
@ -36,17 +35,16 @@ public:
void on_dieplayer(ServerActiveObject *player);
bool on_respawnplayer(ServerActiveObject *player);
bool on_prejoinplayer(const std::string &name, const std::string &ip,
std::string *reason);
std::string *reason);
void on_joinplayer(ServerActiveObject *player);
void on_leaveplayer(ServerActiveObject *player, bool timeout);
void on_cheat(ServerActiveObject *player, const std::string &cheat_type);
bool on_punchplayer(ServerActiveObject *player,
ServerActiveObject *hitter, float time_from_last_punch,
const ToolCapabilities *toolcap, v3f dir, s16 damage);
bool on_punchplayer(ServerActiveObject *player, ServerActiveObject *hitter,
float time_from_last_punch, const ToolCapabilities *toolcap,
v3f dir, s16 damage);
s16 on_player_hpchange(ServerActiveObject *player, s16 hp_change);
void on_playerReceiveFields(ServerActiveObject *player,
const std::string &formname, const StringMap &fields);
const std::string &formname, const StringMap &fields);
};
#endif /* S_PLAYER_H_ */