| 268 | #if USE_EDITOR |
| 269 | |
| 270 | String BehaviorTreeDelayNode::GetDebugInfo(const BehaviorUpdateContext& context) const |
| 271 | { |
| 272 | if (context.Memory) |
| 273 | { |
| 274 | const auto state = GetState<State>(context.Memory); |
| 275 | return String::Format(TEXT("Time Left: {}s"), Utilities::RoundTo2DecimalPlaces(state->TimeLeft)); |
| 276 | } |
| 277 | |
| 278 | String delay; |
| 279 | if (WaitTimeSelector.Path.HasChars()) |
| 280 | delay = String(WaitTimeSelector.Path); |
| 281 | else |
| 282 | delay = StringUtils::ToString(WaitTime); |
| 283 | if (RandomDeviation > 0.0f) |
| 284 | delay += String::Format(TEXT("+/-{}"), RandomDeviation); |
| 285 | return String::Format(TEXT("Delay: {}s"), delay); |
| 286 | } |
| 287 | |
| 288 | #endif |
| 289 |
no test coverage detected