Ver.0.3.0.33
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AibisDream.Kit
|
||||
{
|
||||
public interface IActionQueueCallback
|
||||
{
|
||||
void Call();
|
||||
}
|
||||
|
||||
internal struct ActionQueueRecycleCallback<T> : IActionQueueCallback
|
||||
{
|
||||
public SimpleObjectPool<T> pool;
|
||||
public T action;
|
||||
|
||||
public ActionQueueRecycleCallback(SimpleObjectPool<T> pool, T action)
|
||||
{
|
||||
this.pool = pool;
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public void Call()
|
||||
{
|
||||
pool.Recycle(action);
|
||||
pool = null;
|
||||
action = default;
|
||||
}
|
||||
}
|
||||
|
||||
internal class ActionQueue : Singleton<ActionQueue>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 086caf33452541fb8296dc009b6df232
|
||||
timeCreated: 1744889518
|
||||
Reference in New Issue
Block a user