Ejemplo n.º 1
0
    public static object Deserialize(BitStream stream, params object[] args)
    {
        PPIUpgradeList ppi = new PPIUpgradeList();

        ppi.Read(stream);
        return(ppi);
    }
Ejemplo n.º 2
0
    public void Read(BitStream stream)
    {
//        Name = stream.Read<string>();
        Params.Experience = stream.ReadInt32();
//        Params.Rank = stream.ReadByte();
        Params.Money = stream.ReadInt32();
        Params.Gold  = stream.ReadInt32();

        InventoryList = stream.Read <PPIInventoryList>();
        EquipList     = stream.Read <PPIEquipList>();
        Upgrades      = stream.Read <PPIUpgradeList>();

//        Statistic = stream.Read<PPIStatistic>();
//        Score = stream.Read<PPIRoundScore>();
    }
Ejemplo n.º 3
0
    public static void Serialize(BitStream stream, object value, params object[] args)
    {
        PPIUpgradeList ppi = (PPIUpgradeList)value;

        ppi.Write(stream);
    }