CZone::CZone(ZONEID ZoneID, REGIONTYPE RegionID, CONTINENTTYPE ContinentID) { ZoneTimer = NULL; m_zoneID = ZoneID; m_zoneType = ZONETYPE_NONE; m_regionID = RegionID; m_continentID = ContinentID; m_Transport = 0; m_TreasurePool = 0; m_RegionCheckTime = 0; m_InstanceHandler = NULL; m_Weather = WEATHER_NONE; m_WeatherChangeTime = 0; m_IsWeatherStatic = 0; m_useNavMesh = false; m_navMesh = NULL; // settings should load first LoadZoneSettings(); LoadZoneLines(); LoadZoneWeather(); LoadNavMesh(); }
CZone::CZone(ZONEID ZoneID, REGIONTYPE RegionID, CONTINENTTYPE ContinentID) { ZoneTimer = nullptr; m_zoneID = ZoneID; m_zoneType = ZONETYPE_NONE; m_regionID = RegionID; m_continentID = ContinentID; m_TreasurePool = 0; m_RegionCheckTime = 0; m_BattlefieldHandler = nullptr; m_Weather = WEATHER_NONE; m_WeatherChangeTime = 0; m_useNavMesh = false; m_navMesh = nullptr; m_zoneEntities = new CZoneEntities(this); m_eventType = EVENTTYPE_NONE; // settings should load first LoadZoneSettings(); LoadZoneLines(); LoadZoneWeather(); LoadNavMesh(); }