예제 #1
0
    public static CardInfo_Base Deserialze(DataStream reader)
    {
        string        myType           = reader.ReadString8();
        Assembly      assembly         = Assembly.GetAssembly(typeof(CardInfo_Base)); // 获取当前程序集
        CardInfo_Base newCardInfo_Base = (CardInfo_Base)assembly.CreateInstance(myType);

        newCardInfo_Base.CardID           = reader.ReadSInt32();
        newCardInfo_Base.BaseInfo         = BaseInfo.Deserialze(reader);
        newCardInfo_Base.UpgradeInfo      = UpgradeInfo.Deserialze(reader);
        newCardInfo_Base.LifeInfo         = LifeInfo.Deserialze(reader);
        newCardInfo_Base.BattleInfo       = BattleInfo.Deserialze(reader);
        newCardInfo_Base.MechInfo         = MechInfo.Deserialze(reader);
        newCardInfo_Base.EquipInfo        = EquipInfo.Deserialze(reader);
        newCardInfo_Base.WeaponInfo       = WeaponInfo.Deserialze(reader);
        newCardInfo_Base.ShieldInfo       = ShieldInfo.Deserialze(reader);
        newCardInfo_Base.PackInfo         = PackInfo.Deserialze(reader);
        newCardInfo_Base.MAInfo           = MAInfo.Deserialze(reader);
        newCardInfo_Base.SideEffectBundle = SideEffectBundle.Deserialize(reader);
        newCardInfo_Base.SideEffectBundle_BattleGroundAura = SideEffectBundle.Deserialize(reader);
        return(newCardInfo_Base);
    }