/// <summary> /// Writes Console History to History Queue /// </summary> /// <param name="a_history">History to Write</param> public void WriteToHistory(LogData a_data, ICommand a_command = null) { if (a_data.HasValue) { if (s_ConsoleHistory.Count + 1 > s_MaxHistory) { s_ConsoleHistory.Dequeue(); } s_ConsoleHistory.Enqueue(a_data); s_Handler.OnWriteToConsole(FormatPrintLog(a_data)); } if (a_command != null) { if (s_CommandHistory.Count + 1 > s_MaxHistory) { s_CommandHistory.Dequeue(); } s_CommandHistory.Enqueue(a_command); } }