plugin

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimulationPlugin

type SimulationPlugin interface {
	// Initialize is called when the plugin is loaded
	Initialize(log logf.Logger) error

	// Name returns the unique identifier of the plugin
	Name() string

	// Version returns the plugin version
	Version() string

	// BeforeSimStep is called before each simulation step
	BeforeSimStep(state *states.PhysicsState) error

	// AfterSimStep is called after each simulation step
	AfterSimStep(state *states.PhysicsState) error

	// Cleanup is called when the simulation ends
	Cleanup() error
}

SimulationPlugin defines the interface that all plugins must implement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL