예제 #1
0
        public void ApplyActionChanges()
        {
            CommandDaemon.FlushPendingActions(this);

            ActionsToRegister.Clear();
            ActionsToUnregister.Clear();
        }
예제 #2
0
        private void Send(Command command)
        {
            UnityEngine.Debug.Assert(command != null);

            command.Emitter = this;

            CommandDaemon.CommandReceived(command);
        }
예제 #3
0
        public static int Main(String[] args)
        {
            var requestQueue  = new RequestQueue();
            var responseQueue = new ResponseQueue();

            responseDaemon = new ResponseDaemon(responseQueue);
            serverDaemon   = new ServerDaemon(requestQueue);
            commandDaemon  = new CommandDaemon(requestQueue, responseQueue);

            responseDaemon.Start();
            commandDaemon.Start();
            serverDaemon.Start();
            Console.ReadKey();
            return(0);
        }