Changes

Jump to navigation Jump to search
→‎New C# utility methods: update for build 24048 (added Game1.PerformActionWhenPlayerFree)
Line 7,822: Line 7,822:  
| <samp>Game1.getOfflineFarmhands()</samp>
 
| <samp>Game1.getOfflineFarmhands()</samp>
 
| Get all farmhands who aren't connected to the game.
 
| Get all farmhands who aren't connected to the game.
 +
|-
 +
| <samp>Game1.PerformActionWhenPlayerFree</samp>
 +
| Calls the provided callback next time the player is free (e.g. no menu or event is up, not using a tool, etc). If the player is already free, it's run immediately.
 +
 +
For example, if you receive your first geode from a fishing chest, this is used to show the geode-received animation & animation when it closes.
 
|-
 
|-
 
| <samp>Game1.createRadialDebris_MoreNatural</samp>
 
| <samp>Game1.createRadialDebris_MoreNatural</samp>
translators
8,438

edits

Navigation menu