cubos::core::ecs::SystemAccess struct

Describes the types of data a system accesses.

Used to determine if systems conflict with each other.

Public functions

auto intersects(const SystemAccess& other) const -> bool
Checks if this access patterns intersect with the given ones.

Public variables

bool usesWorld
Whether the system accesses the world directly.
std::unordered_set<DataTypeId, DataTypeIdHash> dataTypes
Set of data types accessed by the system.

Function documentation

bool cubos::core::ecs::SystemAccess::intersects(const SystemAccess& other) const

Checks if this access patterns intersect with the given ones.

Parameters
other Other system access patterns.
Returns Whether they intersect.