Пример #1
0
        public virtual void Load(SerializationReader SR)
        {
            SR.ReadStartElement();
            int version = SR.ReadVersion();

            switch (version)
            {
            case 0:
            {
                X = SR.ReadInt();
                Y = SR.ReadInt();
                Z = SR.ReadInt();

                Climb  = SR.ReadBool();
                Cross  = SR.ReadBool();
                See    = SR.ReadBool();
                Attack = SR.ReadBool();

                Floors_Speed  = SR.ReadInt();
                Volumes_Speed = SR.ReadInt();

                Floors  = SR.ReadImagesJSON();
                Volumes = SR.ReadImagesJSON();

                break;
            }
            }
            SR.ReadEndElement();
        }