Mount Fuji Engine  0.8b
Data Structures | Typedefs | Enumerations | Functions
Scripting Interface

Provides access to the AngelScript scripting language integrated into the Mount Fuji engine. More...

Data Structures

struct  MFScriptContext
 Represents a Fuji script execution context. More...
 

Typedefs

typedef int MFEntryPoint
 Represents an entrypoint into a script. More...
 
typedef uint32 MFScriptObject
 Callback function type for native script functions. More...
 
typedef uint32 MFScriptString
 Represents an string in a script. More...
 
typedef uint32 MFScriptArray
 Represents an array in a script. More...
 

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

Detailed Description

AngelScript is a fast, efficient and light weight cross platform scripting language written and maintained by Andreas Jönsson.
For more details on AngelScript, visit the authors website at http://www.angelcode.com