1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-09-30 23:02:48 +02:00
Files

14 lines
312 B
C#

using Akka.Actor;
namespace Phantom.Utils.Actor;
sealed class ActorFactory<TActor>(Func<TActor> constructor) : IIndirectActorProducer where TActor : ActorBase {
public Type ActorType => typeof(TActor);
public ActorBase Produce() {
return constructor();
}
public void Release(ActorBase actor) {}
}