mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 18:05:40 +02:00
DCS World status
This commit is contained in:
@@ -122,6 +122,9 @@ public class DatabaseController
|
||||
Globals.CurrentMission.Theatre = TCPFrame.payload.mission.theatre; // Mission theatre
|
||||
Globals.CurrentMission.Mission = TCPFrame.payload.mission.name; // Mission name
|
||||
Globals.CurrentMission.Pause = TCPFrame.payload.mission.pause; // Mission pause
|
||||
|
||||
Globals.CurrentMission.ModelTime = TCPFrame.payload.mission.modeltime; // Mission time
|
||||
Globals.CurrentMission.RealTime = TCPFrame.payload.mission.realtime; // Since start of server
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@@ -11,6 +11,9 @@ class CurrentMissionClass
|
||||
public string Pause = ""; // Mission pause
|
||||
public int PlayerCount = 0; // Actual player time
|
||||
|
||||
public string ModelTime = "";
|
||||
public string RealTime = "";
|
||||
|
||||
public string ToInfoString()
|
||||
{
|
||||
// Return mission information as string
|
||||
|
||||
@@ -53,10 +53,10 @@ internal class PerunHelper
|
||||
}
|
||||
|
||||
// Set marker for user flags (markers)
|
||||
LogMarker = (intMarker>0) ? "X" : " ";
|
||||
LogMarker = (intMarker > 0) ? "X" : " ";
|
||||
|
||||
// Set frame type
|
||||
strType=strType.PadLeft(3, ' ');
|
||||
strType = strType.PadLeft(3, ' ');
|
||||
|
||||
if (!bSkipGui)
|
||||
{
|
||||
@@ -73,7 +73,7 @@ internal class PerunHelper
|
||||
Globals.AppUpdateGUI = true;
|
||||
}
|
||||
// Add the entry to log file
|
||||
LogController.instance.WriteLog(logLevel, DateTime.Now.ToString("yyyy-MM-dd ") + " " + DateTime.Now.ToString("HH:mm:ss") + " | Instance: "+ Globals.AppInstanceID + " | " + LogMarker + " | "+ LogDirection + " | "+ strType + " | " + strEntryToAdd);
|
||||
LogController.instance.WriteLog(logLevel, DateTime.Now.ToString("yyyy-MM-dd ") + " " + DateTime.Now.ToString("HH:mm:ss") + " | Instance: " + Globals.AppInstanceID + " | " + LogMarker + " | " + LogDirection + " | " + strType + " | " + strEntryToAdd);
|
||||
}
|
||||
|
||||
// Gets build version
|
||||
@@ -121,4 +121,9 @@ internal class PerunHelper
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
public static string ConvertSecoundsToString (Double NumberOfSecounds){
|
||||
// TBD
|
||||
return NumberOfSecounds.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user