public override void Serialize(HlaEncodingWriter writer, object moveDirection)
 {
     try
     {
         MoveDirectionXrtiSerializer.Serialize(writer, (Actor.MoveDirection)moveDirection);
     }
     catch (IOException ioe)
     {
         throw new RTIinternalError(ioe.ToString());
     }
 }
 public override object Deserialize(HlaEncodingReader reader, ref object dummy)
 {
     Actor.MoveDirection decodedValue;
     try
     {
         decodedValue = MoveDirectionXrtiSerializer.Deserialize(reader);
         return(decodedValue);
     }
     catch (IOException ioe)
     {
         throw new FederateInternalError(ioe.ToString());
     }
 }