mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-12-23 07:47:22 +01:00
26 lines
904 B
C++
26 lines
904 B
C++
#pragma once
|
|
|
|
#include "Jetpack.h"
|
|
|
|
namespace ECS
|
|
{
|
|
#ifdef ENABLE_DEBUG
|
|
template<>
|
|
inline void EntityComponentEditor<GameObj::Jetpack>(GameObj::Jetpack& component)
|
|
{
|
|
if (ImGui::TreeNode("Jetpack"))
|
|
{
|
|
EntityPropertyEditor("ThrustMaxHeight", component.ThrustParameters.ThrustMaxHeight);
|
|
EntityPropertyEditor("ThrustPower", component.ThrustParameters.ThrustPower);
|
|
EntityPropertyEditor("ThrustLowPct", component.ThrustParameters.ThrustLowPct);
|
|
EntityPropertyEditor("ThrustHighPct", component.ThrustParameters.ThrustHighPct);
|
|
EntityPropertyEditor("ThrustPowerMax", component.ThrustParameters.ThrustPowerMax);
|
|
EntityPropertyEditor("ThrustFwdSlowMax", component.ThrustParameters.ThrustDrowning);
|
|
EntityPropertyEditor("ThrustDrowning", component.ThrustParameters.ThrustFwdSlowMax);
|
|
EntityPropertyEditor("ThrustMode", component.ThrustControl);
|
|
|
|
ImGui::TreePop();
|
|
}
|
|
}
|
|
#endif
|
|
} |