Line 841: |
Line 841: |
| |- | | |- |
| | <tt>Context.IsWorldReady</tt> | | | <tt>Context.IsWorldReady</tt> |
− | | The player has loaded a save and the world has finished initialising. Useful for ignoring events before the save is loaded. | + | | Whether the player has loaded a save and the world has finished initialising. Useful for ignoring events before the save is loaded. |
| |- | | |- |
| | <tt>Context.IsPlayerFree</tt> | | | <tt>Context.IsPlayerFree</tt> |
− | | <tt>Context.IsWorldReady</tt> and the player is free to act on the world (no menu is displayed, no cutscene is in progress, etc). | + | | Whether <tt>Context.IsWorldReady</tt> and the player is free to act on the world (no menu is displayed, no cutscene is in progress, etc). |
| |- | | |- |
| | <tt>Context.CanPlayerMove</tt> | | | <tt>Context.CanPlayerMove</tt> |
− | | <tt>Context.IsPlayerFree</tt> and the player is free to move (e.g. not using a tool). | + | | Whether <tt>Context.IsPlayerFree</tt> and the player is free to move (e.g. not using a tool). |
| + | |- |
| + | | <tt>Context.IsMultiplayer</tt> |
| + | | {{SMAPI upcoming|2.6|content=Whether <tt>Context.IsWorldReady</tt>, and the player loaded the save in multiplayer mode (regardless of whether any other players are connected).}} |
| + | |- |
| + | | <tt>Context.IsMainPlayer</tt> |
| + | | {{SMAPI upcoming|2.6|content=Whether <tt>Context.IsWorldReady</tt>, and the player is the main player. This is always true in single-player, and true when hosting in multiplayer.}} |
| |} | | |} |
| | | |