Class DewPool
Inheritance
object
DewPool
Assembly: Dew.Core.dll
Syntax
public static class DewPool
Fields
_clearAction
Declaration
public static Dictionary<Type, Action<object>> _clearAction
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><System.Type, System.Action<T><object>> |
|
Methods
ClearEventsAndProcessors(Component)
Declaration
public static void ClearEventsAndProcessors(Component obj)
Parameters
| Type |
Name |
Description |
| UnityEngine.Component |
obj |
|
GetArray<T>(out ArrayReturnHandle<T>, int)
Declaration
public static T[] GetArray<T>(out ArrayReturnHandle<T> handle, int minSize = 128)
Parameters
Returns
Type Parameters
GetDictionary<TKey, TValue>(out DictionaryReturnHandle<TKey, TValue>)
Get an empty dictionary of TKey, TValue.
You do not need to clear the dictionary before returning.
Declaration
public static Dictionary<TKey, TValue> GetDictionary<TKey, TValue>(out DictionaryReturnHandle<TKey, TValue> handle)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><TKey, TValue> |
|
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|
GetList<T>(out ListReturnHandle<T>)
Get an empty list of T.
You do not need to clear the list before returning.
Declaration
public static List<T> GetList<T>(out ListReturnHandle<T> handle)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.List<T><T> |
|
Type Parameters