diff --git a/Projects/SAMufasaGUI/virtualextension.pas b/Projects/SAMufasaGUI/virtualextension.pas index 9a67fb4..076db3d 100644 --- a/Projects/SAMufasaGUI/virtualextension.pas +++ b/Projects/SAMufasaGUI/virtualextension.pas @@ -22,6 +22,28 @@ type end; + + { Each hook has a HookName which the extension uses to identify the hook. + Additionally, variables are exported. Currently we will use an Array of Variant. + Therefore, we will have to specify what amount Arguments we will pass. + ( So it is not type safe... Not like Variants are type safe... ) + } + type TEventHook = record + HookName: String; + ArgumentCount: Integer; + end; + +var + EventHooks: Array [0..7] of TEventHook = + ( (HookName : 'onScriptCompile' ; ArgumentCount : 1), + (HookName : 'onScriptStart' ; ArgumentCount : 1), + (HookName : 'onScriptPause' ; ArgumentCount : 1), + (HookName : 'onScriptStop' ; ArgumentCount : 1), + (HookName : 'onColourPick' ; ArgumentCount : 3), + (HookName : 'onOpenFile' ; ArgumentCount : 1), + (HookName : 'onOpenSocket' ; ArgumentCount : 1), + (HookName : 'onWriteFile' ; ArgumentCount : 1)); + implementation end.