Difference between revisions of "File:OnGameMethodsInitialized.png"

From Holdfast: Nations At War
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/TimeThumbnailDimensionsUserComment
current13:21, 22 June 2025Thumbnail for version as of 13:21, 22 June 2025501 × 217 (29 KB)Xarkanoth (talk | contribs)

The following 2 pages use this file: