OpenSim
|
Public Member Functions | |
void | Initialise (IConfigSource source) |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created. More... | |
void | Close () |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore. More... | |
void | AddRegion (Scene scene) |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called. More... | |
void | RemoveRegion (Scene scene) |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed. More... | |
void | RegionLoaded (Scene scene) |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module. More... | |
string | GetXMLState (UUID itemID) |
bool | SetXMLState (UUID itemID, string xml) |
bool | PostScriptEvent (UUID itemID, string name, object[] args) |
bool | PostScriptEvent (UUID itemID, EventParams evParams) |
Post an event to a single script More... | |
bool | PostObjectEvent (uint localID, EventParams evParams) |
Post event to an entire prim More... | |
bool | PostObjectEvent (UUID itemID, string name, object[] args) |
void | SuspendScript (UUID itemID) |
Suspends a script. More... | |
void | ResumeScript (UUID itemID) |
Resumes a script. More... | |
ArrayList | GetScriptErrors (UUID itemID) |
bool | HasScript (UUID itemID, out bool running) |
bool | GetScriptState (UUID itemID) |
Returns true if a script is running. More... | |
void | SaveAllState () |
void | StartProcessing () |
Starts the processing threads. More... | |
float | GetScriptExecutionTime (List< UUID > itemIDs) |
Get the execution times of all scripts in the given array if they are currently running. More... | |
Dictionary< uint, float > | GetObjectScriptsExecutionTimes () |
Get the execution times of all scripts in each object. More... | |
IScriptWorkItem | QueueEventHandler (object parms) |
Queue an event for execution More... | |
DetectParams | GetDetectParams (UUID item, int number) |
void | SetMinEventDelay (UUID itemID, double delay) |
int | GetStartParameter (UUID itemID) |
void | SetScriptState (UUID itemID, bool state) |
void | SetState (UUID itemID, string newState) |
void | ApiResetScript (UUID itemID) |
void | ResetScript (UUID itemID) |
IScriptApi | GetApi (UUID itemID, string name) |
void | ClearPostedEvents () |
void | SleepScript (UUID itemID, int delay) |
Public Member Functions inherited from OpenSim.Region.Framework.Interfaces.IScriptModule | |
bool | PostScriptEvent (UUID itemID, string name, Object[] args) |
Post a script event to a single script. More... | |
bool | PostObjectEvent (UUID itemID, string name, Object[] args) |
Properties | |
IConfigSource | ConfigSource [get, set] |
IConfig | Config [get, set] |
Dictionary< UUID, List < EventParams > > | PostedEvents [get, set] |
Expose posted events to tests. More... | |
string | Name [get] |
string | ScriptEngineName [get] |
Type | ReplaceableInterface [get] |
Scene | World [get] |
IScriptModule | ScriptModule [get] |
string | ScriptEnginePath [get] |
string | ScriptClassName [get] |
string | ScriptBaseClassName [get] |
string[] | ScriptReferencedAssemblies [get] |
ParameterInfo[] | ScriptBaseClassParameters [get] |
Properties inherited from OpenSim.Region.Framework.Interfaces.IRegionModuleBase | |
string | Name [get] |
Type | ReplaceableInterface [get] |
If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules. More... | |
Properties inherited from OpenSim.Region.Framework.Interfaces.IScriptModule | |
string | ScriptEngineName [get] |
Properties inherited from OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine | |
Scene | World [get] |
IScriptModule | ScriptModule [get] |
IConfig | Config [get] |
IConfigSource | ConfigSource [get] |
string | ScriptEngineName [get] |
string | ScriptEnginePath [get] |
string | ScriptClassName [get] |
Return the name of the class that will be used for all running scripts. More... | |
string | ScriptBaseClassName [get] |
Return the name of the base class that will be used for all running scripts. More... | |
string[] | ScriptReferencedAssemblies [get] |
Assemblies that need to be referenced when compiling scripts. More... | |
ParameterInfo[] | ScriptBaseClassParameters [get] |
Parameters for the generated script's constructor. More... | |
Events | |
Action< UUID, EventParams > | PostEventHook |
A very primitive way of hooking text cose to a posed event. More... | |
ScriptRemoved | OnScriptRemoved |
ObjectRemoved | OnObjectRemoved |
Events inherited from OpenSim.Region.Framework.Interfaces.IScriptModule | |
ScriptRemoved | OnScriptRemoved |
Triggered when a script is removed from the script module. More... | |
ObjectRemoved | OnObjectRemoved |
Triggered when an object is removed via the script module. More... | |
Definition at line 42 of file MockScriptEngine.cs.
|
inline |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 77 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 234 of file MockScriptEngine.cs.
|
inline |
Definition at line 263 of file MockScriptEngine.cs.
|
inline |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 73 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 244 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 209 of file MockScriptEngine.cs.
|
inline |
Get the execution times of all scripts in each object.
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 199 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 169 of file MockScriptEngine.cs.
|
inline |
Get the execution times of all scripts in the given array if they are currently running.
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 194 of file MockScriptEngine.cs.
|
inline |
Returns true if a script is running.
itemID | The item ID of the script. |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 179 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 219 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 102 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 174 of file MockScriptEngine.cs.
|
inline |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created.
source | A IConfigSource |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 63 of file MockScriptEngine.cs.
|
inline |
Post event to an entire prim
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 141 of file MockScriptEngine.cs.
|
inline |
Definition at line 146 of file MockScriptEngine.cs.
|
inline |
Definition at line 112 of file MockScriptEngine.cs.
|
inline |
Post an event to a single script
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 119 of file MockScriptEngine.cs.
|
inline |
Queue an event for execution
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 204 of file MockScriptEngine.cs.
|
inline |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 88 of file MockScriptEngine.cs.
|
inline |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 84 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 239 of file MockScriptEngine.cs.
|
inline |
Resumes a script.
itemID | The item ID of the script. |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 164 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 184 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 214 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 224 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 229 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 107 of file MockScriptEngine.cs.
|
inline |
Implements OpenSim.Region.ScriptEngine.Interfaces.IScriptEngine.
Definition at line 268 of file MockScriptEngine.cs.
|
inline |
Starts the processing threads.
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 189 of file MockScriptEngine.cs.
|
inline |
Suspends a script.
itemID | The item ID of the script. |
Implements OpenSim.Region.Framework.Interfaces.IScriptModule.
Definition at line 159 of file MockScriptEngine.cs.
|
getset |
Definition at line 46 of file MockScriptEngine.cs.
|
getset |
Definition at line 44 of file MockScriptEngine.cs.
|
get |
Definition at line 92 of file MockScriptEngine.cs.
|
getset |
Expose posted events to tests.
Definition at line 53 of file MockScriptEngine.cs.
|
get |
Definition at line 95 of file MockScriptEngine.cs.
|
get |
Definition at line 257 of file MockScriptEngine.cs.
|
get |
Definition at line 261 of file MockScriptEngine.cs.
|
get |
Definition at line 255 of file MockScriptEngine.cs.
|
get |
Definition at line 93 of file MockScriptEngine.cs.
|
get |
Definition at line 253 of file MockScriptEngine.cs.
|
get |
Definition at line 251 of file MockScriptEngine.cs.
|
get |
Definition at line 259 of file MockScriptEngine.cs.
|
get |
Definition at line 249 of file MockScriptEngine.cs.
ObjectRemoved OpenSim.Tests.Common.MockScriptEngine.OnObjectRemoved |
Definition at line 99 of file MockScriptEngine.cs.
ScriptRemoved OpenSim.Tests.Common.MockScriptEngine.OnScriptRemoved |
Definition at line 98 of file MockScriptEngine.cs.
Action<UUID, EventParams> OpenSim.Tests.Common.MockScriptEngine.PostEventHook |
A very primitive way of hooking text cose to a posed event.
May be replaced with something that uses more original code in the future.
Definition at line 61 of file MockScriptEngine.cs.