Exemple #1
0
        // 接收战后统计数据
        public void recvWarEndPlayerData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);
            Int64 dbWarID = helper.getInt64();

            cmd_count cmdCount = helper.get <cmd_count>();

            for (int i = 0; i < cmdCount.nCount; ++i)
            {
                cmd_entity_end_player_data cmdInfo = helper.get <cmd_entity_end_player_data>();
                ulong pDbid = cmdInfo.pDbid;

                swar_flaunt_result result;
                result.data    = cmdInfo;
                result.dbWarID = dbWarID;

                endRecordInfoArray[pDbid] = result;
            }
        }