Core apiLow level
IToolkitApi
IToolkitAPI
Methods
Log(plugin, msg, )
Logs a formatted message with plugin context.
Parameters
- plugin [IToolkitPlugin](/docs/core-api/low-level/IToolkitPlugin)* — Plugin instance
- msg const char* — Format string
- ...
ConPrint(msg)
Prints message to console.
Parameters
- msg const char*
ConPrintf(fmt, )
Prints formatted message to console.
Parameters
- fmt const char*
- ...
AddListener(plugin, pListener)
Registers a toolkit listener.
Parameters
- plugin [IToolkitPlugin](/docs/core-api/low-level/IToolkitPlugin)* — Owner plugin
- pListener [IToolkitListener](/docs/core-api/low-level/IToolkitPlugin)* — Listener instance
QueryInterface(fn, iface, min)
Queries interface from factory.
Parameters
- fn CreateInterfaceFn — Factory function
- iface const char* — Interface name
- min int — Minimum version (optional)
InterfaceSearch(fn, iface, max, ret)
Searches for interface by iterating versions.
Parameters
- fn CreateInterfaceFn
- iface const char*
- max int
- ret int*
FormatIface(, maxlength)
Formats interface name with version.
Parameters
- char iface[]
- maxlength size_t
GetEngineFactory(syn)
Parameters
- syn bool
GetPhysicsFactory(syn)
Parameters
- syn bool
GetFileSystemFactory(syn)
Parameters
- syn bool
GetServerFactory(syn)
Parameters
- syn bool
ToolkitFactory(iface, ret, id)
Toolkit interface factory.
Parameters
- iface const char*
- ret int*
- id PluginId*
MetaFactory(iface, ret, id)
Metamod interface factory.
Parameters
- iface const char*
- ret int*
- id PluginId*
Addresses()
Access address/pattern system.
Commands()
Access command system.
ConVars()
Access ConVar system.
EntityIO()
Access entity I/O system.
Events()
Access event system.
GameConfig()
Access game configuration system.
Scheduler()
Access scheduler system.
Trace()
Access tracing system.
GetGameEventManager()
GetGlobalVars()
GetCVar()
GetSource2Server()
GetEngineServer()
GetGameEventSystem()
GetNetworkMessages()
GetNetworkServerService()
GetEntitySystem()
GetSchemaSystem()
GetBaseDir()
Returns base directory of the server.
Format(buffer, maxlength, format, )
Formats string into buffer.
Parameters
- buffer char*
- maxlength size_t
- format const char*
- ...
FormatArgs(buffer, maxlength, format, ap)
Formats string using va_list.
Parameters
- buffer char*
- maxlength size_t
- format const char*
- ap va_list