コード例 #1
0
 /// <summary>
 /// Creates new instance of HUD warning
 /// </summary>
 /// <param name="detectionMethod">Warning's detection method</param>
 /// <param name="soundWarning">Sound warning</param>
 /// <param name="textWarning">Text warning</param>
 /// <param name="priority">Warning's priority</param>
 public MyHudWarning(MyWarningDetectionMethod detectionMethod, MyHudSoundWarning soundWarning, MyHudTextWarning textWarning, int priority)
 {
     m_warningDetectionMethod = detectionMethod;
     m_soundWarning           = soundWarning;
     m_textWarning            = textWarning;
     Priority          = priority;
     m_warningDetected = false;
 }
コード例 #2
0
ファイル: MyHudWarning.cs プロジェクト: Bunni/Miner-Wars-2081
 /// <summary>
 /// Creates new instance of HUD warning
 /// </summary>
 /// <param name="detectionMethod">Warning's detection method</param>
 /// <param name="soundWarning">Sound warning</param>
 /// <param name="textWarning">Text warning</param>
 /// <param name="priority">Warning's priority</param>
 public MyHudWarning(MyWarningDetectionMethod detectionMethod, MyHudSoundWarning soundWarning, MyHudTextWarning textWarning, int priority)
 {            
     m_warningDetectionMethod = detectionMethod;
     m_soundWarning = soundWarning;
     m_textWarning = textWarning;
     Priority = priority;
     m_warningDetected = false;            
 }