make AssetBase use Properties instead of fields. This probably

breaks compatibility on grid ops because native serialization is
used here.
0.6.0-stable
Sean Dague 2008-04-04 18:14:00 +00:00
parent f5ed635750
commit f010d398cf
1 changed files with 53 additions and 8 deletions

View File

@ -33,14 +33,14 @@ namespace OpenSim.Framework
[Serializable] [Serializable]
public class AssetBase public class AssetBase
{ {
public byte[] Data; private byte[] _data;
public LLUUID FullID; private LLUUID _fullid;
public sbyte Type; private sbyte _type;
public sbyte InvType; private sbyte _invtype;
public string Name = String.Empty; private string _name = String.Empty;
public string Description = String.Empty; private string _description = String.Empty;
public bool Local = false; private bool _local = false;
public bool Temporary = false; private bool _temporary = false;
public AssetBase() public AssetBase()
{ {
@ -51,5 +51,50 @@ namespace OpenSim.Framework
FullID = assetId; FullID = assetId;
Name = name; Name = name;
} }
public virtual LLUUID FullID {
get { return _fullid; }
set { _fullid = value; }
}
public virtual string ID {
get { return _fullid.ToString(); }
set { _fullid = new LLUUID(value); }
}
public virtual byte[] Data {
get { return _data; }
set { _data = value; }
}
public virtual sbyte Type {
get { return _type; }
set { _type = value; }
}
public virtual sbyte InvType {
get { return _invtype; }
set { _invtype = value; }
}
public virtual string Name {
get { return _name; }
set { _name = value; }
}
public virtual string Description {
get { return _description; }
set { _description = value; }
}
public virtual bool Local {
get { return _local; }
set { _local = value; }
}
public virtual bool Temporary {
get { return _temporary; }
set { _temporary = value; }
}
} }
} }