예제 #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);
                _objectLocation.unmarshal(dis);
                _objectOrientation.unmarshal(dis);
                _objectAppearance = dis.readDouble();
                _requesterID.unmarshal(dis);
                _receivingID.unmarshal(dis);
                _pad2 = dis.readUint();
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        } // 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();
                _numberOfSegments = dis.readByte();
                _requesterID.unmarshal(dis);
                _receivingID.unmarshal(dis);
                _objectType.unmarshal(dis);
                for (int idx = 0; idx < _numberOfSegments; idx++)
                {
                    LinearSegmentParameter anX = new LinearSegmentParameter();
                    anX.unmarshal(dis);
                    _linearSegmentParameters.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method