17 lines
467 B
C++
17 lines
467 B
C++
#include <deerith/server/world/world_internals.h>
|
|
#include <deerith/network/packets_voxel.h>
|
|
#include <deerith/network/router.h>
|
|
|
|
namespace deerith
|
|
{
|
|
|
|
}
|
|
|
|
void deerith::send_voxel_data_to_client(client_t *client)
|
|
{
|
|
packet_voxel_data_definition_t voxel_data_definition;
|
|
voxel_data_definition.voxel_materials = get_voxel_material_vector();
|
|
voxel_data_definition.voxel_types = get_voxel_type_vector();
|
|
|
|
router_send_packet(voxel_data_definition, client);
|
|
} |