Example #1
0
        protected override void doSerialize(Stream stream)
        {
            stream.write(inverseRotation);
            stream.write(fixedDeltaTime);
            stream.write(time);

            stream.write(celestialBodies.Count);

            foreach(var body in celestialBodies)
                body.serialize(stream);
        }
Example #2
0
        protected override void doSerialize(Stream stream)
        {
            stream.write(guiUpdateRate);
            stream.write(stateUpdateRate);

            stream.write(showGui);
            stream.write(updateGui);
            stream.write(updateWindows);
            stream.write(updateState);
            stream.write(control);
        }
Example #3
0
        protected override void doSerialize(Stream stream)
        {
            stream.write(throttle);

            stream.write(yaw);
            stream.write(pitch);
            stream.write(roll);

            stream.write(dx);
            stream.write(dy);
            stream.write(dz);
        }
Example #4
0
 protected override void doSerialize(Stream stream)
 {
     stream.write(width);
     stream.write(height);
 }
Example #5
0
        protected override void doSerialize(Stream stream)
        {
            base.doSerialize(stream);
            stream.write(isVertical);

            _views.serialize(stream);
        }
Example #6
0
        public void serializeState(Stream stream)
        {
            stream.write(_childs.Count);

            foreach(View view in _childs)
                view.serializeState(stream);
        }
Example #7
0
        protected override void doSerialize(Stream stream)
        {
            base.doSerialize(stream);

            stream.write(text);
            stream.write(maxLength);
        }
Example #8
0
 protected override void doSerializeState(Stream stream)
 {
     if(_updated)
     {
         _updated = false;
         stream.write(toggled);
     }
     else
         stream.writeNull();
 }
Example #9
0
 protected override void doSerializeState(Stream stream)
 {
     _state.serialize(stream);
     stream.write(_clicked);
 }
Example #10
0
 private void serializeState(Stream stream, ButtonState state)
 {
     if(state == ButtonState.NONE)
         stream.writeNull();
     else
         stream.write(stateString(state));
 }
Example #11
0
 protected override void doSerializeState(Stream stream)
 {
     if(_isUpdated)
     {
         _isUpdated = false;
         stream.write(value);
     }
     else
         stream.writeNull();
 }
Example #12
0
        protected override void doSerialize(Stream stream)
        {
            base.doSerialize(stream);

            stream.write(minValue);
            stream.write(maxValue);
            stream.write(value);
            stream.write(isHorizontal);

            serializeStyle(thumbStyle, stream);
        }
Example #13
0
 protected override void doSerialize(Stream stream)
 {
     stream.write(a);
     stream.write(r);
     stream.write(g);
     stream.write(b);
 }
Example #14
0
 /// <summary>
 /// Writes content to a file 
 /// (mode can be 'w' for write, 'a' for append or 'wb' for binary write).
 /// </summary>
 /// <param name="path"></param>
 /// <param name="content"></param>
 /// <param name="mode"></param>
 public void write(string path, string content, string mode)
 {
     Stream stream = new Stream(path, mode);
     stream.write(content);
     stream.close();
 }
Example #15
0
        protected override void doSerialize(Stream stream)
        {
            base.doSerialize(stream);

            stream.write(id);
            stream.write(title);

            area.serialize(stream);

            stream.write(draggable);

            _views.serialize(stream);
        }
Example #16
0
 protected override void doSerialize(Stream stream)
 {
     base.doSerialize(stream);
     stream.write(_size);
 }
Example #17
0
 protected static void serializeStyle(Style style, Stream stream)
 {
     if(style != Style.Default)
         stream.write(style.ToString());
     else
         stream.writeNull();
 }
Example #18
0
        protected override void doSerialize(Stream stream)
        {
            base.doSerialize(stream);

            stream.write(text);
            stream.write(toggled);
        }
Example #19
0
        protected override void doSerialize(Stream stream)
        {
            stream.write(name);

            position.serialize(stream);
            rotation.serialize(stream);

            stream.write(radius);

            stream.write(mass);
            stream.write(gravParameter);
        }