Esempio n. 1
0
        public void Kong(int playerIndex, OpenMeld kong)
        {
            var kongState = new PlayerKongState
            {
                CurrentRoundStatus = CurrentRoundStatus,
                CurrentPlayerIndex = playerIndex,
                MahjongSet         = mahjongSet,
                Kong = kong
            };

            StateMachine.ChangeState(kongState);
        }
Esempio n. 2
0
        public void RpcKong(EventMessages.KongInfo message)
        {
            var kongState = new PlayerKongState
            {
                CurrentRoundStatus = CurrentRoundStatus,
                KongPlayerIndex    = message.KongPlayerIndex,
                HandData           = message.HandData,
                BonusTurnTime      = message.BonusTurnTime,
                Operations         = message.Operations,
                MahjongSetData     = message.MahjongSetData
            };

            StateMachine.ChangeState(kongState);
        }