add lua engine, lua file, server, client, vehicle data, other stuff

This commit is contained in:
Lion Kortlepel authored and Anonymous275 committed 2021-03-18 23:44:14 +02:00
1 parent e5e447c7af
commit 459814a6ec
21 files changed
+1537 -14

No files matched your search

+19 -8
View File
@@ -1,17 +1,28 @@
#pragma once
// Unix - Win32 compatibility stuff
// ======================= UNIX ========================
#ifdef __unix
#include <arpa/inet.h>
#include <termios.h>
#include <unistd.h>
using SOCKET = int;
using DWORD = unsigned long;
using PDWORD = unsigned long*;
using LPDWORD = unsigned long*;
char _getch(void);
#endif // unix
// ======================= WIN32 =======================
#ifdef WIN32
#include <conio.h>
#include <windows.h>
#else // *nix
typedef unsigned long DWORD, *PDWORD, *LPDWORD;
#include <termios.h>
#include <unistd.h>
#endif // WIN32
#ifndef WIN32
// ======================= OTHER =======================
char _getch(void);
#if !defined(WIN32) && !defined(__unix)
#error "OS not supported"
#endif
#endif // !WIN32