Skip to content

Class: DewPool ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public static class DewPool

Fields ​

NameDeclarationDescription
_clearActionpublic static Dictionary<Type, Action<object>> _clearAction

Methods ​

ClearEventsAndProcessors(Component) ​

csharp
public static void ClearEventsAndProcessors(Component obj)

Parameters:

NameTypeDescription
objUnityEngine.Component

GetArray<T>(out ArrayReturnHandle<T>, int) ​

csharp
public static T[] GetArray<T>(out ArrayReturnHandle<T> handle, int minSize = 128)

Parameters:

NameTypeDescription
handleArrayReturnHandle&lt;T&gt;
minSizeint
``T

Returns: T[]

GetDictionary&lt;TKey, TValue&gt;(out DictionaryReturnHandle&lt;TKey, TValue&gt;) ​

Get an empty dictionary of TKey, TValue.You do not need to clear the dictionary before returning.

csharp
public static Dictionary<TKey, TValue> GetDictionary<TKey, TValue>(out DictionaryReturnHandle<TKey, TValue> handle)

Parameters:

NameTypeDescription
handleDictionaryReturnHandle&lt;TKey, TValue&gt;
``TKey
``TValue

Returns: System.Collections.Generic.Dictionary&lt;TKey, TValue&gt;&lt;TKey, TValue&gt;

GetList&lt;T&gt;(out ListReturnHandle&lt;T&gt;) ​

Get an empty list of T.You do not need to clear the list before returning.

csharp
public static List<T> GetList<T>(out ListReturnHandle<T> handle)

Parameters:

NameTypeDescription
handleListReturnHandle&lt;T&gt;
``T

Returns: System.Collections.Generic.List&lt;T&gt;&lt;T&gt;

Maintained by the Shape of Dreams Modding Community