Just make an inlude containing the following code, and you can have a dynamic event system!
Call InitEvents first!
To create an event, use CreateEvent(Name as string). It returns the ID of the event.
To get the ID of an existing event, use GetEventID(Name as string).
To raise an event, use RaiseEvent<suffix>(ID, <parameter list>
(There are some other commands as well
)
Because DBP does not support over-loaded functions, functions for each type of parameters has a different suffix:
no parameters:
RaiseEvent(ID)
Integer parameter:
RaiseEvent_S32(ID, Param1 as integer)
Integer, Double float:
RaiseEvent_S32F64(ID, Param1 as integer, Param2 as double float)
There are versions of the function for all base types for up to 2 parameters, and support for integer/dword/float/string with 3 parameters. Custom versions can also be created, for any combination of types that you need, by modifying the function template at the top.
The code:
remstart RAISE EVENT FUNCTION TEMPLATE
function RaiseEventID(ID as integer, <param list>)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, <param list>
endif
endfunction
remend
type Event
Handle as dword
Name as string
endtype
function InitEvents()
global dim Events(-1) as Event
endfunction
function CreateEvent(Name as string)
array insert at bottom Events(0)
ID = array count(Events(0))
Events(ID).Name = Name
endfunction ID
function SetEventHandlerID(ID as integer, Handle as dword)
Events(ID).Handle = Handle
endfunction
function SetEventHandler(Name as string, Handle as dword)
Events(GetEventID(Name)).Handle = Handle
endfunction
function GetEventID(Name as string)
Num = array count(Events(0))
for i = 0 to Num
if Events(i).Name = Name
exitfunction i
endif
next i
endfunction -1
function DeleteEventID(ID as integer)
array delete element Events(0),ID
endfunction
function DeleteEvent(Name as string)
array delete element Events(0),GetEventID(Name)
endfunction
function RaiseEventID(ID as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle
endif
endfunction
function RaiseEventID_U32(ID as integer, Param1 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1
endif
endfunction
function RaiseEventID_S32(ID as integer, Param1 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1
endif
endfunction
function RaiseEventID_F32(ID as integer, Param1 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1
endif
endfunction
function RaiseEventID_S64(ID as integer, Param1 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1
endif
endfunction
function RaiseEventID_F64(ID as integer, Param1 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1
endif
endfunction
function RaiseEventID_Str(ID as integer, Param1 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1
endif
endfunction
function RaiseEventID_U32U32(ID as integer, Param1 as dword, Param2 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_U32S32(ID as integer, Param1 as dword, Param2 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_U32F32(ID as integer, Param1 as dword, Param2 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_U32S64(ID as integer, Param1 as dword, Param2 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_U32F64(ID as integer, Param1 as dword, Param2 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_U32Str(ID as integer, Param1 as dword, Param2 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S32U32(ID as integer, Param1 as integer, Param2 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S32S32(ID as integer, Param1 as integer, Param2 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S32F32(ID as integer, Param1 as integer, Param2 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S32S64(ID as integer, Param1 as integer, Param2 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S32F64(ID as integer, Param1 as integer, Param2 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S32Str(ID as integer, Param1 as integer, Param2 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F32U32(ID as integer, Param1 as float, Param2 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F32S32(ID as integer, Param1 as float, Param2 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F32F32(ID as integer, Param1 as float, Param2 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F32S64(ID as integer, Param1 as float, Param2 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F32F64(ID as integer, Param1 as float, Param2 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F32Str(ID as integer, Param1 as float, Param2 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S64U32(ID as integer, Param1 as double integer, Param2 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S64S32(ID as integer, Param1 as double integer, Param2 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S64F32(ID as integer, Param1 as double integer, Param2 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S64S64(ID as integer, Param1 as double integer, Param2 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S64F64(ID as integer, Param1 as double integer, Param2 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_S64Str(ID as integer, Param1 as double integer, Param2 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F64U32(ID as integer, Param1 as double float, Param2 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F64S32(ID as integer, Param1 as double float, Param2 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F64F32(ID as integer, Param1 as double float, Param2 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F64S64(ID as integer, Param1 as double float, Param2 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F64F64(ID as integer, Param1 as double float, Param2 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_F64Str(ID as integer, Param1 as double float, Param2 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_StrU32(ID as integer, Param1 as string, Param2 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_StrS32(ID as integer, Param1 as string, Param2 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_StrF32(ID as integer, Param1 as string, Param2 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_StrS64(ID as integer, Param1 as string, Param2 as double integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_StrF64(ID as integer, Param1 as string, Param2 as double float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_StrStr(ID as integer, Param1 as string, Param2 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2
endif
endfunction
function RaiseEventID_U32U32U32(ID as integer, Param1 as dword, Param2 as dword, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32U32S32(ID as integer, Param1 as dword, Param2 as dword, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32U32F32(ID as integer, Param1 as dword, Param2 as dword, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32U32Str(ID as integer, Param1 as dword, Param2 as dword, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32S32U32(ID as integer, Param1 as dword, Param2 as integer, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32S32S32(ID as integer, Param1 as dword, Param2 as integer, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32S32F32(ID as integer, Param1 as dword, Param2 as integer, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32S32Str(ID as integer, Param1 as dword, Param2 as integer, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32F32U32(ID as integer, Param1 as dword, Param2 as float, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32F32S32(ID as integer, Param1 as dword, Param2 as float, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32F32F32(ID as integer, Param1 as dword, Param2 as float, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32F32Str(ID as integer, Param1 as dword, Param2 as float, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32StrU32(ID as integer, Param1 as dword, Param2 as string, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32StrS32(ID as integer, Param1 as dword, Param2 as string, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32StrF32(ID as integer, Param1 as dword, Param2 as string, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_U32StrStr(ID as integer, Param1 as dword, Param2 as string, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32U32U32(ID as integer, Param1 as integer, Param2 as dword, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32U32S32(ID as integer, Param1 as integer, Param2 as dword, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32U32F32(ID as integer, Param1 as integer, Param2 as dword, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32U32Str(ID as integer, Param1 as integer, Param2 as dword, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32S32U32(ID as integer, Param1 as integer, Param2 as integer, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32S32S32(ID as integer, Param1 as integer, Param2 as integer, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32S32F32(ID as integer, Param1 as integer, Param2 as integer, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32S32Str(ID as integer, Param1 as integer, Param2 as integer, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32F32U32(ID as integer, Param1 as integer, Param2 as float, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32F32S32(ID as integer, Param1 as integer, Param2 as float, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32F32F32(ID as integer, Param1 as integer, Param2 as float, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32F32Str(ID as integer, Param1 as integer, Param2 as float, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32StrU32(ID as integer, Param1 as integer, Param2 as string, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32StrS32(ID as integer, Param1 as integer, Param2 as string, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32StrF32(ID as integer, Param1 as integer, Param2 as string, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_S32StrStr(ID as integer, Param1 as integer, Param2 as string, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32U32U32(ID as integer, Param1 as float, Param2 as dword, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32U32S32(ID as integer, Param1 as float, Param2 as dword, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32U32F32(ID as integer, Param1 as float, Param2 as dword, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32U32Str(ID as integer, Param1 as float, Param2 as dword, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32S32U32(ID as integer, Param1 as float, Param2 as integer, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32S32S32(ID as integer, Param1 as float, Param2 as integer, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32S32F32(ID as integer, Param1 as float, Param2 as integer, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32S32Str(ID as integer, Param1 as float, Param2 as integer, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32F32U32(ID as integer, Param1 as float, Param2 as float, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32F32S32(ID as integer, Param1 as float, Param2 as float, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32F32F32(ID as integer, Param1 as float, Param2 as float, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32F32Str(ID as integer, Param1 as float, Param2 as float, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32StrU32(ID as integer, Param1 as float, Param2 as string, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32StrS32(ID as integer, Param1 as float, Param2 as string, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32StrF32(ID as integer, Param1 as float, Param2 as string, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_F32StrStr(ID as integer, Param1 as float, Param2 as string, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrU32U32(ID as integer, Param1 as string, Param2 as dword, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrU32S32(ID as integer, Param1 as string, Param2 as dword, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrU32F32(ID as integer, Param1 as string, Param2 as dword, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrU32Str(ID as integer, Param1 as string, Param2 as dword, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrS32U32(ID as integer, Param1 as string, Param2 as integer, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrS32S32(ID as integer, Param1 as string, Param2 as integer, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrS32F32(ID as integer, Param1 as string, Param2 as integer, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrS32Str(ID as integer, Param1 as string, Param2 as integer, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrF32U32(ID as integer, Param1 as string, Param2 as float, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrF32S32(ID as integer, Param1 as string, Param2 as float, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrF32F32(ID as integer, Param1 as string, Param2 as float, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrF32Str(ID as integer, Param1 as string, Param2 as float, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrStrU32(ID as integer, Param1 as string, Param2 as string, Param3 as dword)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrStrS32(ID as integer, Param1 as string, Param2 as string, Param3 as integer)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrStrF32(ID as integer, Param1 as string, Param2 as string, Param3 as float)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction
function RaiseEventID_StrStrStr(ID as integer, Param1 as string, Param2 as string, Param3 as string)
if function ptr is valid(Events(ID).Handle)
call function ptr Events(ID).Handle, Param1, Param2, Param3
endif
endfunction