C# Class OpenBve.NetPlugin

Represents a .NET assembly plugin.
Inheritance: PluginManager.Plugin
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Private Methods

Méthode Description
AddInterfaceMessage ( string Message, MessageColor Color, double Time ) : void

May be called from a .Net plugin, in order to add a message to the in-game display

BeginJump ( InitializationModes mode ) : void
DoorChange ( DoorStates oldState, DoorStates newState ) : void
Elapse ( ElapseData data ) : void
EndJump ( ) : void
HornBlow ( HornTypes type ) : void
KeyDown ( VirtualKeys key ) : void
KeyUp ( VirtualKeys key ) : void
Load ( VehicleSpecs specs, InitializationModes mode ) : bool
NetPlugin ( string pluginFile, string trainFolder, IRuntime api, TrainManager train ) : System

Initialises a new instance of a .Net based plugin

PerformAI ( AIData data ) : void
PlaySound ( int index, double volume, double pitch, bool looped ) : SoundHandleEx

May be called from a .Net plugin, in order to play a sound from the driver's car of a train

PlaySound ( int index, double volume, double pitch, bool looped, int CarIndex ) : SoundHandleEx

May be called from a .Net plugin, in order to play a sound from a specific car of a train

SetBeacon ( BeaconData beacon ) : void
SetBrake ( int brakeNotch ) : void
SetPower ( int powerNotch ) : void
SetReverser ( int reverser ) : void
SetSignal ( SignalData signal ) : void
Unload ( ) : void