public void Kong(int playerIndex, OpenMeld kong) { var kongState = new PlayerKongState { CurrentRoundStatus = CurrentRoundStatus, CurrentPlayerIndex = playerIndex, MahjongSet = mahjongSet, Kong = kong }; StateMachine.ChangeState(kongState); }
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); }