2018-04-18 05:50:40 +00:00
|
|
|
#ifndef TRADE_HPP_INCLUDED
|
|
|
|
#define TRADE_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
namespace Trade
|
2018-04-18 05:50:40 +00:00
|
|
|
{
|
2024-09-27 20:16:59 +00:00
|
|
|
bool IsOpen(bool CheckConfirm = true);
|
|
|
|
|
|
|
|
bool ConfirmOpen();
|
|
|
|
|
|
|
|
bool Close(bool AllowEsc = true);
|
|
|
|
|
|
|
|
bool AcceptedOffer();
|
|
|
|
|
|
|
|
bool AcceptOffer();
|
|
|
|
bool DeclineOffer();
|
|
|
|
|
2018-04-18 05:50:40 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
std::vector<std::int32_t> GetMyOfferItemIDs();
|
|
|
|
std::vector<std::string> GetMyOfferItemNames();
|
|
|
|
std::vector<std::int32_t> GetMyOfferItemAmounts();
|
2018-04-18 05:50:40 +00:00
|
|
|
|
2018-12-27 18:17:09 +00:00
|
|
|
std::vector<std::int32_t> GetTheirOfferItemIDs();
|
|
|
|
std::vector<std::string> GetTheirOfferItemNames();
|
|
|
|
std::vector<std::int32_t> GetTheirOfferItemAmounts();
|
2018-12-31 21:52:58 +00:00
|
|
|
}
|
2018-04-18 05:50:40 +00:00
|
|
|
|
|
|
|
#endif // TRADE_HPP_INCLUDED
|