Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::async::details Namespace Reference

Functions

static constexpr TaskType ConvertTaskType (tf::TaskType type) noexcept
 Converts Taskflow task type to Helios task type.
 

Function Documentation

◆ ConvertTaskType()

static constexpr TaskType helios::async::details::ConvertTaskType ( tf::TaskType  type)
staticconstexprnoexcept

Converts Taskflow task type to Helios task type.

Parameters
typeTaskflow task type
Returns
Corresponding Helios task type

Definition at line 95 of file common.hpp.

95 {
96 switch (type) {
97 case tf::TaskType::STATIC:
98 return TaskType::Static;
99 case tf::TaskType::SUBFLOW:
100 return TaskType::SubTask;
101 case tf::TaskType::ASYNC:
102 return TaskType::Async;
103 default:
104 return TaskType::Static; // Fallback to Static if unknown
105 }
106}