예제 #1
0
        public void RoundStart(bool next, bool extra, bool keepSticks)
        {
            var startState = new RoundStartState
            {
                CurrentRoundStatus = CurrentRoundStatus,
                MahjongSet         = mahjongSet,
                NextRound          = next,
                ExtraRound         = extra,
                KeepSticks         = keepSticks
            };

            StateMachine.ChangeState(startState);
        }
예제 #2
0
        public void RpcRoundStart(EventMessages.RoundStartInfo info)
        {
            var startState = new RoundStartState
            {
                CurrentRoundStatus   = CurrentRoundStatus,
                LocalPlayerHandTiles = info.InitialHandTiles,
                OyaPlayerIndex       = info.OyaPlayerIndex,
                Dice           = info.Dice,
                Field          = info.Field,
                Extra          = info.Extra,
                RichiSticks    = info.RichiSticks,
                MahjongSetData = info.MahjongSetData,
                Points         = info.Points
            };

            StateMachine.ChangeState(startState);
        }