mirror of
https://github.com/Alee14/OpenHacknet.git
synced 2025-01-22 09:12:44 -05:00
33 lines
No EOL
800 B
C#
33 lines
No EOL
800 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Hacknet
|
|
{
|
|
public static class DebugLog
|
|
{
|
|
public static char[] delimiters = new char[2]
|
|
{
|
|
'\n',
|
|
'\r'
|
|
};
|
|
|
|
public static List<string> data = new List<string>(64);
|
|
|
|
public static void add(string s)
|
|
{
|
|
var strArray = s.Split(delimiters);
|
|
for (var index = 0; index < strArray.Length; ++index)
|
|
{
|
|
if (!strArray[index].Equals(""))
|
|
data.Add(strArray[index]);
|
|
}
|
|
}
|
|
|
|
public static string GetDump()
|
|
{
|
|
var str = "";
|
|
for (var index = 0; index < data.Count; ++index)
|
|
str = str + data[index] + "\r\n";
|
|
return str;
|
|
}
|
|
}
|
|
} |