Exemple #1
0
        public static WingData readWing(this IPersistableReader r)
        {
            var wd = new WingData();

            wd.uid       = r.ReadLong();
            wd.name      = r.ReadString();
            wd.wingClass = (Wing.WingClass)r.ReadInt();
            wd.energy    = r.ReadFloat();
            wd.ply       = r.readPersonality();
            wd.armed     = r.ReadBool();
            return(wd);
        }