diff options
author | Melanie | 2010-04-19 07:00:40 +0100 |
---|---|---|
committer | Melanie | 2010-04-19 07:00:40 +0100 |
commit | 98cb4f74b265dfb8ca3eb8c8d3ad604249398df1 (patch) | |
tree | 1339d3707430a20662bdcd3eb4e9ef86abc6a4fd /OpenSim/Framework/SLUtil.cs | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | All scripts are now created suspended and are only unsuspended when the object (diff) | |
download | opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.zip opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.tar.gz opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.tar.bz2 opensim-SC-98cb4f74b265dfb8ca3eb8c8d3ad604249398df1.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/SLUtil.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Framework/SLUtil.cs b/OpenSim/Framework/SLUtil.cs index f6d6a7c..a489806 100644 --- a/OpenSim/Framework/SLUtil.cs +++ b/OpenSim/Framework/SLUtil.cs | |||
@@ -106,6 +106,39 @@ namespace OpenSim.Framework | |||
106 | } | 106 | } |
107 | } | 107 | } |
108 | 108 | ||
109 | public static string SLInvTypeToContentType(int invType) | ||
110 | { | ||
111 | switch ((InventoryType)invType) | ||
112 | { | ||
113 | case InventoryType.Animation: | ||
114 | return "application/vnd.ll.animation"; | ||
115 | case InventoryType.CallingCard: | ||
116 | return "application/vnd.ll.callingcard"; | ||
117 | case InventoryType.Folder: | ||
118 | return "application/vnd.ll.folder"; | ||
119 | case InventoryType.Gesture: | ||
120 | return "application/vnd.ll.gesture"; | ||
121 | case InventoryType.Landmark: | ||
122 | return "application/vnd.ll.landmark"; | ||
123 | case InventoryType.LSL: | ||
124 | return "application/vnd.ll.lsltext"; | ||
125 | case InventoryType.Notecard: | ||
126 | return "application/vnd.ll.notecard"; | ||
127 | case InventoryType.Attachment: | ||
128 | case InventoryType.Object: | ||
129 | return "application/vnd.ll.primitive"; | ||
130 | case InventoryType.Sound: | ||
131 | return "application/ogg"; | ||
132 | case InventoryType.Snapshot: | ||
133 | case InventoryType.Texture: | ||
134 | return "image/x-j2c"; | ||
135 | case InventoryType.Wearable: | ||
136 | return "application/vnd.ll.clothing"; | ||
137 | default: | ||
138 | return "application/octet-stream"; | ||
139 | } | ||
140 | } | ||
141 | |||
109 | public static sbyte ContentTypeToSLAssetType(string contentType) | 142 | public static sbyte ContentTypeToSLAssetType(string contentType) |
110 | { | 143 | { |
111 | switch (contentType) | 144 | switch (contentType) |