Started air fighter AI

This commit is contained in:
Pax1601
2022-12-21 19:18:20 +01:00
parent 3a46a6df21
commit de055c5a98
1766 changed files with 137925 additions and 501 deletions

View File

@@ -0,0 +1,12 @@
#pragma once
#include "framework.h"
void DllExport stackUpdate(lua_State* L, int& stackDepth, int initialStack = 0);
void DllExport stackPop(lua_State* L, int popDepth = 1);
void DllExport stackClean(lua_State* L, int stackDepth);
json::value DllExport luaTableToJSON(lua_State* L, int index);
#define STACK_UPDATE stackUpdate(L, stackDepth, initialStack);
#define STACK_INIT int stackDepth = 0; int initialStack = 0; stackUpdate(L, initialStack);
#define STACK_POP(X) stackPop(L, X); STACK_UPDATE;
#define STACK_CLEAN STACK_UPDATE; stackClean(L, stackDepth);