StreamGame/source/engine/net_sync.h
2025-05-29 19:00:39 +02:00

21 lines
339 B
C

#ifndef ENGINE_NET_H
# define ENGINE_NET_H
#pragma once
#include "vector_math.h"
#define MAX_REMOTE_PLAYERS 16
typedef struct {
uint32_t id;
Vector3 position;
Vector3 velocity;
float yaw;
} PlayerNetState;
void send_player_state(PlayerNetState *state);
void receive_remote_players(PlayerNetState *players, int *count);
#endif