Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 //StoC
 public void SendStartKyoku(string name, MJsonMessageStartKyoku msgobj)
 {
     SendMessageToClient(name, JsonConvert.SerializeObject(msgobj));
 }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
 //StoC
 public void SendStartKyoku(string name, MJsonMessageStartKyoku msgobj)
 {
     SendMessageToClient(name, JsonConvert.SerializeObject(msgobj));
  }