mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 01:52:31 +00:00
Put the extra animation event in the struct def, also adding Jan's VFS script wrapper.
This was SVN commit r2218.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "scripting/JSInterface_Selection.h"
|
||||
#include "scripting/JSInterface_Camera.h"
|
||||
#include "scripting/JSInterface_Console.h"
|
||||
#include "scripting/JSInterface_VFS.h"
|
||||
#include "scripting/JSConversions.h"
|
||||
|
||||
#ifndef NO_GUI
|
||||
@@ -72,6 +73,13 @@ JSFunctionSpec ScriptFunctionTable[] =
|
||||
{"getFPS", getFPS, 0, 0, 0 },
|
||||
{"buildTime", buildTime, 0, 0, 0 },
|
||||
|
||||
// VFS:
|
||||
{"buildFileList", JSI_VFS::BuildFileList, 1, 0, 0 },
|
||||
{"getFileMTime", JSI_VFS::GetFileMTime, 1, 0, 0 },
|
||||
{"getFileSize", JSI_VFS::GetFileSize, 1, 0, 0 },
|
||||
{"readFile", JSI_VFS::ReadFile, 1, 0, 0 },
|
||||
{"readFileLines", JSI_VFS::ReadFileLines, 1, 0, 0 },
|
||||
|
||||
{"v3dist", v3dist, 2, 0, 0 },
|
||||
|
||||
{"exit", exitProgram, 0, 0, 0 },
|
||||
|
||||
Reference in New Issue
Block a user