//-------------------------------------------------------------------
//
//  This code is copyright 2001 by G5 Software.
//  Any unauthorized usage, either in part or in whole of this code
//  is strictly prohibited. Violators WILL be prosecuted to the
//  maximum extent allowed by law.
//
//-------------------------------------------------------------------

class CBaseForAllVillages
{
  void OnDetonation(
      string _SourceType,   // source type (explosion type)
      matrix _SourcePlace,  // source place
      float  _Radius        // damage radius
    )
  {
    if (_SourceType == "SphericExplosion")
    {
      DestroyFence(_SourcePlace, _Radius);
    }
    else
    if (_SourceType == "WaveExplosion")
    {
      DestroyFence(_SourcePlace, _Radius);
    }
  }
}

