1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 02:56:46 +02:00

Add game module (WIP)

This commit is contained in:
jfreegman
2020-12-11 01:46:01 -05:00
parent a2f0f298aa
commit b9ea733470
18 changed files with 4273 additions and 11 deletions

View File

@ -55,6 +55,8 @@ typedef enum {
BLACK,
BLUE_BLACK,
BLACK_WHITE,
WHITE_BLACK,
WHITE_BLUE,
BAR_TEXT,
STATUS_ONLINE,
BAR_ACCENT,
@ -78,6 +80,7 @@ typedef enum {
WINDOW_TYPE_CHAT,
WINDOW_TYPE_CONFERENCE,
WINDOW_TYPE_FRIEND_LIST,
WINDOW_TYPE_GAME,
} WINDOW_TYPE;
/* Fixes text color problem on some terminals.
@ -129,6 +132,7 @@ typedef struct StatusBar StatusBar;
typedef struct PromptBuf PromptBuf;
typedef struct ChatContext ChatContext;
typedef struct Help Help;
typedef struct GameData GameData;
struct ToxWindow {
/* ncurses */
@ -193,6 +197,8 @@ struct ToxWindow {
StatusBar *stb;
Help *help;
GameData *game;
WINDOW *window;
WINDOW *window_bar;
};