2016-06-23 22:42:49 +00:00
|
|
|
/*
|
|
|
|
* globals.h
|
|
|
|
*
|
|
|
|
* Created on: Nov 19, 2015
|
|
|
|
* Author: root
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GLOBALS_H_
|
|
|
|
#define GLOBALS_H_
|
|
|
|
|
2016-12-30 08:12:04 +00:00
|
|
|
#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
|
|
|
|
2019-04-14 20:45:32 +00:00
|
|
|
#include <avuna/log.h>
|
|
|
|
#include <avuna/hash.h>
|
2016-12-24 23:09:16 +00:00
|
|
|
#include <stdlib.h>
|
2017-01-03 19:18:52 +00:00
|
|
|
#include <pthread.h>
|
2016-12-24 23:09:16 +00:00
|
|
|
|
|
|
|
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-12-24 23:09:16 +00:00
|
|
|
|
2016-06-23 22:42:49 +00:00
|
|
|
#endif /* GLOBALS_H_ */
|