31 lines
836 B
C++
31 lines
836 B
C++
#pragma once
|
|
#include <deerith/network/client.h>
|
|
#include <deerith/server/world.h>
|
|
|
|
namespace deerith
|
|
{
|
|
void init_world();
|
|
void shutdown_world();
|
|
|
|
void init_voxel_data();
|
|
|
|
// Client lifecycle
|
|
void client_connects(client_t *client);
|
|
void client_disconnects(client_t *client);
|
|
|
|
// Entity management
|
|
void send_create_entity_to_client(entity_t ent, client_t *client);
|
|
void send_create_entity_to_all_clients(entity_t ent);
|
|
void send_create_all_entities_to_client(client_t *client);
|
|
void send_delete_entity_to_all_clients(entity_t ent);
|
|
|
|
// Player updates
|
|
void update_players_characters();
|
|
|
|
// Data synchronization
|
|
void send_entity_data();
|
|
void send_voxel_data_to_client(client_t *client);
|
|
void send_clients_environment_data();
|
|
|
|
extern world_settings_t world_settings;
|
|
} |