Exemple #1
0
        private void Init()
        {
            mClientMessageProcessor = GameFacade.Instance.RetrieveProxy <ClientMessageProcessor>();
            IGuiManager guiManager = GameFacade.Instance.RetrieveMediator <RuntimeGuiManager>();

            mInventoryController = new InventoryGuiController(guiManager);
            mPaymentItemsCommand = new PaymentItemsCommand();
        }
        public void StartReflector(GameFacade mInstance)
        {
            if (mClientReflector == null)
            {
                string stateServerAddress = mStateServerAddress; //"127.0.0.1";  //"64.106.173.25";
                int    stateServerPort    = mStateServerPort;    //8000;

                Console.WriteLine(stateServerAddress + ":" + stateServerPort);

                mScheduler = mInstance.RetrieveMediator <SchedulerMediator>().Scheduler;

                mClientReflector = new Hangout.Client.ClientReflector(mScheduler, delegate()
                {
                });

                mClientReflector.Connect(stateServerAddress, stateServerPort);

                mPaymentItemCommand = new PaymentItemsCommand(GetMyIpAddress());
            }
        }