Cube opening works

This commit is contained in:
Hash Borgir
2024-04-30 23:24:36 -06:00
parent 56a49ff1e0
commit d33c619372
47 changed files with 729 additions and 78 deletions

View File

@@ -201,6 +201,7 @@ namespace d2_tweaks {
MESSAGE_TYPE_ITEM_DROPPED_INFO,
MESSAGE_TYPE_TRANSMUTE,
MESSAGE_TYPE_TRADER_UPDATE,
MESSAGE_TYPE_INTERACT = 1,
MESSAGE_TYPE_COUNT
};
@@ -225,6 +226,7 @@ namespace d2_tweaks {
packet_header() : d2_packet_type(0xBB), message_type(0) {}
};
struct d2_entity_action_cs : packet_header {
uint32_t action;
uint32_t entity_id;

View File

@@ -112,6 +112,9 @@ namespace d2_tweaks {
virtual void left_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) = 0;
virtual void right_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) = 0;
virtual void middle_mouse(int32_t offsetX, int32_t offsetY, bool up, bool& block) {}
virtual void mouse_wheel(int32_t offsetX, int32_t offsetY, bool up, bool& block) {}
virtual void key_event(int32_t offsetX, int32_t offsetY, uint32_t key, bool up, bool& block) = 0;
};

View File

@@ -81,6 +81,8 @@ namespace d2_tweaks {
virtual bool left_mouse(bool up);
virtual bool right_mouse(bool up);
virtual bool middle_mouse(bool up);
virtual bool mouse_wheel(bool up);
virtual bool key_event(uint32_t key, bool up);
};

View File

@@ -32,6 +32,9 @@ namespace d2_tweaks {
bool process_left_mouse(bool up);
bool process_right_mouse(bool up);
bool process_middle_mouse(bool up);
bool process_mouse_wheel(bool up);
bool process_key_event(uint32_t key, bool up);
};