public void SendMJsonObject(MJsonMessageTsumo jsonmsg) { // logging logger.MjLog(MjsonObjectToString(jsonmsg)); var paiHiddemMsg = new MJsonMessageTsumo(jsonmsg.actor, Pai.UNKNOWN_PAI_STRING); for (int i = 0; i < clients.Count; i++) { if( i == jsonmsg.actor ) { clients[i].SendMessageToClient(MjsonObjectToString(jsonmsg)); } else { clients[i].SendMessageToClient(MjsonObjectToString(paiHiddemMsg)); } } }
public void ChangeState(MJsonMessageTsumo sentMessage) { gameState = AfterTsumoState.GetInstance(); SetLastActor(sentMessage.actor); messageList.Clear(); }