diff options
author | Teravus Ovares (Dan Olivares) | 2009-08-15 13:10:21 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-08-15 13:10:21 -0400 |
commit | 30ce56e7219b3d2ed16acb322cecec781c3776c5 (patch) | |
tree | 3ab732fc9c8775a3fab0a705b4496ea21c1ab128 /OpenSim/Framework/AssetBase.cs | |
parent | * part one of adding physics combining (diff) | |
parent | * whoops, missing a / (diff) | |
download | opensim-SC_OLD-30ce56e7219b3d2ed16acb322cecec781c3776c5.zip opensim-SC_OLD-30ce56e7219b3d2ed16acb322cecec781c3776c5.tar.gz opensim-SC_OLD-30ce56e7219b3d2ed16acb322cecec781c3776c5.tar.bz2 opensim-SC_OLD-30ce56e7219b3d2ed16acb322cecec781c3776c5.tar.xz |
Merge branch 'master' of ssh://MyConnection/var/git/opensim
Diffstat (limited to 'OpenSim/Framework/AssetBase.cs')
-rw-r--r-- | OpenSim/Framework/AssetBase.cs | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index 614670c..9679ff2 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs | |||
@@ -31,10 +31,20 @@ using OpenMetaverse; | |||
31 | 31 | ||
32 | namespace OpenSim.Framework | 32 | namespace OpenSim.Framework |
33 | { | 33 | { |
34 | /// <summary> | ||
35 | /// Asset class. All Assets are reference by this class or a class derived from this class | ||
36 | /// </summary> | ||
34 | [Serializable] | 37 | [Serializable] |
35 | public class AssetBase | 38 | public class AssetBase |
36 | { | 39 | { |
40 | /// <summary> | ||
41 | /// Data of the Asset | ||
42 | /// </summary> | ||
37 | private byte[] m_data; | 43 | private byte[] m_data; |
44 | |||
45 | /// <summary> | ||
46 | /// Meta Data of the Asset | ||
47 | /// </summary> | ||
38 | private AssetMetadata m_metadata; | 48 | private AssetMetadata m_metadata; |
39 | 49 | ||
40 | public AssetBase() | 50 | public AssetBase() |
@@ -71,6 +81,9 @@ namespace OpenSim.Framework | |||
71 | 81 | ||
72 | } | 82 | } |
73 | 83 | ||
84 | /// <summary> | ||
85 | /// Checks if this asset is a binary or text asset | ||
86 | /// </summary> | ||
74 | public bool IsBinaryAsset | 87 | public bool IsBinaryAsset |
75 | { | 88 | { |
76 | get | 89 | get |
@@ -102,12 +115,17 @@ namespace OpenSim.Framework | |||
102 | set { m_data = value; } | 115 | set { m_data = value; } |
103 | } | 116 | } |
104 | 117 | ||
118 | /// <summary> | ||
119 | /// Asset UUID | ||
120 | /// </summary> | ||
105 | public UUID FullID | 121 | public UUID FullID |
106 | { | 122 | { |
107 | get { return m_metadata.FullID; } | 123 | get { return m_metadata.FullID; } |
108 | set { m_metadata.FullID = value; } | 124 | set { m_metadata.FullID = value; } |
109 | } | 125 | } |
110 | 126 | /// <summary> | |
127 | /// Asset MetaData ID (transferring from UUID to string ID) | ||
128 | /// </summary> | ||
111 | public string ID | 129 | public string ID |
112 | { | 130 | { |
113 | get { return m_metadata.ID; } | 131 | get { return m_metadata.ID; } |
@@ -126,18 +144,27 @@ namespace OpenSim.Framework | |||
126 | set { m_metadata.Description = value; } | 144 | set { m_metadata.Description = value; } |
127 | } | 145 | } |
128 | 146 | ||
147 | /// <summary> | ||
148 | /// (sbyte) AssetType enum | ||
149 | /// </summary> | ||
129 | public sbyte Type | 150 | public sbyte Type |
130 | { | 151 | { |
131 | get { return m_metadata.Type; } | 152 | get { return m_metadata.Type; } |
132 | set { m_metadata.Type = value; } | 153 | set { m_metadata.Type = value; } |
133 | } | 154 | } |
134 | 155 | ||
156 | /// <summary> | ||
157 | /// Is this a region only asset, or does this exist on the asset server also | ||
158 | /// </summary> | ||
135 | public bool Local | 159 | public bool Local |
136 | { | 160 | { |
137 | get { return m_metadata.Local; } | 161 | get { return m_metadata.Local; } |
138 | set { m_metadata.Local = value; } | 162 | set { m_metadata.Local = value; } |
139 | } | 163 | } |
140 | 164 | ||
165 | /// <summary> | ||
166 | /// Is this asset going to be saved to the asset database? | ||
167 | /// </summary> | ||
141 | public bool Temporary | 168 | public bool Temporary |
142 | { | 169 | { |
143 | get { return m_metadata.Temporary; } | 170 | get { return m_metadata.Temporary; } |