Defines the teleporter for transfering objects.
Наследование: MapObject
Пример #1
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;

                if( EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle() )
                    UpdateRegion();
            }
        }
Пример #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();
     }
 }