aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Support
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2016-03-11 16:37:14 +0100
committerNaios <naios-dev@live.de>2016-03-24 01:31:51 +0100
commitbf33159a7009f64a78cf2a1309eb5182fcd3f7e3 (patch)
tree69396ea652eed2d43002600577e7b6c7c070581f /src/server/game/Support
parent25b0e743b1a823b636ffc1ba17062f8d5ebe35ab (diff)
Core/Game: Converted the game library to a shared library.
* There is still the possibility to static link against game.
Diffstat (limited to 'src/server/game/Support')
-rw-r--r--src/server/game/Support/SupportMgr.cpp28
-rw-r--r--src/server/game/Support/SupportMgr.h10
2 files changed, 33 insertions, 5 deletions
diff --git a/src/server/game/Support/SupportMgr.cpp b/src/server/game/Support/SupportMgr.cpp
index 142904fcae3..97a828f44d6 100644
--- a/src/server/game/Support/SupportMgr.cpp
+++ b/src/server/game/Support/SupportMgr.cpp
@@ -409,6 +409,10 @@ SuggestionTicket* SupportMgr::GetTicket<SuggestionTicket>(uint32 suggestionId)
}
+template TC_GAME_API BugTicket* SupportMgr::GetTicket<BugTicket>(uint32);
+template TC_GAME_API ComplaintTicket* SupportMgr::GetTicket<ComplaintTicket>(uint32);
+template TC_GAME_API SuggestionTicket* SupportMgr::GetTicket<SuggestionTicket>(uint32);
+
template<>
uint32 SupportMgr::GetOpenTicketCount<BugTicket>() const { return _openBugTicketCount; }
@@ -418,6 +422,10 @@ uint32 SupportMgr::GetOpenTicketCount<ComplaintTicket>() const { return _openCom
template<>
uint32 SupportMgr::GetOpenTicketCount<SuggestionTicket>() const { return _openSuggestionTicketCount; }
+template TC_GAME_API uint32 SupportMgr::GetOpenTicketCount<BugTicket>() const;
+template TC_GAME_API uint32 SupportMgr::GetOpenTicketCount<ComplaintTicket>() const;
+template TC_GAME_API uint32 SupportMgr::GetOpenTicketCount<SuggestionTicket>() const;
+
void SupportMgr::LoadBugTickets()
{
uint32 oldMSTime = getMSTime();
@@ -613,6 +621,10 @@ void SupportMgr::RemoveTicket<SuggestionTicket>(uint32 ticketId)
}
}
+template TC_GAME_API void SupportMgr::RemoveTicket<BugTicket>(uint32);
+template TC_GAME_API void SupportMgr::RemoveTicket<ComplaintTicket>(uint32);
+template TC_GAME_API void SupportMgr::RemoveTicket<SuggestionTicket>(uint32);
+
template<>
void SupportMgr::CloseTicket<BugTicket>(uint32 ticketId, ObjectGuid closedBy)
{
@@ -649,6 +661,10 @@ void SupportMgr::CloseTicket<SuggestionTicket>(uint32 ticketId, ObjectGuid close
}
}
+template TC_GAME_API void SupportMgr::CloseTicket<BugTicket>(uint32, ObjectGuid);
+template TC_GAME_API void SupportMgr::CloseTicket<ComplaintTicket>(uint32, ObjectGuid);
+template TC_GAME_API void SupportMgr::CloseTicket<SuggestionTicket>(uint32, ObjectGuid);
+
template<>
void SupportMgr::ResetTickets<BugTicket>()
{
@@ -690,6 +706,10 @@ void SupportMgr::ResetTickets<SuggestionTicket>()
CharacterDatabase.Execute(stmt);
}
+template TC_GAME_API void SupportMgr::ResetTickets<BugTicket>();
+template TC_GAME_API void SupportMgr::ResetTickets<ComplaintTicket>();
+template TC_GAME_API void SupportMgr::ResetTickets<SuggestionTicket>();
+
template<>
void SupportMgr::ShowList<BugTicket>(ChatHandler& handler) const
{
@@ -717,6 +737,10 @@ void SupportMgr::ShowList<SuggestionTicket>(ChatHandler& handler) const
handler.SendSysMessage(itr->second->FormatViewMessageString(handler).c_str());
}
+template TC_GAME_API void SupportMgr::ShowList<BugTicket>(ChatHandler&) const;
+template TC_GAME_API void SupportMgr::ShowList<ComplaintTicket>(ChatHandler&) const;
+template TC_GAME_API void SupportMgr::ShowList<SuggestionTicket>(ChatHandler&) const;
+
template<>
void SupportMgr::ShowClosedList<BugTicket>(ChatHandler& handler) const
{
@@ -743,3 +767,7 @@ void SupportMgr::ShowClosedList<SuggestionTicket>(ChatHandler& handler) const
if (itr->second->IsClosed())
handler.SendSysMessage(itr->second->FormatViewMessageString(handler).c_str());
}
+
+template TC_GAME_API void SupportMgr::ShowClosedList<BugTicket>(ChatHandler&) const;
+template TC_GAME_API void SupportMgr::ShowClosedList<ComplaintTicket>(ChatHandler&) const;
+template TC_GAME_API void SupportMgr::ShowClosedList<SuggestionTicket>(ChatHandler&) const;
diff --git a/src/server/game/Support/SupportMgr.h b/src/server/game/Support/SupportMgr.h
index 86f5b223a86..aafbbc2dd20 100644
--- a/src/server/game/Support/SupportMgr.h
+++ b/src/server/game/Support/SupportMgr.h
@@ -50,7 +50,7 @@ enum SupportSpamType
using ChatLog = WorldPackets::Ticket::SupportTicketSubmitComplaint::SupportTicketChatLog;
-class Ticket
+class TC_GAME_API Ticket
{
public:
Ticket();
@@ -116,7 +116,7 @@ protected:
std::string _comment;
};
-class BugTicket : public Ticket
+class TC_GAME_API BugTicket : public Ticket
{
public:
BugTicket();
@@ -140,7 +140,7 @@ private:
std::string _note;
};
-class ComplaintTicket : public Ticket
+class TC_GAME_API ComplaintTicket : public Ticket
{
public:
ComplaintTicket();
@@ -176,7 +176,7 @@ private:
std::string _note;
};
-class SuggestionTicket : public Ticket
+class TC_GAME_API SuggestionTicket : public Ticket
{
public:
SuggestionTicket();
@@ -204,7 +204,7 @@ typedef std::map<uint32, BugTicket*> BugTicketList;
typedef std::map<uint32, ComplaintTicket*> ComplaintTicketList;
typedef std::map<uint32, SuggestionTicket*> SuggestionTicketList;
-class SupportMgr
+class TC_GAME_API SupportMgr
{
private:
SupportMgr();