mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Damage groups WIP
This commit is contained in:
parent
e9cdb938fe
commit
501b8fe743
6 changed files with 136 additions and 29 deletions
|
@ -38,6 +38,8 @@ Some planning
|
|||
class ClientEnvironment;
|
||||
class ITextureSource;
|
||||
class IGameDef;
|
||||
class LocalPlayer;
|
||||
struct ItemStack;
|
||||
|
||||
class ClientActiveObject : public ActiveObject
|
||||
{
|
||||
|
@ -75,7 +77,8 @@ public:
|
|||
ClientEnvironment *env);
|
||||
|
||||
// If returns true, punch will not be sent to the server
|
||||
virtual bool directReportPunch(const std::string &toolname, v3f dir)
|
||||
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem=NULL,
|
||||
float time_from_last_punch=1000000)
|
||||
{ return false; }
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue