2021-05-06 15:30:38 +00:00
|
|
|
#pragma once
|
|
|
|
#include "system.h"
|
|
|
|
#include "entity_view.h"
|
|
|
|
#include "world/world.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint64_t owner_id;
|
|
|
|
entity_view_tbl entities;
|
|
|
|
librg_world *tracker;
|
2021-05-06 18:24:01 +00:00
|
|
|
|
|
|
|
uint32_t size;
|
|
|
|
uint32_t width;
|
|
|
|
uint32_t height;
|
|
|
|
uint16_t block_size;
|
|
|
|
uint16_t chunk_size;
|
|
|
|
uint16_t world_size;
|
2021-05-06 15:30:38 +00:00
|
|
|
} world_view;
|
|
|
|
|
|
|
|
world_view world_view_create(void);
|
|
|
|
void world_view_init(world_view *view, uint64_t ent_id, uint16_t block_size, uint16_t chunk_size, uint16_t world_size);
|
|
|
|
void world_view_destroy(world_view *view);
|