forked from E-riCA0/StawdewValley
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShed.cs
More file actions
54 lines (48 loc) · 1.41 KB
/
Shed.cs
File metadata and controls
54 lines (48 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Decompiled with JetBrains decompiler
// Type: StardewValley.Shed
// Assembly: Stardew Valley, Version=1.2.6400.27469, Culture=neutral, PublicKeyToken=null
// MVID: 77B7094A-F6F0-4ACC-91F4-E335E2733EDB
// Assembly location: D:\SteamLibrary\steamapps\common\Stardew Valley\Stardew Valley.exe
using Microsoft.Xna.Framework;
using StardewValley.Buildings;
using StardewValley.Locations;
using System.Collections.Generic;
using xTile;
namespace StardewValley
{
public class Shed : DecoratableLocation
{
public Shed()
{
}
public Shed(Map m, string name)
: base(m, name)
{
List<Rectangle> walls = DecoratableLocation.getWalls();
while (this.wallPaper.Count < walls.Count)
this.wallPaper.Add(0);
List<Rectangle> floors = DecoratableLocation.getFloors();
while (this.floor.Count < floors.Count)
this.floor.Add(0);
}
public void updateWhenNotCurrentLocation(Building parentBuilding, GameTime time)
{
}
public override void resetForPlayerEntry()
{
base.resetForPlayerEntry();
if (!Game1.isDarkOut())
return;
Game1.ambientLight = new Color(180, 180, 0);
}
public Building getBuilding()
{
foreach (Building building in Game1.getFarm().buildings)
{
if (building.indoors != null && building.indoors.Equals((object) this))
return building;
}
return (Building) null;
}
}
}