// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

#include "wpi/nt/NTSendable.hpp"

#include "wpi/nt/NTSendableBuilder.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"

using namespace wpi::nt;

void NTSendable::InitSendable(wpi::util::SendableBuilder& builder) {
  if (builder.GetBackendKind() == wpi::util::SendableBuilder::kNetworkTables) {
    InitSendable(static_cast<NTSendableBuilder&>(builder));
  }
}
