Ejemplo n.º 1
0
			public bool send_to_ug(nProtoUGrps.Client_UserGateServer sd)
			{
				NetLog("[Send:ug]" + nNWM.nUtil.jDumper.NamedDump(sd.type, m_MSG.m_PacketLogType), true);
				var db = new MSG.ReqDB
				{
					Seq = 0,
					Query = "ug_game",
					Options = Serialize(sd),
				};
				return m_MSGClient.Send(db);
			}
Ejemplo n.º 2
0
            //#--------------------------------------------------------------------------
            //  game logic protocal
            //#--------------------------------------------------------------------------
            private void onRecv_FromUG_AnsDB_GameInfo(int next_index, string sQuery, MSG.AnsDB rd)
            {
                if (next_index == 10000)
                {
                    return;                    // 맨마지막.
                }
                m_User.m_eEUserGPS = EUserGPS.eUGPS_DB_LOAD;

                string tbl = sQuery.Substring(9);

                if (tbl == "tbl_user")
                {
                    nProtoExcel.s_tbl_user user = nNWM.nDummy.NetEventPlugin.Deserialize <nProtoExcel.s_tbl_user>(rd.Result);
                    NetLog("[Recv:table]" + nUtil.jDumper.NamedDump(user, m_MSG.m_PacketLogType));
                    m_User.add_tbl_user(user);
                }

                m_User.Inc_tbl_record(tbl, next_index);
                if (next_index == 9999)
                {
                    NetLog("[Recv:finish]" + tbl + " ");
                    return;
                }

                var db = new MSG.ReqDB
                {
                    Seq   = rd.Seq + 1,
                    Query = sQuery,
                };

                db.Params.Add(new MSG.DBIn
                {
                    Type  = MSG.DBIn.TypeEnum.Int,
                    Value = next_index.ToString(),
                });
                send_to_MSG(db, sQuery + ":" + next_index.ToString());
                return;
            } //onRecv_FromUG_AnsDB_GameInfo