* Created an LLUDP folder to hold extensions that are purely LLUDP packet handlers. This is not a complete abstraction away from transport protocols, but it's a start
* Moved physics code from Movement.cs into PhysicsSimple.cs, and moved the physics loop into a thread in SceneManager
* Simian.ini cleanup


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2490 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-17 22:33:22 +00:00
parent 3c5d40402f
commit 241b480320
22 changed files with 997 additions and 877 deletions

View File

@@ -6,5 +6,8 @@ namespace Simian
public interface IParcelProvider
{
void SendParcelOverlay(Agent agent);
void UpdateParcel(Parcel parcel);
int GetParcelID(int x, int y);
bool TryGetParcel(int parcelID, out Parcel parcel);
}
}

View File

@@ -5,7 +5,11 @@ namespace Simian
{
public interface IPhysicsProvider
{
float TimeDilation { get; }
/// <summary>
/// Runs a single physics frame
/// </summary>
/// <param name="elapsedTime">The time since Update was called last</param>
void Update(float elapsedTime);
Vector3 ObjectCollisionTest(Vector3 rayStart, Vector3 rayEnd, SimulationObject obj);
bool TryGetObjectMass(UUID objectID, out float mass);

View File

@@ -87,6 +87,8 @@ namespace Simian
#endregion Scene related classes
#region Scene delegates
public delegate void ObjectAddOrUpdateCallback(object sender, SimulationObject obj, UUID ownerID, int scriptStartParam, PrimFlags creatorFlags, UpdateFlags updateFlags);
public delegate void ObjectRemoveCallback(object sender, SimulationObject obj);
public delegate void ObjectSetRotationAxisCallback(object sender, SimulationObject obj, Vector3 rotationAxis);
@@ -105,6 +107,8 @@ namespace Simian
public delegate void TerrainUpdateCallback(object sender, uint x, uint y, float[,] patchData);
public delegate void WindUpdateCallback(object sender, uint x, uint y, Vector2 windSpeed);
#endregion Scene delegates
public interface ISceneProvider
{
event ObjectAddOrUpdateCallback OnObjectAddOrUpdate;
@@ -144,13 +148,12 @@ namespace Simian
Vector3 DefaultLookAt { get; }
Vector3 DefaultPosition { get; }
IPEndPoint IPAndPort { get; set; }
float WaterHeight { get; }
uint TerrainPatchWidth { get; }
uint TerrainPatchHeight { get; }
uint TerrainPatchCountWidth { get; }
uint TerrainPatchCountHeight { get; }
float TimeDilation { get; }
bool Start(Simian server, RegionInfo regionInfo, X509Certificate2 regionCert, string defaultTerrainFile, int staticObjects, int physicalObjects);
void Stop();