eco2d/code/game/src/packets/pkt_send_keystate.h

34 lines
794 B
C
Raw Normal View History

2021-11-01 14:32:46 +00:00
#pragma once
#include "system.h"
#include "packet_utils.h"
2021-11-01 17:35:33 +00:00
#include "item_placement.h"
2021-11-01 14:32:46 +00:00
typedef struct {
float x;
float y;
float mx;
float my;
uint8_t use;
uint8_t sprint;
uint8_t ctrl;
uint8_t selected_item;
uint8_t drop;
uint8_t swap;
uint8_t swap_from;
uint8_t swap_to;
2021-11-01 17:35:33 +00:00
// TODO(zaklaus): build mode
uint8_t placement_num;
item_placement placements[BUILD_MAX_PLACEMENTS];
2021-11-01 14:32:46 +00:00
} pkt_send_keystate;
typedef pkt_send_keystate game_keystate_data;
size_t pkt_send_keystate_send(uint16_t view_id,
game_keystate_data *data);
size_t pkt_send_keystate_encode(pkt_send_keystate *table);
extern pkt_desc pkt_send_keystate_desc[];
PKT_HANDLER_PROC(pkt_send_keystate_handler);