Crate horizon_plugin_api

Source

Structs§

ConnectionInfo
Connection information for a client
EventId
Event identifier combining namespace and event type
EventNamespace
Namespace for events to prevent conflicts between plugins
Player
Player information
PlayerId
Unique identifier for players
PluginOpaque
Opaque type for FFI-safe plugin pointers
Position
Position in 3D space
RegionBounds
Region bounds for the server
RegionId
Unique identifier for regions

Enums§

CoreEvent
Core game events that all plugins can listen to
LogLevel
Log levels for plugin logging
NetworkMessage
Network message types
PluginError
Plugin-specific errors
ServerError
Errors that can occur in the server

Traits§

GameEvent
Trait for serializable events
Plugin
Plugin trait that all plugins must implement
ServerContext
Server context provided to plugins

Type Aliases§

PluginCreateFn
Function signature for plugin creation (FFI-safe)