54 lines
1.0 KiB
C
54 lines
1.0 KiB
C
#ifndef CLIENT_H
|
|
#define CLIENT_H
|
|
#include <libssh/callbacks.h>
|
|
#include <unistd.h>
|
|
#include <signal.h>
|
|
#include <stdio.h>
|
|
#include <locale.h>
|
|
#include <time.h>
|
|
#include "../ssh_server_client.h"
|
|
#include <tart.h>
|
|
#include "../game_source/cammera.h"
|
|
#include "../game_source/world.h"
|
|
#include "../server_source/game_client.h"
|
|
|
|
typedef struct {
|
|
tart_window w;
|
|
int resize;
|
|
int newWidth;
|
|
int newHeight;
|
|
float xBounce;
|
|
float xFlip;
|
|
float yBounce;
|
|
float yFlip;
|
|
clock_t last_frame_time;
|
|
double frame_time_ms;
|
|
int color0;
|
|
int color1;
|
|
int color2;
|
|
ssh_channel channel;
|
|
cammera cam;
|
|
world world;
|
|
ssh_terminal_data term;
|
|
struct ssh_server_callbacks_struct server_cb;
|
|
struct ssh_channel_callbacks_struct channel_cb;
|
|
struct timespec last_time;
|
|
game_server server;
|
|
|
|
|
|
|
|
} client;
|
|
|
|
int client_auth(void* userdata);
|
|
|
|
int client_init(void*);
|
|
|
|
int client_update(ssh_terminal_data* td, void*);
|
|
|
|
int client_stop(void*);
|
|
|
|
int client_resize(int x, int y, void* userdata);
|
|
|
|
|
|
#endif
|