aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AssetBase.cs
diff options
context:
space:
mode:
authorlbsa712009-04-09 16:45:22 +0000
committerlbsa712009-04-09 16:45:22 +0000
commitd2a412e94bf3ef1e332d44b7106c606f26b1636b (patch)
treeba7535b2a55edf538e067d7ac72a1ee55943215e /OpenSim/Framework/AssetBase.cs
parent* Moved the DatabaseTestAttribute to Test.Common, and thus included ref to th... (diff)
downloadopensim-SC_OLD-d2a412e94bf3ef1e332d44b7106c606f26b1636b.zip
opensim-SC_OLD-d2a412e94bf3ef1e332d44b7106c606f26b1636b.tar.gz
opensim-SC_OLD-d2a412e94bf3ef1e332d44b7106c606f26b1636b.tar.bz2
opensim-SC_OLD-d2a412e94bf3ef1e332d44b7106c606f26b1636b.tar.xz
* Added some more experimental code; nothing wired in so far.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AssetBase.cs31
1 files changed, 28 insertions, 3 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs
index 8e7e059..4e43cb7 100644
--- a/OpenSim/Framework/AssetBase.cs
+++ b/OpenSim/Framework/AssetBase.cs
@@ -49,6 +49,19 @@ namespace OpenSim.Framework
49 m_metadata.Name = name; 49 m_metadata.Name = name;
50 } 50 }
51 51
52 public bool ContainsReferences
53 {
54 get
55 {
56 return
57 IsTextualAsset && (
58 Type != (sbyte)AssetType.Notecard
59 && Type != (sbyte)AssetType.CallingCard
60 && Type != (sbyte)AssetType.LSLText
61 && Type != (sbyte)AssetType.Landmark);
62 }
63 }
64
52 public bool IsTextualAsset 65 public bool IsTextualAsset
53 { 66 {
54 get 67 get
@@ -62,10 +75,22 @@ namespace OpenSim.Framework
62 { 75 {
63 get 76 get
64 { 77 {
65 return 78 return
66 (Type == (sbyte) AssetType.Animation || 79 (Type == (sbyte) AssetType.Animation ||
67 Type == (sbyte) AssetType.Gesture || 80 Type == (sbyte)AssetType.Gesture ||
68 Type == (sbyte) AssetType.ImageJPEG || 81 Type == (sbyte)AssetType.Simstate ||
82 Type == (sbyte)AssetType.Unknown ||
83 Type == (sbyte)AssetType.Object ||
84 Type == (sbyte)AssetType.Sound ||
85 Type == (sbyte)AssetType.SoundWAV ||
86 Type == (sbyte)AssetType.Texture ||
87 Type == (sbyte)AssetType.TextureTGA ||
88 Type == (sbyte)AssetType.Folder ||
89 Type == (sbyte)AssetType.RootFolder ||
90 Type == (sbyte)AssetType.LostAndFoundFolder ||
91 Type == (sbyte)AssetType.SnapshotFolder ||
92 Type == (sbyte)AssetType.TrashFolder ||
93 Type == (sbyte)AssetType.ImageJPEG ||
69 Type == (sbyte) AssetType.ImageTGA || 94 Type == (sbyte) AssetType.ImageTGA ||
70 Type == (sbyte) AssetType.LSLBytecode); 95 Type == (sbyte) AssetType.LSLBytecode);
71 } 96 }