Esempio n. 1
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
Esempio n. 2
0
 public void add_tbl_user(nProtoExcel.s_tbl_user tbl)
 {
     m_GameInfo.m_tbl_user.Add(tbl);
 }