升级水插件
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Crest Water System
|
||||
// Crest Water System
|
||||
// Copyright © 2024 Wave Harmonic. All rights reserved.
|
||||
|
||||
using System.Collections;
|
||||
@@ -42,6 +42,16 @@ namespace WaveHarmonic.Crest.Utility
|
||||
_NeedsSorting = true;
|
||||
}
|
||||
|
||||
public bool Contains(TValue value)
|
||||
{
|
||||
foreach (var item in _BackingList)
|
||||
{
|
||||
if (item.Value.Equals(value)) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool Remove(TValue value)
|
||||
{
|
||||
// This remove function has a fairly high complexity, as we need to search
|
||||
|
||||
Reference in New Issue
Block a user