⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 writetem.h

📁 Npc Generator
💻 H
字号:
#ifndef __WRITETEM_H__#define __WRITETEM_H__/* ---------------------------------------------------------------------- * * Dependencies * ---------------------------------------------------------------------- */#include <stdio.h>     /* needed for the FILE datatype */#include "wtstream.h"/* ---------------------------------------------------------------------- * * Constant definitions * ---------------------------------------------------------------------- *//* ---------------------------------------------------------------------- * * Macro definitions * ---------------------------------------------------------------------- *//* ---------------------------------------------------------------------- * * Typedefs * ---------------------------------------------------------------------- */typedef struct __wttag_t__       wtTAG_t;typedef struct __wtdelegate_t__  wtDELEGATE_t;typedef struct __wtif_t__        wtIF_t;typedef void                    *wtGENERIC_t;typedef int (*wtTAGHANDLER_t)( wtSTREAM_t *stream, wtTAG_t** tags, 		                           wtGENERIC_t data, char* other );/* ---------------------------------------------------------------------- * * Structures * ---------------------------------------------------------------------- */struct __wttag_t__ {  char           *tag;  wtGENERIC_t     data;  wtTAGHANDLER_t  handler;  wtGENERIC_t     userData;};struct __wtdelegate_t__ {  wtTAGHANDLER_t handler;  wtGENERIC_t    userData;};struct __wtif_t__ {  char* value;  int   neg;  char* text;};/* ---------------------------------------------------------------------- * * Public methods * ---------------------------------------------------------------------- */#ifdef __cplusplusextern "C" {#endifvoid wtFreeTagList( wtTAG_t **tags );void wtWriteTemplateBuf( wtSTREAM_t  *stream,		                     char        *templateBuffer,												 wtTAG_t    **tags );int  wtWriteTemplate( wtSTREAM_t  *stream,                      char        *templateFile,                      wtTAG_t    **tags );int  wtWriteTemplateToFile( FILE     *f,                             char     *templateFile,                            wtTAG_t **tags );int  wtWriteTemplateToBuffer( char    **buffer,                              char     *templateFile,                              wtTAG_t **tags );wtTAG_t *wtTagReplace( char* tag, char* data );wtTAG_t *wtTagReplaceI( char* tag, int data );wtTAG_t *wtTagDelegate( char* tag, wtDELEGATE_t *handler );wtTAG_t *wtTagInclude( char* tag, char* file );int wtConditionalHandler( wtSTREAM_t *stream, wtTAG_t** tags, 		                      wtGENERIC_t data, char* other );int wtConditionalDisplayHandler( wtSTREAM_t *stream, wtTAG_t** tags, 		                             wtGENERIC_t data, char* other );#ifdef __cplusplus}#endif#endif /* __WRITETEM_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -