NetHack Proxy Reference Manual |
---|
Glyph UseGlyph Use — Mapping glyphs to tiles or characters |
#include <nhproxy/nhproxy.h> struct nhproxy_tilemap_entry; struct nhproxy_tilemap; struct nhproxy_tilemap* nhproxy_new_tilemap (void); nhproxy_bool_t nhproxy_load_tilemap_line (struct nhproxy_tilemap *map, const char *line); struct nhproxy_tilemap* nhproxy_load_tilemap (int fh, void (*pulse) (), nhproxy_genericptr_t pulse_data); short* nhproxy_map_glyph2tile (struct nhproxy_cb_get_glyph_mapping_res *glyph_map, struct nhproxy_tilemap *tile_entry, void (*pulse) (), nhproxy_genericptr_t pulse_data); void nhproxy_free_tilemap (struct nhproxy_tilemap *map); long* nhproxy_map_glyph2char (struct nhproxy_cb_get_glyph_mapping_res *glyph_map);
struct nhproxy_tilemap_entry { unsigned int tile; unsigned int refs; unsigned int no_descs; char **descs; };
struct nhproxy_tilemap { unsigned int no_entries; /* One tile may have several entries */ unsigned int no_tiles; unsigned int max_entries; /* No. allocted entries */ struct nhproxy_tilemap_entry *entries; };
nhproxy_bool_t nhproxy_load_tilemap_line (struct nhproxy_tilemap *map, const char *line);
map : | |
line : | |
Returns : |
struct nhproxy_tilemap* nhproxy_load_tilemap (int fh, void (*pulse) (), nhproxy_genericptr_t pulse_data);
fh : | |
pulse : | |
pulse_data : | |
Returns : |
short* nhproxy_map_glyph2tile (struct nhproxy_cb_get_glyph_mapping_res *glyph_map, struct nhproxy_tilemap *tile_entry, void (*pulse) (), nhproxy_genericptr_t pulse_data);
glyph_map : | |
tile_entry : | |
pulse : | |
pulse_data : | |
Returns : |
long* nhproxy_map_glyph2char (struct nhproxy_cb_get_glyph_mapping_res *glyph_map);
glyph_map : | |
Returns : |
<< Message Digests | Remote Procedure Calls >> |