Skip to content

Commit 87a814a

Browse files
committed
feat: add new context fn for stream toggle
1 parent 9339750 commit 87a814a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ecsact/runtime/dynamic.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,19 @@ ECSACT_DYNAMIC_API_FN(bool, ecsact_system_execution_context_has)
135135
...
136136
);
137137

138+
/**
139+
* Enable or disable streaming data for the given component.
140+
* @param ... if the component has indexed fields then those fields must be
141+
* supplied to the variadic arguments in declaration order.
142+
*/
143+
ECSACT_DYNAMIC_API_FN(void, ecsact_system_execution_context_stream_toggle)
144+
( //
145+
struct ecsact_system_execution_context* context,
146+
ecsact_component_id component_id,
147+
bool streaming_enabled,
148+
...
149+
);
150+
138151
/**
139152
* Generate a new entity with specified components.
140153
*

0 commit comments

Comments
 (0)