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:
Wojtek Figat
2021-02-23 22:29:07 +01:00
147 changed files with 1740 additions and 1311 deletions

View File

@@ -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>