1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2026-02-15 17:06:12 +01: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) {}
}