Guest User

Untitled

a guest
Jan 9th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.87 KB | None | 0 0
  1. /***********************************************************************************
  2. **
  3. ** PluginInterface.h
  4. **
  5. ** Copyright (C) September 2016 Hotride
  6. **
  7. ************************************************************************************
  8. */
  9. //----------------------------------------------------------------------------------
  10. #ifndef PLUGININTERFACE_H
  11. #define PLUGININTERFACE_H
  12. //----------------------------------------------------------------------------------
  13. #include <Windows.h>
  14. //----------------------------------------------------------------------------------
  15. typedef LRESULT WINDOW_PROC(HWND, UINT, WPARAM, LPARAM);
  16. typedef bool __cdecl PACKET_PROC(unsigned char *, const int&);
  17. typedef void __cdecl VOID_PROC();
  18. typedef bool __cdecl WORLD_MAP_DRAW_PROC();
  19. //----------------------------------------------------------------------------------
  20. #define UOMSG_SET_SERVER_NAME       WM_USER + 660
  21. #define UOMSG_SET_PLAYER_NAME       WM_USER + 661
  22. #define UOMSG_UPDATE_PLAYER_XYZ     WM_USER + 662
  23. #define UOMSG_UPDATE_PLAYER_DIR     WM_USER + 663
  24. #define UOMSG_RECV                  WM_USER + 664
  25. #define UOMSG_SEND                  WM_USER + 665
  26. #define UOMSG_IP_SEND               WM_USER + 666
  27. #define UOMSG_PATHFINDING           WM_USER + 667
  28. #define UOMSG_WALK                  WM_USER + 668
  29. #define UOMSG_MENU_RESPONSE         WM_USER + 669
  30. #define UOMSG_STATUS_REQUEST        WM_USER + 670
  31. #define UOMSG_SELECTED_TILE         WM_USER + 671
  32. #define UOMSG_END_MACRO_PAYING      WM_USER + 672
  33. //----------------------------------------------------------------------------------
  34. #pragma pack (push,1)
  35. typedef struct UOI_PLAYER_XYZ_DATA
  36. {
  37.     int X;
  38.     int Y;
  39.     int Z;
  40. } *PUOI_PLAYER_XYZ_DATA;
  41.  
  42. typedef struct UOI_SELECTED_TILE
  43. {
  44.     unsigned int Serial;
  45.     unsigned short Graphic;
  46.     unsigned short Color;
  47.     int X;
  48.     int Y;
  49.     int Z;
  50.     unsigned short LandGraphic;
  51.     int LandX;
  52.     int LandY;
  53.     int LandZ;
  54. } *PUOI_SELECTED_TILE;
  55.  
  56. typedef struct UOI_MENU_RESPONSE
  57. {
  58.     unsigned int Serial;
  59.     unsigned int ID;
  60.     int Code;
  61. } *PUOI_MENU_RESPONSE;
  62. #pragma pack (pop)
  63. //----------------------------------------------------------------------------------
  64. bool __cdecl PluginRecvFunction(unsigned char *buf, const int &size);
  65. bool __cdecl PluginSendFunction(unsigned char *buf, const int &size);
  66. //----------------------------------------------------------------------------------
  67. typedef struct PLUGIN_INTERFACE
  68. {
  69.     struct PLUGIN_CLIENT_INTERFACE *Client;
  70.  
  71.     HWND hWnd;
  72.     CLIENT_VERSION ClientVersion;
  73.     bool UseVerdata;
  74.  
  75.     PACKET_PROC *Recv;
  76.     PACKET_PROC *Send;
  77.  
  78.     class CPlugin *Owner;
  79.  
  80.     WINDOW_PROC *WindowProc;
  81.     PACKET_PROC *OnRecv;
  82.     PACKET_PROC *OnSend;
  83.     VOID_PROC *OnDisconnect;
  84.     VOID_PROC *OnWorldDraw;
  85.     VOID_PROC *OnSceneDraw;
  86.     WORLD_MAP_DRAW_PROC *OnWorldMapDraw;
  87. } *PPLUGIN_INTERFACE;
  88. //----------------------------------------------------------------------------------
  89. #endif
  90. //----------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment