Testing out JmonkeyEngine to make a game in Scala with Akka Actors within a pure FP layer
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package wow.doge.mygame.subsystems.scriptsystem
import wow.doge.mygame.utils.AkkaUtils import cats.effect.Resource import wow.doge.mygame.scriptsystem.ScriptCachingActor import akka.actor.typed.ActorRef import akka.actor.typed.SpawnProtocol import akka.util.Timeout import akka.actor.typed.Scheduler
class ScriptSystemResource( path: os.Path, spawnProtocol: ActorRef[SpawnProtocol.Command] )(implicit timeout: Timeout, scheduler: Scheduler) { def make = Resource.liftF( AkkaUtils.spawnActorL( spawnProtocol, "scriptCachingActor", ScriptCachingActor() ) ) }
|