aboutsummaryrefslogtreecommitdiff
path: root/src/client/fscord.h
blob: f911a57c87c51df6f496c82703196eba144fab6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef FSCORD_H
#define FSCORD_H

#include <os/os.h>
#include <basic/time.h>
#include <client/chat.h>
#include <client/sound.h>
#include <client/font.h>
#include <client/login.h>
#include <client/session.h>
#include <client/server_connection.h>

typedef struct Fscord {
    Arena perma_arena;
    Arena frame_arena;

    OSWindow *window;
    OSOffscreenBuffer *offscreen_buffer;
    OSSoundPlayer *sound_player;
    OSSoundBuffer *sound_buffer;

    Font font;

    Sound *sound_user_connected;
    Sound *sound_user_disconnected;
    PlaySound ps_user_connected;
    PlaySound ps_user_disconnected;

    b32 is_logged_in;
    Login *login;
    Session *session;
} Fscord;

#endif // FSCORD_H