X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Ffiles.h;h=5433bfc15b16acb69580b2b73aa0a0822b18fe07;hb=HEAD;hp=1fa7db86695d01cf5b96bee5d9e9b8caef36e639;hpb=3d9acf8660ae1f0148c8578b8e9ca168795deec4;p=flatwaifu.git diff --git a/src/files.h b/src/files.h index 1fa7db8..972e1a7 100644 --- a/src/files.h +++ b/src/files.h @@ -27,19 +27,33 @@ extern char savname[SAVE_MAX][SAVE_MAXLEN]; extern char savok[SAVE_MAX]; extern int d_start, d_end; -void F_startup (void); void F_addwad (const char *fn); void F_initwads (void); -void F_allocres (void); -void F_loadres (int r, void *p); int F_findres (const char n[8]); int F_getresid (const char n[8]); void F_getresname (char n[8], int r); -int F_getsprid (const char n[4], int s, int d, char *dir); int F_getreslen (int r); -void F_nextmus (char *s); -void F_randmus (char *s); +// Get sprite resource id. +// Sprite name has following format: +// (nnnn)('A'+s)('0'+d)[('A'+s)('0'+d)] +// Letter means animation frame +// A for first, B for second... +// Number means direction +// 0 = front +// 1 = left +// 2 = right +// Optional part means that this file can be used for differnt frame/direction. +// Note that if found FRONT direction for this frame than it UNCONDITIONALLY used. +// Note that search performed between markers S_START and S_END in order as paced in wad. +// int n[4] -- sprite name +// int s -- sprite frame +// int d -- sprite direction +// char *dir -- out flag "alternative used" +int F_getsprid (const char n[4], int s, int d, char *dir); + +// void F_nextmus (char *s); +// void F_randmus (char *s); void F_loadmap (char n[8]);