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

This commit is contained in:
Lion Kortlepel
2021-02-15 02:35:15 +01:00
committed by Anonymous275
parent e5e447c7af
commit 459814a6ec
21 changed files with 1538 additions and 15 deletions

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