예제 #1
0
        public override void EnterState()
        {
            EventLogger.Log(LogGlobals.CATEGORY_FASHION_MINIGAME, LogGlobals.EVENT_MINIGAME_ENTERED);

            mStartGame        = DateTime.UtcNow;
            mGameStateMachine = new FashionGameStateMachine();
            mFashionMinigame  = new FashionMinigame(null, new DistributedObjectId(0), new List <object>(), mGameStateMachine);
            GameFacade.Instance.RegisterMediator(mGameStateMachine);
        }
예제 #2
0
        public static void Exit()
        {
            RoomManagerProxy roomManagerProxy = GameFacade.Instance.RetrieveProxy <RoomManagerProxy>();

            roomManagerProxy.JoinLastRoom();
            if (mCurrentStateMachine != null)
            {
                mCurrentStateMachine.CurrentState.ExitState();
                mCurrentStateMachine = null;
            }
        }
예제 #3
0
 public FashionMinigame(SendMessageCallback sendMessage, DistributedObjectId doId, List <object> messageData, FashionGameStateMachine stateMachine)
     : base(sendMessage, doId, messageData)
 {
     GameFacade.Instance.SendNotification(GameFacade.ENTER_FASHION_MINIGAME);
     mCurrentStateMachine = stateMachine;
 }