master uint/magnolia / include / client / player.h
 1#ifndef PLAYER_H
 2#define PLAYER_H
 3
 4#include "types.h"
 5#include "client/camera.h"
 6#include "net/mc_proto.h"
 7
 8typedef struct {
 9	double x;
10	double y;
11	double z;
12
13	float yaw;
14	float pitch;
15
16	i8 positioned;
17} Player;
18
19/* handle position packet from server */
20void player_server_send_position(Player* player, MGCamera* cam, MCClient* client);
21
22/* send player position and rotations to server */
23void player_server_handle_position(Player* player, MGCamera* cam, const MCPacket* packet);
24
25#endif /* PLAYER_H */