forked from nova/jmonkey-test
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.
30 lines
647 B
30 lines
647 B
package wow.doge.mygame.game.nodes
|
|
|
|
import akka.actor.typed.scaladsl.Behaviors
|
|
import akka.actor.typed.scaladsl.ActorContext
|
|
|
|
object PlayerCameraActor {
|
|
sealed trait Command
|
|
|
|
class Props() {
|
|
def create =
|
|
Behaviors.setup[Command] { ctx =>
|
|
new PlayerCameraActor(ctx, this).receive(State.empty)
|
|
}
|
|
}
|
|
|
|
case class State()
|
|
object State {
|
|
val empty = State()
|
|
}
|
|
}
|
|
class PlayerCameraActor(
|
|
ctx: ActorContext[PlayerCameraActor.Command],
|
|
props: PlayerCameraActor.Props
|
|
) {
|
|
import PlayerCameraActor._
|
|
def receive(state: State) =
|
|
Behaviors.receiveMessage[Command] {
|
|
case _ => Behaviors.same
|
|
}
|
|
}
|