- started with a ScriptUtil class which will allow moving function implementations for ACS and FraggleScript to zscript.txt
So far 3 functions for testing implemented.
This commit is contained in:
parent
ac77ca6474
commit
6fc63b9b78
10 changed files with 280 additions and 130 deletions
27
src/scriptutil.h
Normal file
27
src/scriptutil.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "name.h"
|
||||
|
||||
|
||||
class ScriptUtil
|
||||
{
|
||||
static void BuildParameters(va_list ap);
|
||||
static void RunFunction(FName function, unsigned paramstart, VMReturn &returns);
|
||||
|
||||
public:
|
||||
enum
|
||||
{
|
||||
End,
|
||||
Int,
|
||||
Pointer,
|
||||
Float,
|
||||
String,
|
||||
Class,
|
||||
ACSString, // convenience helpers taking an ACS string index instead of a string
|
||||
ACSClass,
|
||||
};
|
||||
|
||||
static int Exec(FName functionname, ...);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue