MFScript.h File Reference

Provide access to the embedded 'AngelScript' scripting language. More...


Typedefs

typedef int MFEntryPoint
 Represents an entrypoint into a script.
typedef uint32 MFScriptObject
 Represents any object in a script.
typedef uint32 MFScriptString
 Represents an string in a script.
typedef uint32 MFScriptArray
 Represents an array in a script.

Enumerations

enum  MFScriptCallingConvention {
  MFCC_CDecl = 0, MFCC_StdCall, MFCC_ThisCall, MFCC_CDecl_ObjLast,
  MFCC_CDecl_ObjFirst, MFCC_Generic, MFCC_ForceInt = 0x7FFFFFFF
}
 Calling conventions. More...

Functions

int MFScript_LoadScript (const char *pFilename)
 Load a fuji script and prepares it for execution.
MFEntryPoint MFScript_FindPublicFunction (const char *pFunctionName)
 Find a public function.
MFScriptContextMFScript_CreateContext ()
 Create a script execution context.
int MFScript_Execute (MFScriptContext *pContext, const char *pEntryPoint)
 Begin execution of a fuji script.
int MFScript_ExecuteImmediate (const char *pCode, MFScriptContext *pContext=NULL)
 Execute an immediate instruction.
int MFScript_Call (MFScriptContext *pContext, MFEntryPoint entryPoint)
 Begin execution of a fuji script at a specified entrypoint.
void MFScript_DestroyContext (MFScriptContext *pContext)
 Destroy a fuji script execution context.
void MFScript_RegisterNativeFunction (const char *pDeclaration, void *pFunction, MFScriptCallingConvention callingConvention)
 Register native function.
const char * MFScript_GetCString (MFScriptString scriptString)
 Convert a script string into a C string.
MFScriptString MFScript_MakeScriptString (const char *pString)
 Convert a C string to a script string.
const void * MFScript_GetArray (MFScriptArray scriptArray)
 Get the base pointer to a script array.
int MFScript_GetArraySize (MFScriptArray scriptArray)
 Get the number of items in a dynamic script array.
const void * MFScript_GetArrayItem (MFScriptArray scriptArray, int item)
 Get an element from a script array.
int MFScript_AddRef (MFScriptObject *pObject)
 Increase the reference count of a script object.
int MFScript_Release (MFScriptObject *pObject)
 Decrease the reference count of a script object.


Detailed Description

Author:
Manu Evans

Generated on Sat Oct 28 16:27:28 2006 for MountFuji Engine by  doxygen 1.4.5