Skip to content

Instantly share code, notes, and snippets.

@Romain-P
Created June 22, 2018 13:15
Show Gist options
  • Select an option

  • Save Romain-P/6375b73a1d466bb433d55d35a89fba2d to your computer and use it in GitHub Desktop.

Select an option

Save Romain-P/6375b73a1d466bb433d55d35a89fba2d to your computer and use it in GitHub Desktop.
struct gui_handlers_s {
void (*on_connect)(session_t id);
void (*on_disconnect)(session_t id);
void (*on_welcome)(session_t id, packet_welcome_t *);
void (*on_map_size_reply)(session_t id, packet_msz_t *);
void (*on_tile_content_reply)(session_t id, packet_bct_tile_t *);
void (*on_team_name_reply)(session_t id, packet_tna_t *);
void (*on_player_position_update)(session_t id, packet_ppo_t *);
void (*on_player_level_update)(session_t id, packet_plv_t *);
void (*on_player_inventory_update)(session_t id, packet_pin_t *);
void (*on_player_connected)(session_t id, packet_pnw_t *);
void (*on_player_expulsed)(session_t id, packet_pex_t *);
void (*on_broadcast)(session_t id, packet_pbc_t *);
void (*on_server_broadcast)(session_t id, packet_smg_t *);
void (*on_player_cast_start)(session_t id, packet_pic_t *);
void (*on_player_cast_end)(session_t id, packet_pie_t *);
void (*on_player_lay_self)(session_t id, packet_pfk_t *);
void (*on_player_lay)(session_t id, packet_enw_t *);
void (*on_player_drop)(session_t id, packet_pdr_t *);
void (*on_player_collect)(session_t id, packet_pgt_t *);
void (*on_player_death)(session_t id, packet_pdi_t *);
void (*on_egg_hatching)(session_t id, packet_eht_t *);
void (*on_egg_hatching_death)(session_t id, packet_edi_t *);
void (*on_timeunit_reply)(session_t id, packet_sgt_t *);
void (*on_timeunit_modif_reply)(session_t id, packet_sst_t *);
void (*on_game_end)(session_t id, packet_seg_t *);
void (*on_unknown_command)(session_t id, packet_suc_t *);
void (*on_command_param_wrong)(session_t id, packet_sbp_t *);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment