Expand description
This interface is extremely unstable, everything just lives in a soup at the top level for now.
Macros§
- c_str
- Produce a
CStr
reference out of a static string literal. - register_
natives - virtual_
call - Helper for virtual function invocation that works with the
#[vtable]
attribute to support virtual calls on Windows without compiler support for thethiscall
calling convention. - virtual_
call_ varargs - Helper for varargs-using virtual function invocation that works with the
#[vtable]
attribute to support virtual calls on Windows without compiler support for thethiscall
calling convention.
Structs§
- Changeable
Forward - Dummy
Native Error - Dummy error used for
NativeResult
implementations that can never fail. - Forward
- Game
Frame Hook Id - Handle
Id - Handle
Ref - Wrapper for a
HandleId
that isDeref
to the wrapping type. - Handle
Security - This pair of tokens is used for identification.
- Handle
Type - Handle
Type Id - IExtension
- IExtension
Interface Adapter - IForward
Manager - IHandle
Sys - IHandle
Type Dispatch Adapter - IPlugin
Context - IPlugin
Function - IShare
Sys - ISource
Mod - Identity
Token - Identity
Type - Native
Info - Struct to contain name/fnptr pairs for native registration.
- SMInterface
- cell_t
- Wrapper type that represents a value from SourcePawn.
Enums§
- Create
Forward Error - Create
Handle Type Error - Exec
Type - Defines how a forward iterates through plugin functions.
- Feature
Status - Feature
Type - GetFunction
Error - Handle
Error - Lists the possible handle error codes.
- IsRunning
Error - Param
Type - Describes the various ways to pass parameters to plugins.
- Path
Type - Describes various ways of formatting a base path.
- Request
Interface Error - SPError
- Error codes for SourcePawn routines.
Traits§
- Callable
Param - Executable
- Extension
Metadata - HasHandle
Type - Implement this trait to allow automatic conversion to
HandleRef
from native arguments. - ICallable
Api - IExtension
Interface - Native
Result - The return type for native callbacks.
- Requestable
Interface - SMInterface
Api - TryFrom
Plugin - Trait to support conversions to/from
cell_t
that require anIPluginContext
for access to plugin memory. - TryInto
Plugin - Trait to support conversions to/from
cell_t
that require anIPluginContext
for access to plugin memory.
Functions§
- safe_
native_ invoke - Wrapper to invoke a native callback and translate a
panic!
orErr
return into a SourceMod error usingIPluginContext::throw_native_error
.
Type Aliases§
- Game
Frame Hook Func - IChangeable
Forward Ptr - IExtension
Interface Ptr - IExtension
Ptr - IFeature
Provider Ptr - IForward
Manager Ptr - IForward
Ptr - IHandle
SysPtr - IHandle
Type Dispatch Ptr - IPlugin
Context Ptr - IPlugin
Function Ptr - IPlugin
Runtime Ptr - IShare
SysPtr - ISource
ModPtr - Identity
Token Ptr - SMInterface
Ptr - size_t
Attribute Macros§
- forwards
- native
- Declares a function as a native callback and generates internal support code.
- vtable
- vtable_
override
Derive Macros§
- ICallable
Api - SMExtension
- Creates the entry point for SourceMod to recognise this library as an extension and set the required metadata.
- SMInterface
Api