aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AssetBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/AssetBase.cs')
-rw-r--r--OpenSim/Framework/AssetBase.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs
index 5c311c0..03b6ea8 100644
--- a/OpenSim/Framework/AssetBase.cs
+++ b/OpenSim/Framework/AssetBase.cs
@@ -49,6 +49,28 @@ namespace OpenSim.Framework
49 m_metadata.Name = name; 49 m_metadata.Name = name;
50 } 50 }
51 51
52 public bool IsTextualAsset
53 {
54 get
55 {
56 return !IsBinaryAsset;
57 }
58
59 }
60
61 public bool IsBinaryAsset
62 {
63 get
64 {
65 return
66 Type == (sbyte) AssetType.Animation ||
67 Type == (sbyte) AssetType.Gesture ||
68 Type == (sbyte) AssetType.ImageJPEG ||
69 Type == (sbyte) AssetType.ImageTGA ||
70 Type == (sbyte) AssetType.LSLBytecode ||;
71 }
72 }
73
52 public virtual byte[] Data 74 public virtual byte[] Data
53 { 75 {
54 get { return m_data; } 76 get { return m_data; }