补齐备份工程打开依赖

This commit is contained in:
JSD\13999
2026-05-26 17:55:41 +08:00
parent e81881ad78
commit 43b4650ee3
433 changed files with 49783 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
namespace IngameDebugConsole
{
public class DebugLogIndexList<T>
{
private T[] indices;
private int size;
public int Count { get { return size; } }
public T this[int index]
{
get { return indices[index]; }
set { indices[index] = value; }
}
public DebugLogIndexList()
{
indices = new T[64];
size = 0;
}
public void Add( T value )
{
if( size == indices.Length )
System.Array.Resize( ref indices, size * 2 );
indices[size++] = value;
}
public void Clear()
{
size = 0;
}
public int IndexOf( T value )
{
return System.Array.IndexOf( indices, value );
}
}
}