Added serverNetworkMessages library

This commit is contained in:
Anonymous
2014-01-15 02:34:23 -07:00
parent 222d858a18
commit 77f207ef4e
698 changed files with 35405 additions and 2 deletions
@@ -0,0 +1,39 @@
#ifndef GetItemMessage_h
#define GetItemMessage_h
//#include "AuctionBase.h"
#include "sharedNetworkMessages/GameNetworkMessage.h"
#include "sharedFoundation/NetworkId.h"
class GetItemMessage : public GameNetworkMessage
{
public:
GetItemMessage(
int requestId,
const NetworkId & itemId,
const NetworkId & playerId,
const std::string & location
);
GetItemMessage(Archive::ReadIterator & source);
~GetItemMessage();
const NetworkId & GetItemId() const {return m_itemId.get();}
const NetworkId & GetPlayerId() const {return m_playerId.get();}
const std::string & GetLocation() const {return m_location.get();}
int GetResponseId () const {return m_responseId.get();}
int GetTrackId () const {return m_trackId.get();}
void SetTrackId (int trackId) {m_trackId.set(trackId);}
protected:
private:
Archive::AutoVariable<int> m_responseId;
Archive::AutoVariable<int> m_trackId;
Archive::AutoVariable<NetworkId> m_itemId;
Archive::AutoVariable<NetworkId> m_playerId;
Archive::AutoVariable<std::string> m_location;
};
#endif