public void SendStartKyoku(MJsonMessageStartKyoku msgobj) { //自身の手配しか見えない状態に加工してクライアントへメッセージ送信 var knownTehais = msgobj.tehais; for (int i = 0; i < playerNames.Count; i++) { var unknownTehais = new List <List <string> > { Tehai.UNKNOWN_TEHAI_STRING, Tehai.UNKNOWN_TEHAI_STRING, Tehai.UNKNOWN_TEHAI_STRING, Tehai.UNKNOWN_TEHAI_STRING }; unknownTehais[i] = knownTehais[i]; serverRouter.SendStartKyoku(playerNames[i], new MJsonMessageStartKyoku( msgobj.bakaze, msgobj.kyoku, msgobj.honba, msgobj.kyotaku, msgobj.oya, msgobj.dora_marker, unknownTehais)); } DebugUtil.ServerDebug(JsonConvert.SerializeObject(msgobj)); }
//StoC public void SendStartKyoku(string name, MJsonMessageStartKyoku msgobj) { SendMessageToClient(name, JsonConvert.SerializeObject(msgobj)); }
public void SendStartKyoku(MJsonMessageStartKyoku msgobj) { //自身の手配しか見えない状態に加工してクライアントへメッセージ送信 var knownTehais = msgobj.tehais; for (int i = 0; i < playerNames.Count; i++) { var unknownTehais = new List<List<string>> { Tehai.UNKNOWN_TEHAI_STRING, Tehai.UNKNOWN_TEHAI_STRING, Tehai.UNKNOWN_TEHAI_STRING, Tehai.UNKNOWN_TEHAI_STRING }; unknownTehais[i] = knownTehais[i]; serverRouter.SendStartKyoku(playerNames[i], new MJsonMessageStartKyoku( msgobj.bakaze, msgobj.kyoku, msgobj.honba, msgobj.kyotaku, msgobj.oya, msgobj.dora_marker, unknownTehais)); } DebugUtil.ServerDebug(JsonConvert.SerializeObject(msgobj)); }