mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
implement respawning
This commit is contained in:
@@ -40,6 +40,8 @@ extern uint8_t recv_buffer[256];
|
||||
extern uint32_t world_seed;
|
||||
extern uint32_t rng_seed;
|
||||
|
||||
extern uint64_t world_time;
|
||||
|
||||
extern uint16_t client_count;
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
@@ -13,6 +13,7 @@ int cs_setPlayerRotation (int client_fd, float *yaw, float *pitch, uint8_t *on_g
|
||||
int cs_setHeldItem (int client_fd);
|
||||
int cs_clickContainer (int client_fd);
|
||||
int cs_closeContainer (int client_fd);
|
||||
int cs_clientStatus (int client_fd);
|
||||
|
||||
int sc_loginSuccess (int client_fd, uint8_t *uuid, char *name);
|
||||
int sc_knownPacks (int client_fd);
|
||||
@@ -39,6 +40,7 @@ int sc_setHeadRotation (int client_fd, int id, uint8_t yaw);
|
||||
int sc_updateEntityRotation (int client_fd, int id, uint8_t yaw, uint8_t pitch);
|
||||
int sc_damageEvent (int client_fd, int id, int type);
|
||||
int sc_setHealth (int client_fd, uint8_t health, uint8_t food);
|
||||
int sc_registries(int client_fd);
|
||||
int sc_respawn (int client_fd);
|
||||
int sc_registries (int client_fd);
|
||||
|
||||
#endif
|
||||
|
@@ -42,10 +42,12 @@ void setClientState (int client_fd, int new_state);
|
||||
int getClientState (int client_fd);
|
||||
int getClientIndex (int client_fd);
|
||||
|
||||
void resetPlayerData (PlayerData *player);
|
||||
int reservePlayerData (int client_fd, uint8_t *uuid, char* name);
|
||||
int getPlayerData (int client_fd, PlayerData **output);
|
||||
void clearPlayerFD (int client_fd);
|
||||
int givePlayerItem (PlayerData *player, uint16_t item, uint8_t count);
|
||||
void spawnPlayer (PlayerData *player);
|
||||
|
||||
uint8_t serverSlotToClientSlot (int window_id, uint8_t slot);
|
||||
uint8_t clientSlotToServerSlot (int window_id, uint8_t slot);
|
||||
|
Reference in New Issue
Block a user