/// <summary>
 /// Loads the resources. Must be called before first use of any other class method.
 /// </summary>
 /// <param name="contentManager">Monogame content manager.</param>
 public void LoadContent(ContentManager contentManager)
 {
     _commandDefinitionsContainer = contentManager.Load <CommandDefinitionsContainer>("XML\\CommandDefinitions");
     _commandsManager.LoadContent(_commandDefinitionsContainer);
 }
Example #2
0
 /// <summary>
 /// Loads command definitions. Must be called before first use of any other class method.
 /// </summary>
 /// <param name="commandDefinitionsContainer">The container of command definitions.</param>
 public void LoadContent(CommandDefinitionsContainer commandDefinitionsContainer)
 {
     _commandDefinitionsContainer = commandDefinitionsContainer;
 }