mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Client::Interact: Use InteractAction enum instead of numeric constants
This replaces the magic numbers used as interaction modes both client-side and server-side, primarily for the sake of ease-of-readability.
This commit is contained in:
parent
e462a9a5ef
commit
e788ee283f
5 changed files with 59 additions and 60 deletions
|
@ -232,7 +232,7 @@ public:
|
|||
|
||||
void Send(NetworkPacket* pkt);
|
||||
|
||||
void interact(u8 action, const PointedThing& pointed);
|
||||
void interact(InteractAction action, const PointedThing &pointed);
|
||||
|
||||
void sendNodemetaFields(v3s16 p, const std::string &formname,
|
||||
const StringMap &fields);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue