Merge remote-tracking branch 'origin/master' into linux-editor
# Conflicts: # Source/Engine/Core/Math/Color.cs # Source/Engine/Navigation/Navigation.cpp # Source/Engine/Platform/Win32/Win32Platform.cpp
This commit is contained in:
@@ -123,6 +123,58 @@ namespace Flax.Build
|
||||
Write(message, ConsoleColor.Red, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the verbose message.
|
||||
/// </summary>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <param name="flag">The flag used to indicate whether this log was already sent.</param>
|
||||
public static void VerboseOnce(string message, ref bool flag)
|
||||
{
|
||||
if (flag)
|
||||
return;
|
||||
flag = true;
|
||||
Write(message, _defaultColor, Configuration.ConsoleLog && Configuration.Verbose);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the information.
|
||||
/// </summary>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <param name="flag">The flag used to indicate whether this log was already sent.</param>
|
||||
public static void InfoOnce(string message, ref bool flag)
|
||||
{
|
||||
if (flag)
|
||||
return;
|
||||
flag = true;
|
||||
Write(message, _defaultColor, Configuration.ConsoleLog);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the warning message.
|
||||
/// </summary>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <param name="flag">The flag used to indicate whether this log was already sent.</param>
|
||||
public static void WarningOnce(string message, ref bool flag)
|
||||
{
|
||||
if (flag)
|
||||
return;
|
||||
flag = true;
|
||||
Write(message, ConsoleColor.Yellow, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the error message.
|
||||
/// </summary>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <param name="flag">The flag used to indicate whether this log was already sent.</param>
|
||||
public static void ErrorOnce(string message, ref bool flag)
|
||||
{
|
||||
if (flag)
|
||||
return;
|
||||
flag = true;
|
||||
Write(message, ConsoleColor.Red, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Logs the exception.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user