yyl
4 天以前 6faba902086330e9c2c49948b10e5aeecb893bcd
Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
@@ -31,6 +31,7 @@
        }
        endTag = _endTag;
        toIndex = _toIndex;
        PrintAllPack();
    }
@@ -43,6 +44,26 @@
        }
        fromIndex = _fromIndex;
        startTag = tag;
    }
    public void PrintAllPack()
    {
        string temp = "CustomHB426CombinePack startTag: " + (startTag != null ? startTag.Tag : "null") + " fromIndex: " + fromIndex + " toIndex: " + toIndex + "\n";
        for (int i = 0; i < packList.Count; i++)
        {
            var pack = packList[i];
            if (pack is CustomHB426CombinePack b426Pack)
            {
                temp += "  pack type is " + pack.GetType().Name + " tag is " + (b426Pack.startTag != null ? b426Pack.startTag.Tag : "null") + "\n";
            }
            else
            {
                temp += "  pack type is " + pack.GetType().Name + "\n";
            }
        }
        BattleDebug.LogError(temp);
    }
    public void AddPack(GameNetPackBasic pack)