* Added OpenMetaverse.Messages.Linden and OpenMetaverse.Messages.Simian namespaces to hold LLSD serialized messages. The dawn of a new era for libomv!

* Changing LLSD JSON serialization to match the draft at http://tools.ietf.org/html/draft-hamrick-llsd-00 (first breaking change since 0.6.0)
* Moving some enums out to OpenMetaverseTypes.dll
* Adding conversion methods to go to and from the newly moved enums
* Moved Parcel enums out to the main namespace

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2588 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-04-09 01:17:40 +00:00
parent e615e15b73
commit f48c9922e9
13 changed files with 1256 additions and 489 deletions

View File

@@ -902,6 +902,16 @@ namespace OpenMetaverse.StructuredData
this.value = new List<OSD>();
}
public override byte[] AsBinary()
{
byte[] binary = new byte[value.Count];
for (int i = 0; i < value.Count; i++)
binary[i] = (byte)value[i].AsInteger();
return binary;
}
public override Vector2 AsVector2()
{
Vector2 vector = Vector2.Zero;