mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-28 23:16:15 -04:00
Added serverGame library
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
//========================================================================
|
||||
//
|
||||
// VehicleObject.cpp
|
||||
//
|
||||
// copyright 2001 Sony Online Entertainment
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#include "serverGame/FirstServerGame.h"
|
||||
#include "serverGame/VehicleObject.h"
|
||||
|
||||
#include "serverGame/GameServer.h"
|
||||
#include "sharedNetworkMessages/ObjectChannelMessages.h"
|
||||
#include "serverGame/ServerVehicleObjectTemplate.h"
|
||||
#include "serverGame/VehicleController.h"
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
VehicleObject::VehicleObject(const ServerVehicleObjectTemplate* newTemplate) :
|
||||
TangibleObject(newTemplate)
|
||||
{
|
||||
addMembersToPackages();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
VehicleObject::~VehicleObject()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates a default controller for this object.
|
||||
*
|
||||
* @return the object's controller
|
||||
*/
|
||||
Controller* VehicleObject::createDefaultController(void)
|
||||
{
|
||||
Controller* controller = new VehicleController(this);
|
||||
NOT_NULL(controller);
|
||||
|
||||
setController(controller);
|
||||
return controller;
|
||||
} // VehicleObject::createDefaultController
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void VehicleObject::getAttributes(stdvector<std::pair<std::string, Unicode::String> >::fwd &data) const
|
||||
{
|
||||
TangibleObject::getAttributes(data);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user