diff options
author | lbsa71 | 2009-04-08 19:59:37 +0000 |
---|---|---|
committer | lbsa71 | 2009-04-08 19:59:37 +0000 |
commit | e93b782f9d86e4049a28d7f90c691dc5d242f234 (patch) | |
tree | 892fcce074d5e5a817c0b14d2a5e4fefe1b692a9 /OpenSim/Framework/AssetBase.cs | |
parent | * Make it possible to store creator strings in user inventory items as well a... (diff) | |
download | opensim-SC_OLD-e93b782f9d86e4049a28d7f90c691dc5d242f234.zip opensim-SC_OLD-e93b782f9d86e4049a28d7f90c691dc5d242f234.tar.gz opensim-SC_OLD-e93b782f9d86e4049a28d7f90c691dc5d242f234.tar.bz2 opensim-SC_OLD-e93b782f9d86e4049a28d7f90c691dc5d242f234.tar.xz |
* Introduced some experimental code with regards to asset data substitution
Diffstat (limited to 'OpenSim/Framework/AssetBase.cs')
-rw-r--r-- | OpenSim/Framework/AssetBase.cs | 22 |
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; } |