1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2026-01-12 08:58:15 +01:00
Files
Minecraft-Phantom-Panel/Utils/Phantom.Utils.Actor/ActorFactory.cs

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) {}
}