Пример #1
0
        public Bonus(Bonuses bonuses, BonusInfo info, GenericReader reader)
        {
            this._Bonuses = bonuses;
            this._Info    = info;

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                this._Enabled       = reader.ReadBool();
                this._TimeStarted   = reader.ReadDateTime();
                this._ServicePeriod = reader.ReadTimeSpan();
                break;
            }
            }
        }