public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(1, frameCount_);
      }
      for (int i = 0; i < bullets_.size(); i++) {
        output.writeMessage(3, bullets_.get(i));
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt32(4, screenX_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeInt32(5, screenY_);
      }
      for (int i = 0; i < units_.size(); i++) {
        output.writeMessage(6, units_.get(i));
      }
      for (int i = 0; i < createdUnits_.size(); i++) {
        output.writeMessage(7, createdUnits_.get(i));
      }
      for (int i = 0; i < destroyedUnits_.size(); i++) {
        output.writeMessage(8, destroyedUnits_.get(i));
      }
      for (int i = 0; i < morphedUnits_.size(); i++) {
        output.writeMessage(9, morphedUnits_.get(i));
      }
      for (int i = 0; i < shownUnits_.size(); i++) {
        output.writeMessage(10, shownUnits_.get(i));
      }
      for (int i = 0; i < hiddenUnits_.size(); i++) {
        output.writeMessage(11, hiddenUnits_.get(i));
      }
      for (int i = 0; i < renegadedUnits_.size(); i++) {
        output.writeMessage(12, renegadedUnits_.get(i));
      }
      for (int i = 0; i < sentText_.size(); i++) {
        output.writeBytes(13, sentText_.getByteString(i));
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeMessage(14, nukeDetect_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeBool(15, paused_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeBool(16, replay_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeBool(17, multiplayer_);
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        output.writeMessage(18, dynamicTerrainInfo_);
      }
      if (((bitField0_ & 0x00004000) == 0x00004000)) {
        output.writeMessage(19, terrainInfo_);
      }
      for (int i = 0; i < players_.size(); i++) {
        output.writeMessage(20, players_.get(i));
      }
      for (int i = 0; i < leftplayers_.size(); i++) {
        output.writeInt32(21, leftplayers_.get(i));
      }
      for (int i = 0; i < receivedTexts_.size(); i++) {
        output.writeMessage(22, receivedTexts_.get(i));
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        output.writeBool(23, gameover_);
      }
      for (int i = 0; i < selectedUnits_.size(); i++) {
        output.writeMessage(24, selectedUnits_.get(i));
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        output.writeBool(25, isWinner_);
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        output.writeMessage(26, screenPosition_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(27, mouseX_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeInt32(28, mouseY_);
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        output.writeInt32(29, latency_);
      }
      getUnknownFields().writeTo(output);
    }