Exemplo n.º 1
0
        protected virtual bool ExtractPotentialStateMessage(object message, out EntityActorStateInitializeMessage <TActorStateType> entityActorStateInitializeMessage)
        {
            if (message is EntityActorStateInitializeMessage <TActorStateType> initMessage)
            {
                entityActorStateInitializeMessage = initMessage;
                return(true);
            }

            entityActorStateInitializeMessage = null;
            return(false);
        }
Exemplo n.º 2
0
        protected override bool ExtractPotentialStateMessage(object message, out EntityActorStateInitializeMessage <WorldActorState> entityActorStateInitializeMessage)
        {
            bool result = base.ExtractPotentialStateMessage(message, out entityActorStateInitializeMessage);

            if (result)
            {
                entityActorStateInitializeMessage.State.WorldActorFactory = Context;
                entityActorStateInitializeMessage.State.DeathWatchService = Context;
                return(result);
            }

            return(false);
        }