[Simian]
* Completed a partial port of OpenSim's LSL API. Thank you to everyone on the OpenSim team for their hard work on this incredibly large feature * Added Agent.GetSimulatorPosition() * Corrected default PrimFlags for agents and prims * Stubs for encoding/decoding prim linkset assets * Route chat through the scene * Stub for grid messaging (IM and email) * Add GetTerrainHeightAt(), removed duplicate heightmap storage in Movement.cs * Added a permissions manager stub * Store wind speeds, added functions to get wind speed * Make sure all of the important prim properties are set before creating an object * Lots of new object manipulation functions in scene * Properly clean up event queues on agent exit * Stubbed out a space for a scripting engine * Stubbed out task inventory * Added ScriptingConsole, which allows you to run LSL functions from the chat console * Added new PacketCategory, Messaging, for chat-related packets * Fixed InventoryObject overrides * Added a NotecardCache, useful for the scripting engine and may become generally useful later * Added several helper functions and new members to SimulationObject git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2462 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -41,6 +41,28 @@ namespace Simian
|
||||
{
|
||||
return ID.GetHashCode();
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is InventoryObject))
|
||||
return false;
|
||||
|
||||
InventoryObject o = (InventoryObject)obj;
|
||||
return o.ID == ID;
|
||||
}
|
||||
|
||||
public static bool operator ==(InventoryObject lhs, InventoryObject rhs)
|
||||
{
|
||||
if ((object)lhs == null)
|
||||
return (object)rhs == null;
|
||||
else
|
||||
return lhs.Equals(rhs);
|
||||
}
|
||||
|
||||
public static bool operator !=(InventoryObject lhs, InventoryObject rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -87,30 +109,6 @@ namespace Simian
|
||||
(uint)Permissions.OwnerMask);
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return ID.GetHashCode();
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is InventoryItem))
|
||||
return false;
|
||||
|
||||
InventoryItem o = (InventoryItem)obj;
|
||||
return o.ID == ID;
|
||||
}
|
||||
|
||||
public static bool operator ==(InventoryItem lhs, InventoryItem rhs)
|
||||
{
|
||||
return lhs.Equals(rhs);
|
||||
}
|
||||
|
||||
public static bool operator !=(InventoryItem lhs, InventoryItem rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -150,5 +148,12 @@ namespace Simian
|
||||
}
|
||||
}
|
||||
|
||||
public class InventoryTaskItem : InventoryItem
|
||||
{
|
||||
public UUID ParentObjectID;
|
||||
public UUID PermissionGranter;
|
||||
public uint GrantedPermissions;
|
||||
}
|
||||
|
||||
#endregion Inventory Item Containers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user