예제 #1
0
        void Enter()
        {
            WorldLocation loc = new WorldLocation(_siteLevel.MapID);

            loc.Relocate(_owner);
            _owner.TeleportTo(loc, TeleportToOptions.Seamless);
        }
예제 #2
0
        void Leave()
        {
            MapRecord map = CliDB.MapStorage.LookupByKey(_siteLevel.MapID);

            if (map != null)
            {
                WorldLocation loc = new WorldLocation((uint)map.ParentMapID);
                loc.Relocate(_owner);
                _owner.TeleportTo(loc, TeleportToOptions.Seamless);
            }
        }