-
Notifications
You must be signed in to change notification settings - Fork 0
Home
shukari edited this page Feb 13, 2020
·
6 revisions
Welcome to the TBModExtension wiki!
- create a visual studio framework dll with the name TBModExtension_<YOUR_NAME>.dll
- create a class with the name "TBModExtensionAPI" or "TBModExtensionAPI_v*"
- copy the fields and methods of the newest/highest API from here: APIs
- build your dll
- put it next to the "TBModExtension.dll" (in the callExtension_x64.exe folder or addon folder)
- test with callExtension_x64.exe or with the arma3.exe
- execute
"TBModExtension" callExtension ["<YOUR_FNC_NAME>", [<PARAMS>]]
- status [syncTask]
- explanation: returns the taskStatus of the taskId (QUEUE -> [CUSTOM_STATUS] -> DONE/ERROR)
- Parameter1: taskId (integer)
- check [syncTask]
- explanation: returns if the extension is loaded
- Parameter1: dllName (string)
- you call the TBModExtension
- syncTask get executed and if the return of one is 1 (successful) or -1 (error) it returns
- if return is 0 (no syncTask was executed) your call is put in the threadpool, you get a taskId as return and the taskStatus is set to QUEUE
- if the threadpool execute your call all asyncTasks get executed, if it was successful your taskStatus is set to DONE or if something fails to ERROR... the extensions can set the taskStatus between QUEUE and DONE/ERROR itself