Beispiel #1
0
 public void unload()
 {
     (Game1.player.CurrentTool as FishingRod).castingEndFunction(-1);
     (Game1.player.CurrentTool as FishingRod).doneFishing(Game1.player);
     Game1.player.TemporaryItem   = null;
     Game1.player.currentLocation = Game1.currentLocation;
     Game1.player.completelyStopAnimatingOrDoingAction();
     Game1.player.forceCanMove();
     Game1.player.faceDirection(2);
     content.Unload();
     content.Dispose();
     content = null;
 }
Beispiel #2
0
        private void restoreBridge()
        {
            LocalizedContentManager localizedContentManager = Game1.content.CreateTemporary();
            Map map  = localizedContentManager.Load <Map>("Maps\\Mountain-BridgeFixed");
            int num  = 92;
            int num2 = 24;

            for (int i = 0; i < map.GetLayer("Back").LayerWidth; i++)
            {
                for (int j = 0; j < map.GetLayer("Back").LayerHeight; j++)
                {
                    this.map.GetLayer("Back").Tiles[i + num, j + num2]      = ((map.GetLayer("Back").Tiles[i, j] == null) ? null : new StaticTile(this.map.GetLayer("Back"), this.map.TileSheets[0], BlendMode.Alpha, map.GetLayer("Back").Tiles[i, j].TileIndex));
                    this.map.GetLayer("Buildings").Tiles[i + num, j + num2] = ((map.GetLayer("Buildings").Tiles[i, j] == null) ? null : new StaticTile(this.map.GetLayer("Buildings"), this.map.TileSheets[0], BlendMode.Alpha, map.GetLayer("Buildings").Tiles[i, j].TileIndex));
                    this.map.GetLayer("Front").Tiles[i + num, j + num2]     = ((map.GetLayer("Front").Tiles[i, j] == null) ? null : new StaticTile(this.map.GetLayer("Front"), this.map.TileSheets[0], BlendMode.Alpha, map.GetLayer("Front").Tiles[i, j].TileIndex));
                }
            }
            this.bridgeRestored = true;
            localizedContentManager.Unload();
        }
Beispiel #3
0
        private void restoreBridge()
        {
            LocalizedContentManager temporary = Game1.content.CreateTemporary();
            Map map  = temporary.Load <Map>("Maps\\Mountain-BridgeFixed");
            int num1 = 92;
            int num2 = 24;

            for (int index1 = 0; index1 < map.GetLayer("Back").LayerWidth; ++index1)
            {
                for (int index2 = 0; index2 < map.GetLayer("Back").LayerHeight; ++index2)
                {
                    this.map.GetLayer("Back").Tiles[index1 + num1, index2 + num2]      = map.GetLayer("Back").Tiles[index1, index2] == null ? (Tile)null : (Tile) new StaticTile(this.map.GetLayer("Back"), this.map.TileSheets[0], BlendMode.Alpha, map.GetLayer("Back").Tiles[index1, index2].TileIndex);
                    this.map.GetLayer("Buildings").Tiles[index1 + num1, index2 + num2] = map.GetLayer("Buildings").Tiles[index1, index2] == null ? (Tile)null : (Tile) new StaticTile(this.map.GetLayer("Buildings"), this.map.TileSheets[0], BlendMode.Alpha, map.GetLayer("Buildings").Tiles[index1, index2].TileIndex);
                    this.map.GetLayer("Front").Tiles[index1 + num1, index2 + num2]     = map.GetLayer("Front").Tiles[index1, index2] == null ? (Tile)null : (Tile) new StaticTile(this.map.GetLayer("Front"), this.map.TileSheets[0], BlendMode.Alpha, map.GetLayer("Front").Tiles[index1, index2].TileIndex);
                }
            }
            this.bridgeRestored = true;
            temporary.Unload();
        }
        // Token: 0x06001171 RID: 4465 RVA: 0x00165BF8 File Offset: 0x00163DF8
        private void restoreBridge()
        {
            LocalizedContentManager temp = Game1.content.CreateTemporary();
            Map i       = temp.Load <Map>("Maps\\Mountain-BridgeFixed");
            int xOffset = 92;
            int yOffset = 24;

            for (int x = 0; x < i.GetLayer("Back").LayerWidth; x++)
            {
                for (int y = 0; y < i.GetLayer("Back").LayerHeight; y++)
                {
                    this.map.GetLayer("Back").Tiles[x + xOffset, y + yOffset]      = ((i.GetLayer("Back").Tiles[x, y] == null) ? null : new StaticTile(this.map.GetLayer("Back"), this.map.TileSheets[0], BlendMode.Alpha, i.GetLayer("Back").Tiles[x, y].TileIndex));
                    this.map.GetLayer("Buildings").Tiles[x + xOffset, y + yOffset] = ((i.GetLayer("Buildings").Tiles[x, y] == null) ? null : new StaticTile(this.map.GetLayer("Buildings"), this.map.TileSheets[0], BlendMode.Alpha, i.GetLayer("Buildings").Tiles[x, y].TileIndex));
                    this.map.GetLayer("Front").Tiles[x + xOffset, y + yOffset]     = ((i.GetLayer("Front").Tiles[x, y] == null) ? null : new StaticTile(this.map.GetLayer("Front"), this.map.TileSheets[0], BlendMode.Alpha, i.GetLayer("Front").Tiles[x, y].TileIndex));
                }
            }
            this.bridgeRestored = true;
            temp.Unload();
        }
Beispiel #5
0
 public void unload()
 {
     temporaryContent.Unload();
 }
Beispiel #6
0
 public void unload()
 {
     content.Unload();
 }
 public void unload()
 {
     content.Unload();
     content = null;
 }
Beispiel #8
0
 protected override void UnloadContent()
 {
     content.Unload();
 }