Difference between revisions of "File:OnGameMethodsInitialized.png"
Jump to navigation
Jump to search
(No difference)
|
Latest revision as of 13:21, 22 June 2025
public class MyCoolMod : IHoldfastSharedMethods, IHoldfastGame {
// Create a static property to hold the game methods.
public static IHoldfastGameMethods GameMethods { get; set; }
// The game will call this method and pass in the methods object.
public void OnGameMethodsInitialized(IHoldfastGameMethods gameMethods)
{
GameMethods = gameMethods;
Debug.Log("Game methods have been initialized and stored.");
}
// ... rest of your IHoldfastSharedMethods implementations ...
}
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 13:21, 22 June 2025 | ![]() | 501 × 217 (29 KB) | Xarkanoth (talk | contribs) |
You cannot overwrite this file.
File usage
The following 2 pages use this file:
