The build config NuGet package should detect most implicit conversions and show an appropriate build warning.
The build config NuGet package should detect most implicit conversions and show an appropriate build warning.
+
+
==Main classes==
+
===Game1===
+
<tt>Game1</tt> is the game's core logic. Most of the game state is tracked through this class. Here are some of the most useful fields:
+
+
{| class="wikitable"
+
|-
+
! field
+
! purpose
+
|-
+
| <tt>Game1.player</tt>
+
| The current player.
+
|-
+
| <tt>Game1.currentLocation</tt>
+
| 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>
+
| All locations in the game. '''For a non-main player, use [[Modding:Modder Guide/APIs/Multiplayer#GetActiveLocations|SMAPI's <tt>GetActiveLocations</tt> method]] instead.'''