Defines the teleporter for transfering objects.
Inheritance: MapObject
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnRelatedEntityDelete(Entity)"/></summary>
        protected override void OnRelatedEntityDelete( Entity entity )
        {
            base.OnRelatedEntityDelete( entity );
            if( entity == destination )
            {
                destination = null;

                if( EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle() )
                    UpdateRegion();
            }
        }
Beispiel #2
0
 /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnRelatedEntityDelete(Entity)"/></summary>
 protected override void OnRelatedEntityDelete( Entity entity )
 {
     base.OnRelatedEntityDelete( entity );
     if( entity == destination )
     {
         destination = null;
         UpdateRegion();
     }
 }