fallout2-ce/src/message.h

31 lines
788 B
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef MESSAGE_H
#define MESSAGE_H
#define MESSAGE_LIST_ITEM_TEXT_FILTERED 0x01
#define MESSAGE_LIST_ITEM_FIELD_MAX_SIZE 1024
typedef struct MessageListItem {
int num;
int flags;
char* audio;
char* text;
} MessageListItem;
typedef struct MessageList {
int entries_num;
MessageListItem* entries;
} MessageList;
int badwordsInit();
void badwordsExit();
bool messageListInit(MessageList* msg);
bool messageListFree(MessageList* msg);
bool messageListLoad(MessageList* msg, const char* path);
bool messageListGetItem(MessageList* msg, MessageListItem* entry);
bool _message_make_path(char* dest, const char* path);
char* getmsg(MessageList* msg, MessageListItem* entry, int num);
bool messageListFilterBadwords(MessageList* messageList);
#endif /* MESSAGE_H */