* Renamed ScriptConsole to PluginConsole for clarity
* Fixed a bug where ODE tries to do a physics update for zero frames.afrisby
parent
48e0e05446
commit
f5eac12a88
|
@ -220,9 +220,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
#region Script Handling Methods
|
#region Script Handling Methods
|
||||||
|
|
||||||
public void SendCommandToScripts(string[] args)
|
public void SendCommandToPlugins(string[] args)
|
||||||
{
|
{
|
||||||
m_eventManager.TriggerOnScriptConsole(args);
|
m_eventManager.TriggerOnPluginConsole(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -275,7 +275,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
if (m_frame % m_update_physics == 0)
|
if (m_frame % m_update_physics == 0)
|
||||||
UpdatePhysics(
|
UpdatePhysics(
|
||||||
Math.Min(SinceLastFrame.TotalSeconds, 0.001)
|
Math.Min(SinceLastFrame.TotalSeconds, m_timespan)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (m_frame % m_update_entities == 0)
|
if (m_frame % m_update_entities == 0)
|
||||||
|
|
|
@ -37,9 +37,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
|
public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
|
||||||
|
|
||||||
public delegate void OnScriptConsoleDelegate(string[] args);
|
public delegate void OnPluginConsoleDelegate(string[] args);
|
||||||
|
|
||||||
public event OnScriptConsoleDelegate OnScriptConsole;
|
public event OnPluginConsoleDelegate OnPluginConsole;
|
||||||
|
|
||||||
public delegate void OnShutdownDelegate();
|
public delegate void OnShutdownDelegate();
|
||||||
|
|
||||||
|
@ -66,10 +66,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
OnPermissionError(user, reason);
|
OnPermissionError(user, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnScriptConsole(string[] args)
|
public void TriggerOnPluginConsole(string[] args)
|
||||||
{
|
{
|
||||||
if (OnScriptConsole != null)
|
if (OnPluginConsole != null)
|
||||||
OnScriptConsole(args);
|
OnPluginConsole(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerOnFrame()
|
public void TriggerOnFrame()
|
||||||
|
|
|
@ -82,7 +82,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public void SendCommandToCurrentSceneScripts(string[] cmdparams)
|
public void SendCommandToCurrentSceneScripts(string[] cmdparams)
|
||||||
{
|
{
|
||||||
ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToScripts(cmdparams); });
|
ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToPlugins(cmdparams); });
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetBypassPermissionsOnCurrentScene(bool bypassPermissions)
|
public void SetBypassPermissionsOnCurrentScene(bool bypassPermissions)
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples
|
||||||
{
|
{
|
||||||
script = scriptInfo;
|
script = scriptInfo;
|
||||||
|
|
||||||
script.events.OnScriptConsole += new EventManager.OnScriptConsoleDelegate(ProcessConsoleMsg);
|
script.events.OnPluginConsole += new EventManager.OnPluginConsoleDelegate(ProcessConsoleMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessConsoleMsg(string[] args)
|
void ProcessConsoleMsg(string[] args)
|
||||||
|
|
Loading…
Reference in New Issue