Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 52927c7

Browse files
Added more helper functions in collection
1 parent c5e4320 commit 52927c7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Assets/SO Architecture/Runtime Sets/Collection.cs

+20
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ public void Remove(T obj)
4545
if (_list.Contains(obj))
4646
_list.Remove(obj);
4747
}
48+
public void Clear()
49+
{
50+
_list.Clear();
51+
}
52+
public bool Contains(T value)
53+
{
54+
return _list.Contains(value);
55+
}
56+
public int IndexOf(T value)
57+
{
58+
return _list.IndexOf(value);
59+
}
60+
public void RemoveAt(int index)
61+
{
62+
_list.RemoveAt(index);
63+
}
64+
public void Insert(int index, T value)
65+
{
66+
_list.Insert(index, value);
67+
}
4868
IEnumerator IEnumerable.GetEnumerator()
4969
{
5070
return GetEnumerator();

0 commit comments

Comments
 (0)