public OnRegionChange ( Region Old, Region New ) : void | ||
Old | Region | |
New | Region | |
return | void |
public override void OnRegionChange( Region Old, Region New )
{
base.OnRegionChange( Old, New );
if ( this.Controlled )
{
SpawnEntry se = this.Spawner as SpawnEntry;
if ( se != null && !se.UnlinkOnTaming && ( New == null || !New.AcceptsSpawnsFrom( se.Region ) ) )
{
this.Spawner.Remove( this );
this.Spawner = null;
}
}
}