Results 1 to 10 of 53

Thread: Luna Game Library - Simple & Elegant Game Programming

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    *** UPDATE ****
    Removed the scripting engine for now. Too unable. I hope to add something better in the future.


    Okay, so I got the scripting system implemented. It can compile Delphi 7 level syntax to 32 bit native code. You can run the whole script and/or call a script routine, create a script class instance and call its methods. Be in next build. ��

    Code:
    function  Script_Create: TScript; stdcall; external LGL_DLL;
    procedure Script_Destroy(var aScript: TScript); stdcall; external LGL_DLL;
    procedure Script_Reset(aScript: TScript); stdcall; external LGL_DLL;
    function  Script_Compile(aScript: TScript; aArchive: TArchive; aFilename: PChar): Boolean; stdcall; external LGL_DLL;
    function  Script_ErrorCount(aScript: TScript): Integer; stdcall; external LGL_DLL;
    function  Script_WarningCount(aScript: TScript): Integer; stdcall; external LGL_DLL;
    function  Script_ErrorMessage(aScript: TScript; aIndex: Integer): PChar; stdcall; external LGL_DLL;
    function  Script_WarningMessage(aScript: TScript; aIndex: Integer): PChar; stdcall; external LGL_DLL;
    procedure Script_SaveProgram(aScript: TScript; aFilename: PChar); stdcall; external LGL_DLL;
    procedure Script_Run(aScript: TScript); stdcall; external LGL_DLL;
    function  Script_CallRoutine(aScript: TScript; aFullname: PChar; aParamList: array of OleVariant): OleVariant; stdcall; external LGL_DLL;
    function  Script_CreateObject(aScript: TScript; aClassName: PChar; aParamList: array of const): TObject; stdcall; external LGL_DLL;
    procedure Script_DestroyObject(aScript: TScript; aObject: TObject); stdcall; external LGL_DLL;
    function  Script_CallMethod(aScript: TScript; aFullname: PChar; aInstance: TObject; aParamList: array of OleVariant): OleVariant; stdcall; external LGL_DLL;
    function  Script_GetAddress(aScript: TScript; aFullname: PChar): Pointer; stdcall; external LGL_DLL;
    procedure Script_SetCompileEvent(aScript: TScript; aEvent: TScriptCompileEvent); stdcall; external LGL_DLL;
    function  Script_CompileEvent(aScript: TScript): TScriptCompileEvent; stdcall; external LGL_DLL;
    Last edited by drezgames; 04-11-2017 at 06:30 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •