Subastra
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
world.h File Reference
#include "../defs.h"
#include "../list.h"
#include "../map.h"
#include "../vec2i.h"
#include "entity.h"
#include <string.h>
Include dependency graph for world.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  world_t
 
struct  entity_iter_t
 

Typedefs

typedef struct world_t world_t
 

Functions

static void world_init (world_t *world)
 
static void world_cleanup (world_t *world)
 
static entity_id_t world_reserve_entity_id (world_t *world)
 
static entity_id_t world_spawn_entity (world_t *world)
 
static entity_tworld_get_entity (world_t *world, entity_id_t id)
 
static sz world_count_entities (world_t *world)
 
static bool world_destroy_entity (world_t *world, entity_id_t id)
 
static entity_iter_t world_entity_iter (world_t *world)
 
static entity_iter_t world_entity_iter_masked (world_t *world, entity_kind_mask_t mask)
 
static bool entity_iter_next (entity_iter_t *it)
 
static entity_tworld_spawn_entity_construct (world_t *world, vec2i chunk_relative, vec2 chunk_local)
 
static entity_tworld_spawn_entity_camera (world_t *world, vec2i chunk_relative, vec2 chunk_local, float scale)
 

Typedef Documentation

◆ world_t

typedef struct world_t world_t

Function Documentation

◆ entity_iter_next()

static bool entity_iter_next ( entity_iter_t it)
static

◆ world_cleanup()

static void world_cleanup ( world_t world)
static

◆ world_count_entities()

static sz world_count_entities ( world_t world)
static

◆ world_destroy_entity()

static bool world_destroy_entity ( world_t world,
entity_id_t  id 
)
static

◆ world_entity_iter()

static entity_iter_t world_entity_iter ( world_t world)
static

◆ world_entity_iter_masked()

static entity_iter_t world_entity_iter_masked ( world_t world,
entity_kind_mask_t  mask 
)
static

◆ world_get_entity()

static entity_t * world_get_entity ( world_t world,
entity_id_t  id 
)
static

◆ world_init()

static void world_init ( world_t world)
static

◆ world_reserve_entity_id()

static entity_id_t world_reserve_entity_id ( world_t world)
static

◆ world_spawn_entity()

static entity_id_t world_spawn_entity ( world_t world)
static

◆ world_spawn_entity_camera()

static entity_t * world_spawn_entity_camera ( world_t world,
vec2i  chunk_relative,
vec2  chunk_local,
float  scale 
)
static

◆ world_spawn_entity_construct()

static entity_t * world_spawn_entity_construct ( world_t world,
vec2i  chunk_relative,
vec2  chunk_local 
)
static