mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
* Restaring the sim works fine in grid mode now. Sims announce themselves to their neighbors when they start up. Neighbors get this message and tell their agents that there's a new sim up.
* Certain unrecoverable physics based crashes in ODE are now hooked up to the 'restart the sim' routine.
This commit is contained in:
@@ -32,12 +32,29 @@ using OpenSim.Region.Physics.Manager;
|
||||
|
||||
namespace OpenSim.Region.Physics.Manager
|
||||
{
|
||||
public delegate void physicsCrash();
|
||||
|
||||
public abstract class PhysicsScene
|
||||
{
|
||||
// The only thing that should register for this event is the InnerScene
|
||||
// Anything else could cause problems.
|
||||
|
||||
public event physicsCrash OnPhysicsCrash;
|
||||
|
||||
public static PhysicsScene Null
|
||||
{
|
||||
get { return new NullPhysicsScene(); }
|
||||
}
|
||||
public virtual void TriggerPhysicsBasedRestart()
|
||||
{
|
||||
physicsCrash handler = OnPhysicsCrash;
|
||||
if (handler != null)
|
||||
{
|
||||
OnPhysicsCrash();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public abstract void Initialise(IMesher meshmerizer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user