* Fixes mantis #2922

* Converts some C# 3.0 syntax into it's 2.0 equivalent so that Visual Studio 2005 can compile it successfully.
0.6.2-post-fixes
Teravus Ovares 2008-12-27 00:17:08 +00:00
parent 6ef2d2efe8
commit b378bd33ad
3 changed files with 11 additions and 11 deletions

View File

@ -127,8 +127,8 @@ namespace OpenSim.Region.Physics.Manager
public abstract bool Selected { set; } public abstract bool Selected { set; }
public String SOPName { get; set; } public virtual String SOPName { get { return String.Empty; } set { return; } }
public String SOPDescription { get; set; } public virtual String SOPDescription { get { return String.Empty; } set { return; } }
public abstract void CrossingFailure(); public abstract void CrossingFailure();

View File

@ -41,15 +41,15 @@ namespace OpenSim.Region.Physics.Manager
public class PhysicsJoint public class PhysicsJoint
{ {
public virtual bool IsInPhysicsEngine { get { return false; } } // set internally to indicate if this joint has already been passed to the physics engine or is still pending public virtual bool IsInPhysicsEngine { get { return false; } } // set internally to indicate if this joint has already been passed to the physics engine or is still pending
public PhysicsJointType Type { get; set; } public virtual PhysicsJointType Type { get {return ((PhysicsJointType)(-1)); } set { return; } }
public string RawParams { get; set; } public virtual string RawParams { get { return string.Empty; } set { return; } }
public List<string> BodyNames = new List<string>(); public List<string> BodyNames = new List<string>();
public PhysicsVector Position { get; set; } // global coords public virtual PhysicsVector Position { get { return PhysicsVector.Zero; } set { return; } } // global coords
public Quaternion Rotation { get; set; } // global coords public virtual Quaternion Rotation { get { return Quaternion.Identity; } set { return; } } // global coords
public string ObjectNameInScene { get; set; } // proxy object in scene that represents the joint position/orientation public virtual string ObjectNameInScene { get { return string.Empty; } set { return; } } // proxy object in scene that represents the joint position/orientation
public string TrackedBodyName { get; set; } // body name that this joint is attached to (ObjectNameInScene will follow TrackedBodyName) public virtual string TrackedBodyName { get { return string.Empty; } set { return; } } // body name that this joint is attached to (ObjectNameInScene will follow TrackedBodyName)
public Quaternion LocalRotation { get; set; } // joint orientation relative to one of the involved bodies, the tracked body public virtual Quaternion LocalRotation { get { return Quaternion.Identity; } set { return; } } // joint orientation relative to one of the involved bodies, the tracked body
public int ErrorMessageCount { get; set; } // total # of error messages printed for this joint since its creation. if too many, further error messages are suppressed to prevent flooding. public virtual int ErrorMessageCount { get { return 0; } set { return; } } // total # of error messages printed for this joint since its creation. if too many, further error messages are suppressed to prevent flooding.
public const int maxErrorMessages = 100; // no more than this # of error messages will be printed for each joint public const int maxErrorMessages = 100; // no more than this # of error messages will be printed for each joint
} }
} }

View File

@ -44,6 +44,6 @@ namespace OpenSim.Region.Physics.OdePlugin
return (jointID != IntPtr.Zero); return (jointID != IntPtr.Zero);
} }
} }
public IntPtr jointID { get; set; } public virtual IntPtr jointID { get { return IntPtr.Zero; } set { return; } }
} }
} }