Line 45: |
Line 45: |
| |- | | |- |
| ! field | | ! field |
| + | ! type |
| ! purpose | | ! purpose |
| |- | | |- |
| | <tt>Game1.player</tt> | | | <tt>Game1.player</tt> |
| + | | <tt>Farmer</tt> |
| | The current player. | | | The current player. |
| |- | | |- |
| | <tt>Game1.currentLocation</tt> | | | <tt>Game1.currentLocation</tt> |
| + | | <tt>GameLocation</tt> |
| | The game location containing the current player. '''For a non-main player, may be <tt>null</tt> when transitioning between locations.''' | | | The game location containing the current player. '''For a non-main player, may be <tt>null</tt> when transitioning between locations.''' |
| |- | | |- |
| | <tt>Game1.locations</tt> | | | <tt>Game1.locations</tt> |
| + | | <tt>IList<GameLocation></tt> |
| | All locations in the game. '''For a non-main player, use [[Modding:Modder Guide/APIs/Multiplayer#GetActiveLocations|SMAPI's <tt>GetActiveLocations</tt> method]] instead.''' | | | All locations in the game. '''For a non-main player, use [[Modding:Modder Guide/APIs/Multiplayer#GetActiveLocations|SMAPI's <tt>GetActiveLocations</tt> method]] instead.''' |
| |- | | |- |
| | <tt>Game1.timeOfDay</tt><br /><tt>Game1.dayOfMonth</tt><br /><tt>Game1.currentSeason</tt><br /><tt>Game1.year</tt> | | | <tt>Game1.timeOfDay</tt><br /><tt>Game1.dayOfMonth</tt><br /><tt>Game1.currentSeason</tt><br /><tt>Game1.year</tt> |
| + | | <tt>int</tt><br /><tt>int</tt><br /><tt>string</tt><br /><tt>int</tt> |
| | The current time, day, season, and year. See also [[Modding:Modder Guide/APIs/Utilities#Dates|SMAPI's date utility]]. | | | The current time, day, season, and year. See also [[Modding:Modder Guide/APIs/Utilities#Dates|SMAPI's date utility]]. |
| |- | | |- |
| | <tt>Game1.itemsToShip</tt> | | | <tt>Game1.itemsToShip</tt> |
| + | | <tt>IList<Item></tt> |
| | The items in the shipping bin. | | | The items in the shipping bin. |
| |- | | |- |
| | <tt>Game1.activeClickableMenu</tt> | | | <tt>Game1.activeClickableMenu</tt> |
| + | | <tt>IClickableMenu</tt> |
| | The modal menu being displayed. Creating an <tt>IClickableMenu</tt> subclass and assigning an instance to this field will display it. | | | The modal menu being displayed. Creating an <tt>IClickableMenu</tt> subclass and assigning an instance to this field will display it. |
| |} | | |} |