aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AssetBase.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-29 14:04:55 +0000
committerAdam Frisby2008-04-29 14:04:55 +0000
commit375163a6fece8b3a57c7555246abe8338223a599 (patch)
tree163001ca96a4b4d08589e9772f78510677d5d0dc /OpenSim/Framework/AssetBase.cs
parentPatch from Melanie: 0001087: Crash to bash de-linking objects. Thanks Melanie! (diff)
downloadopensim-SC_OLD-375163a6fece8b3a57c7555246abe8338223a599.zip
opensim-SC_OLD-375163a6fece8b3a57c7555246abe8338223a599.tar.gz
opensim-SC_OLD-375163a6fece8b3a57c7555246abe8338223a599.tar.bz2
opensim-SC_OLD-375163a6fece8b3a57c7555246abe8338223a599.tar.xz
* Spring cleaning.
* Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AssetBase.cs37
1 files changed, 23 insertions, 14 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs
index ab09ac3..29d996b 100644
--- a/OpenSim/Framework/AssetBase.cs
+++ b/OpenSim/Framework/AssetBase.cs
@@ -34,13 +34,13 @@ namespace OpenSim.Framework
34 public class AssetBase 34 public class AssetBase
35 { 35 {
36 private byte[] _data; 36 private byte[] _data;
37 private string _description = String.Empty;
37 private LLUUID _fullid; 38 private LLUUID _fullid;
38 private sbyte _type;
39 private sbyte _invtype; 39 private sbyte _invtype;
40 private string _name = String.Empty;
41 private string _description = String.Empty;
42 private bool _local = false; 40 private bool _local = false;
41 private string _name = String.Empty;
43 private bool _temporary = false; 42 private bool _temporary = false;
43 private sbyte _type;
44 44
45 public AssetBase() 45 public AssetBase()
46 { 46 {
@@ -52,49 +52,58 @@ namespace OpenSim.Framework
52 Name = name; 52 Name = name;
53 } 53 }
54 54
55 public virtual LLUUID FullID { 55 public virtual LLUUID FullID
56 {
56 get { return _fullid; } 57 get { return _fullid; }
57 set { _fullid = value; } 58 set { _fullid = value; }
58 } 59 }
59 60
60 public virtual string ID { 61 public virtual string ID
62 {
61 get { return _fullid.ToString(); } 63 get { return _fullid.ToString(); }
62 set { _fullid = new LLUUID(value); } 64 set { _fullid = new LLUUID(value); }
63 } 65 }
64 66
65 public virtual byte[] Data { 67 public virtual byte[] Data
68 {
66 get { return _data; } 69 get { return _data; }
67 set { _data = value; } 70 set { _data = value; }
68 } 71 }
69 72
70 public virtual sbyte Type { 73 public virtual sbyte Type
74 {
71 get { return _type; } 75 get { return _type; }
72 set { _type = value; } 76 set { _type = value; }
73 } 77 }
74 78
75 public virtual sbyte InvType { 79 public virtual sbyte InvType
80 {
76 get { return _invtype; } 81 get { return _invtype; }
77 set { _invtype = value; } 82 set { _invtype = value; }
78 } 83 }
79 84
80 public virtual string Name { 85 public virtual string Name
86 {
81 get { return _name; } 87 get { return _name; }
82 set { _name = value; } 88 set { _name = value; }
83 } 89 }
84 90
85 public virtual string Description { 91 public virtual string Description
92 {
86 get { return _description; } 93 get { return _description; }
87 set { _description = value; } 94 set { _description = value; }
88 } 95 }
89 96
90 public virtual bool Local { 97 public virtual bool Local
98 {
91 get { return _local; } 99 get { return _local; }
92 set { _local = value; } 100 set { _local = value; }
93 } 101 }
94 102
95 public virtual bool Temporary { 103 public virtual bool Temporary
104 {
96 get { return _temporary; } 105 get { return _temporary; }
97 set { _temporary = value; } 106 set { _temporary = value; }
98 } 107 }
99 } 108 }
100} 109} \ No newline at end of file