eco2d/code/common/game.h

15 lines
421 B
C
Raw Normal View History

2021-01-11 13:47:14 +00:00
#pragma once
2021-01-11 20:08:16 +00:00
#include "system.h"
2021-05-06 15:30:38 +00:00
#include "world_view.h"
2021-01-10 16:42:01 +00:00
2021-05-06 15:30:38 +00:00
void game_init(int8_t play_mode, uint32_t num_viewers, int32_t seed, uint16_t block_size, uint16_t chunk_size, uint16_t world_size);
2021-01-11 13:47:14 +00:00
void game_shutdown();
2021-01-11 20:08:16 +00:00
uint8_t game_is_running();
2021-05-04 19:45:51 +00:00
int8_t game_is_networked();
2021-01-10 16:42:01 +00:00
2021-01-11 13:47:14 +00:00
void game_input();
void game_update();
void game_render();
2021-05-06 15:30:38 +00:00
world_view *game_world_view_get_active(void);
world_view *game_world_view_get(uint16_t idx);