// Ryzom - MMORPG Framework
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
#include "stdpch.h"
#include "outpost_sheet.h"
#include "nel/georges/u_form_elm.h"
// ****************************************************************************
COutpostSheet::COutpostSheet()
{
Type = CEntitySheet::OUTPOST;
NbMaxSpawnedSquad = 0;
NbMaxSpawnedMercenarySquad = 0;
ChallengeCost = 0;
MaxTotalSquad = 0;
}
// ****************************************************************************
void COutpostSheet::build(const NLGEORGES::UFormElm &root)
{
root.getValueByName(NbMaxSpawnedSquad, "Max Number of Spawned Squads");
root.getValueByName(NbMaxSpawnedMercenarySquad, "Max Number of Spawned Mercenary Squads");
root.getValueByName(ChallengeCost, "Challenge Cost");
root.getValueByName(MaxTotalSquad, "Max Total Squads");
}
// ****************************************************************************
void COutpostSheet::serial(class NLMISC::IStream &f) throw(NLMISC::EStream)
{
f.serial(NbMaxSpawnedSquad);
f.serial(NbMaxSpawnedMercenarySquad);
f.serial(ChallengeCost);
f.serial(MaxTotalSquad);
}