public void SendTsumo(MJsonMessageTsumo msgobj) { foreach (var name in playerNames) { if (name == playerNames[msgobj.actor]) { serverRouter.SendTsumo(name, msgobj); } else { serverRouter.SendTsumo(name, new MJsonMessageTsumo(msgobj.actor, "?")); } } DebugUtil.ServerDebug(JsonConvert.SerializeObject(msgobj)); }
//StoC public void SendTsumo(string name, MJsonMessageTsumo msgobj) { SendMessageToClient(name, JsonConvert.SerializeObject(msgobj)); }
public void SendRinshan(MJsonMessageTsumo msgobj) { serverRouter.SendTsumo(playerNames[msgobj.actor], msgobj); DebugUtil.ServerDebug(JsonConvert.SerializeObject(msgobj)); }