Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #pragma once
  2.  
  3. typedef struct
  4. {
  5.     int     ItemIndex;
  6.     char    ItemName[32];
  7. } pBlockItemInfo, *lpBlockItemInfo;
  8.  
  9. class COnBuy
  10. {
  11. public:
  12.     COnBuy();
  13.  
  14.     void BlockItem(int ItemIndex,const char *ItemName);
  15.  
  16.     void UnBlockItem(int ItemIndex);
  17.     void UnBlockItem(const char *ItemName);
  18.  
  19.     bool IsBlock(int ItemIndex);
  20.     bool IsBlock(const char *ItemName);
  21.  
  22.     int GetMenuItem(int Team,int Menu,int Slot);
  23.  
  24.     META_RES OnCommand(int Id);
  25.  
  26. private:
  27.     std::vector<pBlockItemInfo> m_Data;
  28.  
  29.     int m_MenuItemsTe[7][10];
  30.     int m_MenuItemsCt[7][10];
  31. };
  32.  
  33. extern COnBuy g_OnBuy;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement