forked from Mirrorlandia_minetest/minetest
clientobject.h: Fix code-style
This commit is contained in:
parent
9543b84970
commit
96762af3ce
@ -39,7 +39,7 @@ public:
|
|||||||
ClientActiveObject(u16 id, Client *client, ClientEnvironment *env);
|
ClientActiveObject(u16 id, Client *client, ClientEnvironment *env);
|
||||||
virtual ~ClientActiveObject();
|
virtual ~ClientActiveObject();
|
||||||
|
|
||||||
virtual void addToScene(ITextureSource *tsrc) {};
|
virtual void addToScene(ITextureSource *tsrc) {}
|
||||||
virtual void removeFromScene(bool permanent) {}
|
virtual void removeFromScene(bool permanent) {}
|
||||||
// 0 <= light_at_pos <= LIGHT_SUN
|
// 0 <= light_at_pos <= LIGHT_SUN
|
||||||
virtual void updateLight(u8 light_at_pos) {}
|
virtual void updateLight(u8 light_at_pos) {}
|
||||||
@ -80,9 +80,8 @@ public:
|
|||||||
ClientEnvironment *env);
|
ClientEnvironment *env);
|
||||||
|
|
||||||
// If returns true, punch will not be sent to the server
|
// If returns true, punch will not be sent to the server
|
||||||
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem=NULL,
|
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem = nullptr,
|
||||||
float time_from_last_punch=1000000)
|
float time_from_last_punch = 1000000) { return false; }
|
||||||
{ return false; }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Used for creating objects based on type
|
// Used for creating objects based on type
|
||||||
|
Loading…
Reference in New Issue
Block a user