Skip to content

クラス DictWithLife<TKey, TValue>

Namespace: GameCanvas

csharp
public sealed class DictWithLife<TKey, TValue> where TKey : System.IEquatable<TKey> where TValue : class, new()

期限付き辞書

コンストラクター

DictWithLife(int, int)

csharp
public DictWithLife(int capacity = 8, int initialSize = 0)

メソッド

DecrementLife()

csharp
public void DecrementLife()

Issue(TKey, TValue, byte)

csharp
public void Issue(in TKey key, out TValue value, in byte life = 3)

ReleaseAll()

csharp
public void ReleaseAll()

TryGetValue(TKey, TValue)

csharp
public bool TryGetValue(in TKey key, out TValue value)

Released under the MIT License.