Skip to content

Commit

Permalink
clean up AirLibWrapper
Browse files Browse the repository at this point in the history
remove unnecessary subwindow helper functions
  • Loading branch information
zimmy87 committed Jan 12, 2022
1 parent a22f947 commit d90a5a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
21 changes: 0 additions & 21 deletions Unity/AirLibWrapper/AirsimWrapper/Source/SimHUD/SimHUD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,6 @@ void SimHUD::EndPlay()
}
}

SimHUD::ImageType SimHUD::getSubwindowCameraType(int window_index)
{
//TODO: index check
return getSubWindowSettings().at(window_index).image_type;
}

void SimHUD::setSubwindowCameraType(int window_index, ImageType type)
{
getSubWindowSettings().at(window_index).image_type = type;
}

bool SimHUD::getSubwindowVisible(int window_index)
{
return getSubWindowSettings().at(window_index).visible;
}

void SimHUD::setSubwindowVisible(int window_index, bool is_visible)
{
getSubWindowSettings().at(window_index).visible = is_visible;
}

void SimHUD::initializeSettings()
{
std::string settingsText;
Expand Down
4 changes: 0 additions & 4 deletions Unity/AirLibWrapper/AirsimWrapper/Source/SimHUD/SimHUD.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ class SimHUD
public:
SimHUD(std::string sime_mode_name, int port_number);
SimModeBase* GetSimMode();
ImageType getSubwindowCameraType(int window_index);
void setSubwindowCameraType(int window_index, ImageType type);
bool getSubwindowVisible(int window_index);
void setSubwindowVisible(int window_index, bool is_visible);
virtual void BeginPlay();
virtual void EndPlay();
virtual void Tick(float DeltaSeconds);
Expand Down

0 comments on commit d90a5a1

Please sign in to comment.