示例#1
0
文件: Vessel.cs 项目: sopindm/bjeb
 protected override void doSerialize(Stream stream)
 {
     centerOfMass.serialize(stream);
     stream.write(mass);
     torque.serialize(stream);
     momentumOfInertia.serialize(stream);
     angularMomentum.serialize(stream);
 }
示例#2
0
文件: Vessel.cs 项目: sopindm/bjeb
        protected override void doSerialize(Stream stream)
        {
            body.serialize(stream);
            orbit.serialize(stream);

            _rootRotation.serialize(stream);
            _rotatingFrameVelocity.serialize(stream);
            gravity.serialize(stream);

            stream.write(altitude);
            stream.write(atmosphericDensity);
        }
示例#3
0
文件: Vector3.cs 项目: sopindm/bjeb
 protected override void doSerialize(Stream stream)
 {
     stream.write(x);
     stream.write(y);
     stream.write(z);
 }
示例#4
0
        protected override void doSerialize(Stream stream)
        {
            if(alignment != Alignment.Default)
                stream.write(alignment.ToString());
            else
                stream.writeNull();

            if(style != FontStyle.Default)
                stream.write(style.ToString());
            else
                stream.writeNull();

            if(normal != null)
                normal.serialize(stream);
            else
                stream.writeNull();

            if(onNormal != null)
                onNormal.serialize(stream);
            else
                stream.writeNull();

            if(hover != null)
                hover.serialize(stream);
            else
                stream.writeNull();

            if(onHover != null)
                onHover.serialize(stream);
            else
                stream.writeNull();

            if(focused != null)
                focused.serialize(stream);
            else
                stream.writeNull();

            if(onFocused != null)
                onFocused.serialize(stream);
            else
                stream.writeNull();

            if(active != null)
                active.serialize(stream);
            else
                stream.writeNull();

            if(onActive != null)
                onActive.serialize(stream);
            else
                stream.writeNull();
        }
示例#5
0
文件: Orbit.cs 项目: sopindm/bjeb
 protected override void doSerialize(Stream stream)
 {
     stream.write(trueAnomaly);
     stream.write(eccentricity);
     stream.write(parameter);
     stream.write(inclination);
     stream.write(LAN);
     stream.write(argumentOfPeriapsis);
     stream.write(timeAtPeriapsis);
     mainBody.serialize(stream);
 }