Files
libremetaverse/libsecondlife-cs/AssetSystem/Asset.cs
Michael Cortez 81d6670494 + Fixed a few issues with the Assets and Inventory systems
+ Renamed my utils class, and added unix time to it
+ Fixed the On_Chat event, it was assuming an old packet format

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@222 52acb1d6-8a22-11de-b505-999d5b087335
2006-09-26 20:10:37 +00:00

56 lines
1000 B
C#

using System;
using libsecondlife;
using libsecondlife.Utils;
namespace libsecondlife.AssetSystem
{
/// <summary>
/// Summary description for Asset.
/// </summary>
public class Asset
{
public const sbyte ASSET_TYPE_NOTECARD = 7;
public const sbyte ASSET_TYPE_IMAGE = 0;
public LLUUID AssetID;
public sbyte Type;
public bool Tempfile;
private byte[] assetdata;
public byte[] AssetData
{
get { return assetdata; }
set
{
assetdata = value;
}
}
public Asset(LLUUID assetID, sbyte type, bool tempfile, byte[] assetData)
{
AssetID = assetID;
Type = (sbyte)type;
Tempfile = tempfile;
AssetData = assetData;
}
public Asset(LLUUID assetID, sbyte type, byte[] assetData)
{
AssetID = assetID;
Type = (sbyte)type;
Tempfile = false;
AssetData = assetData;
}
public string AssetDataToString()
{
return MiscUtils.ByteArrayToString((byte[])AssetData);
}
}
}