fallout2-ce/src/message.h

37 lines
907 B
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef MESSAGE_H
#define MESSAGE_H
2022-09-23 05:43:44 -07:00
namespace fallout {
2022-05-19 01:51:26 -07:00
#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);
void messageListFilterGenderWords(MessageList* messageList, int gender);
2022-09-23 05:43:44 -07:00
} // namespace fallout
2022-05-19 01:51:26 -07:00
#endif /* MESSAGE_H */