Function null

Summary

#include <include/flecs/addons/cpp/entity.hpp>

(1) static flecs::entity null(const flecs::world_t *world)

(2) static flecs::entity null()

Function overload

Synopsis

#include <include/flecs/addons/cpp/entity.hpp>

static flecs::entity null(const flecs::world_t *world)

Description

Entity id 0. This function is useful when the API must provide an entity that belongs to a world, but the entity id is 0.

Parameters

world - The world.

Source

Lines 233-238 in include/flecs/addons/cpp/entity.hpp.

static
flecs::entity null(const flecs::world_t *world) {
    flecs::entity result;
    result.m_world = const_cast<flecs::world_t*>(world);
    return result;
}

Synopsis

#include <include/flecs/addons/cpp/entity.hpp>

static flecs::entity null()

Description

No description yet.

Source

Lines 240-243 in include/flecs/addons/cpp/entity.hpp.

static
flecs::entity null() {
    return flecs::entity();
}