Transmute.h 887 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef TRANSMUTE_H
  2. #define TRANSMUTE_H
  3. #include "../common/types.h"
  4. #include <vector>
  5. class Client;
  6. class Player;
  7. class Item;
  8. class DatabaseResult;
  9. class Transmute {
  10. public:
  11. static int32 CreateItemRequest(Client* client, Player* player);
  12. static void HandleItemResponse(Client* client, Player* player, int32 req_id, int32 item_id);
  13. static bool ItemIsTransmutable(Item* item);
  14. static void SendConfirmRequest(Client* client, int32 req_id, Item* item);
  15. static void HandleConfirmResponse(Client* client, Player* player, int32 item_id);
  16. static void CompleteTransmutation(Client* client, Player* player);
  17. static void ProcessDBResult(DatabaseResult& res);
  18. private:
  19. struct TransmutingTier {
  20. int32 min_level;
  21. int32 max_level;
  22. int32 fragment_id;
  23. int32 powder_id;
  24. int32 infusion_id;
  25. int32 mana_id;
  26. };
  27. static std::vector<TransmutingTier>& GetTransmutingTiers();
  28. };
  29. #endif