public void DeleteLife( string name )
{
if ( string.IsNullOrWhiteSpace( name ) ) {
Logger.Log( LogType.Error, "null or empty string in deleting life" );
return;
}
lock ( SyncRoot ) {
if ( null == Map )
return;
map.LifeZones.Remove( name.ToLower() );
if ( map.LifeZones.Count <= 0 )
_physSchedulers[( int )TaskCategory.Life].Stop();
}
}