mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
remove isPrivate param from constructors
This commit is contained in:
parent
20ee459e26
commit
2ad9b0efaa
5 changed files with 14 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "InstanceContent.h"
|
||||
|
||||
Core::InstanceContent::InstanceContent( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName, bool bPrivate = false )
|
||||
: Zone( territoryId, guId, internalName, placeName, bPrivate )
|
||||
Core::InstanceContent::InstanceContent( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName )
|
||||
: Zone( territoryId, guId, internalName, placeName )
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public:
|
|||
DutyFinished
|
||||
};
|
||||
|
||||
InstanceContent( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName, bool bPrivate );
|
||||
InstanceContent( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName );
|
||||
virtual ~InstanceContent();
|
||||
|
||||
private:
|
||||
|
|
|
@ -118,7 +118,7 @@ bool Core::TerritoryMgr::createDefaultTerritories()
|
|||
"\t" + territoryInfo->name +
|
||||
"\t" + pPlaceName->name );
|
||||
|
||||
ZonePtr pZone( new Zone( territoryId, guid, territoryInfo->name, pPlaceName->name, false ) );
|
||||
ZonePtr pZone( new Zone( territoryId, guid, territoryInfo->name, pPlaceName->name ) );
|
||||
pZone->init();
|
||||
|
||||
InstanceIdToZonePtrMap instanceMap;
|
||||
|
@ -146,9 +146,9 @@ Core::ZonePtr Core::TerritoryMgr::createTerritoryInstance( uint32_t territoryTyp
|
|||
|
||||
ZonePtr pZone;
|
||||
if( isInstanceContentTerritory( territoryTypeId ) )
|
||||
pZone = ZonePtr( new InstanceContent( territoryTypeId, getNextInstanceId(), pTeri->name, pPlaceName->name, false ) );
|
||||
pZone = ZonePtr( new InstanceContent( territoryTypeId, getNextInstanceId(), pTeri->name, pPlaceName->name ) );
|
||||
else
|
||||
pZone = ZonePtr( new Zone( territoryTypeId, getNextInstanceId(), pTeri->name, pPlaceName->name, false ) );
|
||||
pZone = ZonePtr( new Zone( territoryTypeId, getNextInstanceId(), pTeri->name, pPlaceName->name ) );
|
||||
|
||||
pZone->init();
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ namespace Core {
|
|||
Zone::Zone()
|
||||
: m_territoryId( 0 )
|
||||
, m_guId( 0 )
|
||||
, m_bPrivate( false )
|
||||
, m_type( Common::RegionType::normal )
|
||||
, m_currentWeather( static_cast< uint8_t >( Common::Weather::FairSkies ) )
|
||||
, m_weatherOverride( 0 )
|
||||
|
@ -51,7 +50,7 @@ Zone::Zone()
|
|||
{
|
||||
}
|
||||
|
||||
Zone::Zone( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName, bool bPrivate = false )
|
||||
Zone::Zone( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName )
|
||||
: m_type( Common::RegionType::normal )
|
||||
, m_currentWeather( static_cast< uint8_t >( Common::Weather::FairSkies ) )
|
||||
{
|
||||
|
@ -60,7 +59,6 @@ Zone::Zone( uint16_t territoryId, uint32_t guId, const std::string& internalName
|
|||
m_territoryId = territoryId;
|
||||
m_internalName = internalName;
|
||||
m_placeName = placeName;
|
||||
m_bPrivate = bPrivate;
|
||||
m_lastMobUpdate = 0;
|
||||
|
||||
m_currentWeather = getNextWeather();
|
||||
|
|
|
@ -52,7 +52,7 @@ protected:
|
|||
public:
|
||||
Zone();
|
||||
|
||||
Zone( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName, bool bPrivate );
|
||||
Zone( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName );
|
||||
virtual ~Zone();
|
||||
|
||||
bool init();
|
||||
|
|
Loading…
Add table
Reference in a new issue