Epok Engine

EPOK RUNTIME

epok::world2d::tile_cell_at

Variable

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Variable

The tile map cell behind a collision index, installed by the service when tile maps collide: false when `index` is an ordinary collider.

Belongs to
epok::world2d
Header
world2d_components.hpp

Declaration

Declaration
bool (*tile_cell_at)(int, int32_t &, int32_t &)

The tile map cell behind a collision index, installed by the service when tile maps collide: false when `index` is an ordinary collider.

Type
bool (*)(int, int32_t &, int32_t &)
Storage
Namespace scope

Example sketch

C++ example
#include "world2d_components.hpp"

auto callback = epok::world2d::tile_cell_at;

// Assign a function with the exact declared signature:
// epok::world2d::tile_cell_at = &myCallback;

Trade-offs and warnings

Consult the linked header for the meaning, lifetime and permitted use of this declaration.

Declared in runtime/world2d_components.hpp:85