Esempio n. 1
0
 // --- constructors ---
 /// <summary>Creates a new instance of this class.</summary>
 /// <param name="pluginFolder">The absolute path to the plugin folder.</param>
 /// <param name="trainFolder">The absolute path to the train folder.</param>
 /// <param name="playSound">The callback function for playing sounds.</param>
 /// /// <param name="addMessage">The callback function for adding interface messages.</param>
 public LoadProperties(string pluginFolder, string trainFolder, PlaySoundDelegate playSound, AddInterfaceMessageDelegate addMessage)
 {
     this.MyPluginFolder        = pluginFolder;
     this.MyTrainFolder         = trainFolder;
     this.MyPlaySound           = playSound;
     this.MyAddInterfaceMessage = addMessage;
     this.MyFailureReason       = null;
 }
Esempio n. 2
0
 /// <summary>Initialises the message manager. Call this method via the Load() method.</summary>
 /// <param name="addMessage">The callback function for adding interface messages.</param>
 internal static void Initialise(AddInterfaceMessageDelegate addMessage)
 {
     AddMessage = addMessage;
 }
Esempio n. 3
0
		// --- constructors ---
		/// <summary>Creates a new instance of this class.</summary>
		/// <param name="pluginFolder">The absolute path to the plugin folder.</param>
		/// <param name="trainFolder">The absolute path to the train folder.</param>
		/// <param name="playSound">The callback function for playing sounds.</param>
		/// /// <param name="addMessage">The callback function for adding interface messages.</param>
		public LoadProperties(string pluginFolder, string trainFolder, PlaySoundDelegate playSound, AddInterfaceMessageDelegate addMessage) {
			this.MyPluginFolder = pluginFolder;
			this.MyTrainFolder = trainFolder;
			this.MyPlaySound = playSound;
			this.MyAddInterfaceMessage = addMessage;
			this.MyFailureReason = null;
		}