The core module in this case is called sp.py (analogous to es.py). The core module in this case is the core.dll/core.so file.
Syntax: Select all
def event_fired(gameEvent):
''' This event is fired whenever the core plugin receives an event. gameEvent is an IGameEvent instance.
This function will then pass the event on to the event manager which will then call the appropriate callbacks
for the event. '''
Syntax: Select all
def addon_load(addonName):
''' This function is called whenever sp_load is executed from the console. It will contain the name of the addon
that is to be loaded.
'''
Syntax: Select all
def addon_unload(addonName):
''' This function is called whenever sp_unload is executed from the console. It will contain the name of the addon
that is to be unloaded.
'''