Ejemplo n.º 1
0
        public void ReopenTownPortal()
        {
            var    mymod    = (WormholesMod)this.mod;
            var    modworld = this.mod.GetModWorld <WormholesWorld>();
            string world_id = modworld.ID;

            if (this.TownPortalRightPositions.Keys.Contains(world_id))
            {
                Vector2 r_pos = this.TownPortalRightPositions[world_id];
                Vector2 l_pos = this.TownPortalLeftPositions[world_id];
                TownPortalScrollItem.OpenPortal(mymod, this.player, r_pos, l_pos);
            }

            this.HasLoadedTownPortals = true;
        }
Ejemplo n.º 2
0
        ////////////////

        public void ReopenTownPortal()
        {
            var    mymod    = (WormholesMod)this.mod;
            var    modworld = ModContent.GetInstance <WormholesWorld>();
            string worldId  = modworld.ID;

            if (this.TownPortalRightPositions.Keys.Contains(worldId))
            {
                Vector2 rPos = this.TownPortalRightPositions[worldId];
                Vector2 lPos = this.TownPortalLeftPositions[worldId];
                TownPortalScrollItem.OpenPortal(this.player, rPos, lPos);
            }

            this.HasLoadedTownPortals = true;
        }