InputMovementSystem

System is responsible for movement of objects with CInput component. In this example every entity has same speed when using movement system.

Members

Functions

onBegin
bool onBegin()

onBegin gives opportunity to check keys once and call update on entities only when one key is pressed.

onUpdate
void onUpdate(EntitiesData data)

Update is called multiple times in one "manager.update()" call. Number of "onUpdate" calls is count of buffers which must be updated during pass. When multithreading is used, number of "onUpdate" calls can be greater due to fact that JobSystem can split buffers for better data packing.

Mixins

__anonymous
mixin ECS.System!32
Undocumented in source.

Structs

EntitiesData
struct EntitiesData
Undocumented in source.

Variables

move_vector
vec2 move_vector;
Undocumented in source.

Mixed In Members

From mixin ECS.System!32

__becs_jobs_count
uint __becs_jobs_count;
Undocumented in source.

Meta