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); }
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); }