Пример #1
0
CellObject* CellFactory::_createCell(DatabaseResult* result)
{
    CellObject* cellObject = new CellObject();
    cellObject->setCapacity(500);

    uint64 count = result->getRowCount();

    result->GetNextRow(mCellBinding,(void*)cellObject);

    return cellObject;
}
Пример #2
0
CellObject* CellFactory::_createCell(DatabaseResult* result)
{
    if (!result->getRowCount()) {
    	return nullptr;
    }

    CellObject* cellObject = new CellObject();
    cellObject->setCapacity(500);

    result->getNextRow(mCellBinding,(void*)cellObject);

	//cells are added to the worldmanager in the buildingFactory!!
	
	return cellObject;
}
Пример #3
0
CellObject* CellFactory::_createCell(swganh::database::DatabaseResult* result)
{
    if (!result->getRowCount()) {
    	return nullptr;
    }

    CellObject* cell = new CellObject();
    cell->setCapacity(500);
	cell->object_type_ = SWG_CELL;

	gObjectManager->LoadSlotsForObject(cell);

    result->getNextRow(mCellBinding,(void*)cell);

	auto permissions_objects_ = gObjectManager->GetPermissionsMap();
	cell->SetPermissions(permissions_objects_.find(swganh::object::WORLD_CELL_PERMISSION)->second.get());//CREATURE_PERMISSION
	
	//cells are added to the worldmanager in the buildingFactory!!
	
	return cell;
}