Function ecs_table_swap_rows

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_table_swap_rows(ecs_world_t *world, ecs_table_t *table, int32_t row_1, int32_t row_2)

Description

Swaps two elements inside the table. This is useful for implementing custom table sorting algorithms.

Parameters

world - The world

table - The table to swap elements in

row_1 - Table element to swap with row_2

row_2 - Table element to swap with row_1

Source

Line 4690 in include/flecs.h.