X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Ffiles.h;h=972e1a74f6a26de947353be3fc6e2b3b06178b15;hb=30a1e51f4672eed675ef310d67adabc36e3146fc;hp=5603209689f209514f8f61d06dc1f7454fffd977;hpb=10639e95892132d8dd7e3ef1dce6bdda80424a1c;p=flatwaifu.git diff --git a/src/files.h b/src/files.h index 5603209..972e1a7 100644 --- a/src/files.h +++ b/src/files.h @@ -32,9 +32,26 @@ void F_initwads (void); 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); +// 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);