Exemplo n.º 1
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _objectID.unmarshal(dis);
                _referencedObjectID.unmarshal(dis);
                _updateNumber  = dis.readUshort();
                _forceID       = dis.readByte();
                _modifications = dis.readByte();
                _objectType.unmarshal(dis);
                _objectAppearance.unmarshal(dis);
                _numberOfPoints = dis.readUshort();
                _requesterID.unmarshal(dis);
                _receivingID.unmarshal(dis);
                for (int idx = 0; idx < _numberOfPoints; idx++)
                {
                    Vector3Double anX = new Vector3Double();
                    anX.unmarshal(dis);
                    _objectLocation.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
Exemplo n.º 2
0
        } // end of marshal method

        public void unmarshal(DataInputStream dis)
        {
            try
            {
                _segmentNumber = dis.readByte();
                _segmentAppearance.unmarshal(dis);
                _location.unmarshal(dis);
                _orientation.unmarshal(dis);
                _segmentLength = dis.readUshort();
                _segmentWidth  = dis.readUshort();
                _segmentHeight = dis.readUshort();
                _segmentDepth  = dis.readUshort();
                _pad1          = dis.readUint();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method