|
void | ClearQueue () |
|
| ScriptInstance (IScriptEngine engine, SceneObjectPart part, TaskInventoryItem item, int startParam, bool postOnRez, int maxScriptQueue) |
|
bool | Load (IScript script, EventWaitHandle coopSleepHandle, string assemblyPath, string dataPath, StateSource stateSource, bool coopTermination) |
| Load the script from an assembly into an AppDomain. More...
|
|
void | Init () |
|
void | DestroyScriptInstance () |
|
void | RemoveState () |
|
void | VarDump (Dictionary< string, object > vars) |
|
void | Start () |
|
bool | Stop (int timeout, bool clearEventQueue=false) |
| Stop the script instance. More...
|
|
void | SetState (string state) |
|
void | PostEvent (EventParams data) |
| Post an event to this script instance. More...
|
|
object | EventProcessor () |
| Process the next event queued for this script More...
|
|
int | EventTime () |
|
void | ResetScript (int timeout) |
| Reset the script. More...
|
|
void | ApiResetScript () |
| Reset the script. More...
|
|
Dictionary< string, object > | GetVars () |
|
void | SetVars (Dictionary< string, object > vars) |
|
DetectParams | GetDetectParams (int idx) |
|
UUID | GetDetectID (int idx) |
|
void | SaveState () |
|
IScriptApi | GetApi (string name) |
|
override string | ToString () |
|
string | GetAssemblyName () |
|
string | GetXMLState () |
|
void | Suspend () |
|
void | Resume () |
|
|
bool | StatePersistedHere [get] |
|
int | DebugLevel [get, set] |
|
WaitHandle | CoopWaitHandle [get, set] |
|
Stopwatch | ExecutionTimer [get, set] |
|
Dictionary< KeyValuePair< int,
int >, KeyValuePair< int, int > > | LineMap [get, set] |
|
double | MinEventDelay [get, set] |
| Used by llMinEventDelay to suppress events happening any faster than this speed. This currently restricts all events in one go. Not sure if each event type has its own check so take the simple route first. More...
|
|
bool | Running [get, set] |
|
bool | Suspended [get, set] |
|
bool | ShuttingDown [get, set] |
|
string | State [get, set] |
|
bool | StayStopped [get, set] |
|
IScriptEngine | Engine [get, set] |
|
UUID | AppDomain [get, set] |
|
SceneObjectPart | Part [get, set] |
|
string | PrimName [get, set] |
|
string | ScriptName [get, set] |
|
UUID | ItemID [get, set] |
|
UUID | ObjectID [get] |
|
uint | LocalID [get] |
|
UUID | RootObjectID [get] |
|
uint | RootLocalID [get] |
|
UUID | AssetID [get, set] |
|
Queue | EventQueue [get, set] |
|
long | EventsQueued [get] |
|
long | EventsProcessed [get, set] |
|
int | StartParam [get, set] |
|
TaskInventoryItem | ScriptTask [get, set] |
|
DateTime | TimeStarted [get, set] |
|
MetricsCollectorTime | ExecutionTime [get, set] |
|
UUID | RegionID [get] |
|
int | DebugLevel [get, set] |
| Debug level for this script instance. More...
|
|
bool | Running [get, set] |
| Is the script currently running? More...
|
|
bool | Suspended [get, set] |
| Is the script suspended? More...
|
|
bool | ShuttingDown [get, set] |
| Is the script shutting down? More...
|
|
bool | StayStopped [get, set] |
| When stopping the script: should it remain stopped permanently (i.e., save !Running in its state)? More...
|
|
string | State [get, set] |
| Script state More...
|
|
bool | StatePersistedHere [get] |
| If true then the engine is responsible for persisted state. If false then some other component may persist state (e.g. attachments persisting in assets). More...
|
|
DateTime | TimeStarted [get] |
| Time the script was last started More...
|
|
MetricsCollectorTime | ExecutionTime [get] |
| Collects information about how long the script was executed. More...
|
|
SceneObjectPart | Part [get] |
| Scene part in which this script instance is contained. More...
|
|
IScriptEngine | Engine [get] |
|
UUID | AppDomain [get, set] |
|
string | PrimName [get] |
|
string | ScriptName [get] |
|
UUID | ItemID [get] |
|
UUID | ObjectID [get] |
|
UUID | RootObjectID [get] |
| UUID of the root object for the linkset that the script is in. More...
|
|
uint | RootLocalID [get] |
| Local id of the root object for the linkset that the script is in. More...
|
|
uint | LocalID [get] |
|
UUID | AssetID [get] |
|
TaskInventoryItem | ScriptTask [get] |
| Inventory item containing the script used. More...
|
|
Queue | EventQueue [get] |
|
long | EventsQueued [get] |
| Number of events queued for processing. More...
|
|
long | EventsProcessed [get] |
| Number of events processed by this script instance. More...
|
|
int | StartParam [get, set] |
|
WaitHandle | CoopWaitHandle [get] |
|
Stopwatch | ExecutionTimer [get] |
|
Dictionary< KeyValuePair< int,
int >, KeyValuePair< int, int > > | LineMap [get, set] |
|
double | MinEventDelay [set] |
|
UUID | RegionID [get] |
|
Definition at line 59 of file ScriptInstance.cs.
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ApiResetScript |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ClearQueue |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.DestroyScriptInstance |
( |
| ) |
|
|
inline |
object OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.EventProcessor |
( |
| ) |
|
|
inline |
int OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.EventTime |
( |
| ) |
|
|
inline |
IScriptApi OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetApi |
( |
string |
name | ) |
|
|
inline |
string OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetAssemblyName |
( |
| ) |
|
|
inline |
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetDetectID |
( |
int |
idx | ) |
|
|
inline |
DetectParams OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetDetectParams |
( |
int |
idx | ) |
|
|
inline |
Dictionary<string, object> OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetVars |
( |
| ) |
|
|
inline |
string OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.GetXMLState |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Init |
( |
| ) |
|
|
inline |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Load |
( |
IScript |
script, |
|
|
EventWaitHandle |
coopSleepHandle, |
|
|
string |
assemblyPath, |
|
|
string |
dataPath, |
|
|
StateSource |
stateSource, |
|
|
bool |
coopTermination |
|
) |
| |
|
inline |
Load the script from an assembly into an AppDomain.
- Parameters
-
dom | |
assembly | |
dataPath | Path for all script associated data (state, etc.). In a multi-region set up with all scripts loading into the same AppDomain this may not be the same place as the DLL itself. |
stateSource | |
- Returns
- false if load failed, true if suceeded
Definition at line 283 of file ScriptInstance.cs.
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.PostEvent |
( |
EventParams |
data | ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.RemoveState |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ResetScript |
( |
int |
timeout | ) |
|
|
inline |
Reset the script.
This must not be called by a thread that is in the process of handling an event for this script. Otherwise there is a danger that it will self-abort and not complete the reset. Such a thread must call ApiResetScript() instead.
- Parameters
-
timeout | How many milliseconds we will wait for an existing script event to finish before forcibly aborting that event prior to script reset. |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptInstance.
Definition at line 1005 of file ScriptInstance.cs.
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Resume |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.SaveState |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.SetState |
( |
string |
state | ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.SetVars |
( |
Dictionary< string, object > |
vars | ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Start |
( |
| ) |
|
|
inline |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Stop |
( |
int |
timeout, |
|
|
bool |
clearEventQueue = false |
|
) |
| |
|
inline |
Stop the script instance.
This must not be called by a thread that is in the process of handling an event for this script. Otherwise there is a danger that it will self-abort and not complete the reset.
- Parameters
-
How many milliseconds we will wait for an existing script event to finish before forcibly aborting that event.
- Parameters
-
clearEventQueue | If true then the event queue is also cleared |
- Returns
- true if the script was successfully stopped, false otherwise
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptInstance.
Definition at line 553 of file ScriptInstance.cs.
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Suspend |
( |
| ) |
|
|
inline |
override string OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ToString |
( |
| ) |
|
|
inline |
void OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.VarDump |
( |
Dictionary< string, object > |
vars | ) |
|
|
inline |
Object [] OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.PluginData = new Object[0] |
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.AppDomain |
|
getset |
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.AssetID |
|
getset |
WaitHandle OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.CoopWaitHandle |
|
getset |
int OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.DebugLevel |
|
getset |
IScriptEngine OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Engine |
|
getset |
Queue OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.EventQueue |
|
getset |
long OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.EventsProcessed |
|
getset |
long OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.EventsQueued |
|
get |
Stopwatch OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ExecutionTimer |
|
getset |
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ItemID |
|
getset |
Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int> > OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.LineMap |
|
getset |
uint OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.LocalID |
|
get |
double OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.MinEventDelay |
|
getset |
Used by llMinEventDelay to suppress events happening any faster than this speed. This currently restricts all events in one go. Not sure if each event type has its own check so take the simple route first.
Definition at line 119 of file ScriptInstance.cs.
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ObjectID |
|
get |
SceneObjectPart OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Part |
|
getset |
string OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.PrimName |
|
getset |
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.RegionID |
|
get |
uint OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.RootLocalID |
|
get |
UUID OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.RootObjectID |
|
get |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Running |
|
getset |
string OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ScriptName |
|
getset |
TaskInventoryItem OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ScriptTask |
|
getset |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.ShuttingDown |
|
getset |
int OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.StartParam |
|
getset |
string OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.State |
|
getset |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.StatePersistedHere |
|
get |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.StayStopped |
|
getset |
bool OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.Suspended |
|
getset |
DateTime OpenSim.Region.ScriptEngine.Shared.Instance.ScriptInstance.TimeStarted |
|
getset |
The documentation for this class was generated from the following file: