basin/include/basin/globals.h

31 lines
585 B
C
Raw Normal View History

2016-06-23 22:42:49 +00:00
/*
* globals.h
*
* Created on: Nov 19, 2015
* Author: root
*/
#ifndef GLOBALS_H_
#define GLOBALS_H_
#define MC_PROTOCOL_VERSION_MIN 210
2016-12-30 03:18:53 +00:00
#define MC_PROTOCOL_VERSION_MAX 316
2016-12-25 04:59:02 +00:00
#define CHUNK_VIEW_DISTANCE 10
2016-06-24 04:41:14 +00:00
#include <avuna/log.h>
#include <avuna/hash.h>
#include <stdlib.h>
2017-01-03 19:18:52 +00:00
#include <pthread.h>
size_t tick_counter;
2016-06-23 22:42:49 +00:00
struct config* cfg;
struct logsess* delog;
2017-01-01 09:39:37 +00:00
struct hashmap* players;
struct collection* defunctPlayers;
struct collection* defunctChunks;
2017-01-03 19:18:52 +00:00
struct collection* playersToLoad;
pthread_mutex_t glob_tick_mut;
pthread_cond_t glob_tick_cond;
2016-06-23 22:42:49 +00:00
#endif /* GLOBALS_H_ */