aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AssetBase.cs
diff options
context:
space:
mode:
authorSean Dague2008-04-04 18:14:00 +0000
committerSean Dague2008-04-04 18:14:00 +0000
commitf010d398cfedded42441c28489aaaf8f4d569c27 (patch)
tree41df1082da41d41a8e8e053a4b2adc94628770d2 /OpenSim/Framework/AssetBase.cs
parent* Make objects appear in 1.19.1.4 inventory again (diff)
downloadopensim-SC_OLD-f010d398cfedded42441c28489aaaf8f4d569c27.zip
opensim-SC_OLD-f010d398cfedded42441c28489aaaf8f4d569c27.tar.gz
opensim-SC_OLD-f010d398cfedded42441c28489aaaf8f4d569c27.tar.bz2
opensim-SC_OLD-f010d398cfedded42441c28489aaaf8f4d569c27.tar.xz
make AssetBase use Properties instead of fields. This probably
breaks compatibility on grid ops because native serialization is used here.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AssetBase.cs61
1 files changed, 53 insertions, 8 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs
index 864db10..ab09ac3 100644
--- a/OpenSim/Framework/AssetBase.cs
+++ b/OpenSim/Framework/AssetBase.cs
@@ -33,14 +33,14 @@ namespace OpenSim.Framework
33 [Serializable] 33 [Serializable]
34 public class AssetBase 34 public class AssetBase
35 { 35 {
36 public byte[] Data; 36 private byte[] _data;
37 public LLUUID FullID; 37 private LLUUID _fullid;
38 public sbyte Type; 38 private sbyte _type;
39 public sbyte InvType; 39 private sbyte _invtype;
40 public string Name = String.Empty; 40 private string _name = String.Empty;
41 public string Description = String.Empty; 41 private string _description = String.Empty;
42 public bool Local = false; 42 private bool _local = false;
43 public bool Temporary = false; 43 private bool _temporary = false;
44 44
45 public AssetBase() 45 public AssetBase()
46 { 46 {
@@ -51,5 +51,50 @@ namespace OpenSim.Framework
51 FullID = assetId; 51 FullID = assetId;
52 Name = name; 52 Name = name;
53 } 53 }
54
55 public virtual LLUUID FullID {
56 get { return _fullid; }
57 set { _fullid = value; }
58 }
59
60 public virtual string ID {
61 get { return _fullid.ToString(); }
62 set { _fullid = new LLUUID(value); }
63 }
64
65 public virtual byte[] Data {
66 get { return _data; }
67 set { _data = value; }
68 }
69
70 public virtual sbyte Type {
71 get { return _type; }
72 set { _type = value; }
73 }
74
75 public virtual sbyte InvType {
76 get { return _invtype; }
77 set { _invtype = value; }
78 }
79
80 public virtual string Name {
81 get { return _name; }
82 set { _name = value; }
83 }
84
85 public virtual string Description {
86 get { return _description; }
87 set { _description = value; }
88 }
89
90 public virtual bool Local {
91 get { return _local; }
92 set { _local = value; }
93 }
94
95 public virtual bool Temporary {
96 get { return _temporary; }
97 set { _temporary = value; }
98 }
54 } 99 }
55} 100}