mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +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"
|
#include "InstanceContent.h"
|
||||||
|
|
||||||
Core::InstanceContent::InstanceContent( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName, bool bPrivate = false )
|
Core::InstanceContent::InstanceContent( uint16_t territoryId, uint32_t guId, const std::string& internalName, const std::string& placeName )
|
||||||
: Zone( territoryId, guId, internalName, placeName, bPrivate )
|
: Zone( territoryId, guId, internalName, placeName )
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
DutyFinished
|
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();
|
virtual ~InstanceContent();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -118,7 +118,7 @@ bool Core::TerritoryMgr::createDefaultTerritories()
|
||||||
"\t" + territoryInfo->name +
|
"\t" + territoryInfo->name +
|
||||||
"\t" + pPlaceName->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();
|
pZone->init();
|
||||||
|
|
||||||
InstanceIdToZonePtrMap instanceMap;
|
InstanceIdToZonePtrMap instanceMap;
|
||||||
|
@ -146,9 +146,9 @@ Core::ZonePtr Core::TerritoryMgr::createTerritoryInstance( uint32_t territoryTyp
|
||||||
|
|
||||||
ZonePtr pZone;
|
ZonePtr pZone;
|
||||||
if( isInstanceContentTerritory( territoryTypeId ) )
|
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
|
else
|
||||||
pZone = ZonePtr( new Zone( territoryTypeId, getNextInstanceId(), pTeri->name, pPlaceName->name, false ) );
|
pZone = ZonePtr( new Zone( territoryTypeId, getNextInstanceId(), pTeri->name, pPlaceName->name ) );
|
||||||
|
|
||||||
pZone->init();
|
pZone->init();
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ namespace Core {
|
||||||
Zone::Zone()
|
Zone::Zone()
|
||||||
: m_territoryId( 0 )
|
: m_territoryId( 0 )
|
||||||
, m_guId( 0 )
|
, m_guId( 0 )
|
||||||
, m_bPrivate( false )
|
|
||||||
, m_type( Common::RegionType::normal )
|
, m_type( Common::RegionType::normal )
|
||||||
, m_currentWeather( static_cast< uint8_t >( Common::Weather::FairSkies ) )
|
, m_currentWeather( static_cast< uint8_t >( Common::Weather::FairSkies ) )
|
||||||
, m_weatherOverride( 0 )
|
, 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_type( Common::RegionType::normal )
|
||||||
, m_currentWeather( static_cast< uint8_t >( Common::Weather::FairSkies ) )
|
, 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_territoryId = territoryId;
|
||||||
m_internalName = internalName;
|
m_internalName = internalName;
|
||||||
m_placeName = placeName;
|
m_placeName = placeName;
|
||||||
m_bPrivate = bPrivate;
|
|
||||||
m_lastMobUpdate = 0;
|
m_lastMobUpdate = 0;
|
||||||
|
|
||||||
m_currentWeather = getNextWeather();
|
m_currentWeather = getNextWeather();
|
||||||
|
|
|
@ -52,7 +52,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
Zone();
|
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();
|
virtual ~Zone();
|
||||||
|
|
||||||
bool init();
|
bool init();
|
||||||
|
|
Loading…
Add table
Reference in a new issue