Added the CommoditiesServer project

This commit is contained in:
Anonymous
2014-01-21 07:09:42 -07:00
parent 254023e4f2
commit 8661d8afc9
36 changed files with 10263 additions and 0 deletions
@@ -0,0 +1,56 @@
// ======================================================================
//
// AuctionItem.cpp
// copyright (c) 2004 Sony Online Entertainment
//
// (refactorof original code only to the degree to make it work with new)
// (server & database framework ... i.e. none of the logic has changed)
//
// Original Author: Matt Severenson
// Refactored by : Doug Mellencamp
//
// ======================================================================
#include "FirstCommodityServer.h"
#include "AuctionItem.h"
// ======================================================================
AuctionItem::AuctionItem(
const NetworkId & itemId,
const int category,
const int itemTemplateId,
const int itemTimer,
const int nameLength,
const Unicode::String & name,
const NetworkId & ownerId,
const int size
) :
m_itemId(itemId),
m_category(category),
m_itemTemplateId(itemTemplateId),
m_resourceContainerClassCrc(0),
m_resourceName(),
m_resourceNameCrc(0),
m_itemTimer(itemTimer),
m_nameLength(nameLength),
m_name(name),
m_ownerId(ownerId),
m_size(size)
{
}
// ----------------------------------------------------------------------
AuctionItem::~AuctionItem()
{
}
// ----------------------------------------------------------------------
bool AuctionItem::IsExpired(int gameTime) const
{
return (gameTime > m_itemTimer);
}
// ======================================================================