public GuardedRegion( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
{
XmlElement el = xml["guards"];
if ( ReadType( el, "type", ref m_GuardType, false ) )
{
if ( !typeof( Mobile ).IsAssignableFrom( m_GuardType ) )
{
Console.WriteLine( "Invalid guard type for region '{0}'", this );
m_GuardType = DefaultGuardType;
}
}
else
{
m_GuardType = DefaultGuardType;
}
bool disabled = false;
if ( ReadBoolean( el, "disabled", ref disabled, false ) )
this.Disabled = disabled;
}