corrade-vassal – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | vero | 1 | /* |
2 | * Copyright (c) 2006-2014, openmetaverse.org |
||
3 | * All rights reserved. |
||
4 | * |
||
5 | * - Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions are met: |
||
7 | * |
||
8 | * - Redistributions of source code must retain the above copyright notice, this |
||
9 | * list of conditions and the following disclaimer. |
||
10 | * - Neither the name of the openmetaverse.org nor the names |
||
11 | * of its contributors may be used to endorse or promote products derived from |
||
12 | * this software without specific prior written permission. |
||
13 | * |
||
14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
||
15 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
||
16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
||
17 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
||
18 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
||
19 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
||
20 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
||
21 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
||
22 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
||
23 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||
24 | * POSSIBILITY OF SUCH DAMAGE. |
||
25 | */ |
||
26 | |||
27 | using System; |
||
28 | using System.Reflection; |
||
29 | using System.Collections.Generic; |
||
30 | |||
31 | namespace OpenMetaverse |
||
32 | { |
||
33 | /// <summary> |
||
34 | /// pre-defined built in sounds |
||
35 | /// </summary> |
||
36 | // From http://wiki.secondlife.com/wiki/Client_sounds |
||
37 | public static class Sounds |
||
38 | { |
||
39 | /// <summary></summary> |
||
40 | public readonly static UUID BELL_TING = new UUID(" ed124764-705d-d497-167a-182cd9fa2e6c"); |
||
41 | |||
42 | /// <summary></summary> |
||
43 | public readonly static UUID CLICK = new UUID("4c8c3c77-de8d-bde2-b9b8-32635e0fd4a6"); |
||
44 | |||
45 | /// <summary></summary> |
||
46 | public readonly static UUID HEALTH_REDUCTION_FEMALE = new UUID("219c5d93-6c09-31c5-fb3f-c5fe7495c115"); |
||
47 | |||
48 | /// <summary></summary> |
||
49 | public readonly static UUID HEALTH_REDUCTION_MALE = new UUID("e057c244-5768-1056-c37e-1537454eeb62"); |
||
50 | |||
51 | /// <summary></summary> |
||
52 | public readonly static UUID IM_START = new UUID("c825dfbc-9827-7e02-6507-3713d18916c1"); |
||
53 | |||
54 | /// <summary></summary> |
||
55 | public readonly static UUID INSTANT_MESSAGE_NOTIFICATION = new UUID("67cc2844-00f3-2b3c-b991-6418d01e1bb7"); |
||
56 | |||
57 | /// <summary></summary> |
||
58 | public readonly static UUID INVALID_OPERATION = new UUID("4174f859-0d3d-c517-c424-72923dc21f65"); |
||
59 | |||
60 | /// <summary></summary> |
||
61 | public readonly static UUID KEYBOARD_LOOP = new UUID("5e191c7b-8996-9ced-a177-b2ac32bfea06"); |
||
62 | |||
63 | /// <summary>coins</summary> |
||
64 | public readonly static UUID MONEY_REDUCTION_COINS = new UUID("77a018af-098e-c037-51a6-178f05877c6f"); |
||
65 | |||
66 | /// <summary>cash register bell</summary> |
||
67 | public readonly static UUID MONEY_INCREASE_CASH_REGISTER_BELL = new UUID("104974e3-dfda-428b-99ee-b0d4e748d3a3"); |
||
68 | |||
69 | /// <summary></summary> |
||
70 | public readonly static UUID NULL_KEYSTROKE = new UUID("2ca849ba-2885-4bc3-90ef-d4987a5b983a"); |
||
71 | |||
72 | /// <summary></summary> |
||
73 | public readonly static UUID OBJECT_COLLISION = new UUID("be582e5d-b123-41a2-a150-454c39e961c8"); |
||
74 | |||
75 | /// <summary>rubber</summary> |
||
76 | public readonly static UUID OBJECT_COLLISION_RUBBER = new UUID("212b6d1e-8d9c-4986-b3aa-f3c6df8d987d"); |
||
77 | |||
78 | /// <summary>plastic</summary> |
||
79 | public readonly static UUID OBJECT_COLLISION_PLASTIC = new UUID("d55c7f3c-e1c3-4ddc-9eff-9ef805d9190e"); |
||
80 | |||
81 | /// <summary>flesh</summary> |
||
82 | public readonly static UUID OBJECT_COLLISION_FLESH = new UUID("2d8c6f51-149e-4e23-8413-93a379b42b67"); |
||
83 | |||
84 | /// <summary>wood splintering?</summary> |
||
85 | public readonly static UUID OBJECT_COLLISION_WOOD_SPLINTERING = new UUID("6f00669f-15e0-4793-a63e-c03f62fee43a"); |
||
86 | |||
87 | /// <summary>glass break</summary> |
||
88 | public readonly static UUID OBJECT_COLLISION_GLASS_BREAK = new UUID("85cda060-b393-48e6-81c8-2cfdfb275351"); |
||
89 | |||
90 | /// <summary>metal clunk</summary> |
||
91 | public readonly static UUID OBJECT_COLLISION_METAL_CLUNK = new UUID("d1375446-1c4d-470b-9135-30132433b678"); |
||
92 | |||
93 | /// <summary>whoosh</summary> |
||
94 | public readonly static UUID OBJECT_CREATE_WHOOSH = new UUID("3c8fc726-1fd6-862d-fa01-16c5b2568db6"); |
||
95 | |||
96 | /// <summary>shake</summary> |
||
97 | public readonly static UUID OBJECT_DELETE_SHAKE = new UUID("0cb7b00a-4c10-6948-84de-a93c09af2ba9"); |
||
98 | |||
99 | /// <summary></summary> |
||
100 | public readonly static UUID OBJECT_REZ = new UUID("f4a0660f-5446-dea2-80b7-6482a082803c"); |
||
101 | |||
102 | /// <summary>ding</summary> |
||
103 | public readonly static UUID PIE_MENU_APPEAR_DING = new UUID("8eaed61f-92ff-6485-de83-4dcc938a478e"); |
||
104 | |||
105 | /// <summary></summary> |
||
106 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT = new UUID("d9f73cf8-17b4-6f7a-1565-7951226c305d"); |
||
107 | |||
108 | /// <summary></summary> |
||
109 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT1 = new UUID("f6ba9816-dcaf-f755-7b67-51b31b6233e5"); |
||
110 | |||
111 | /// <summary></summary> |
||
112 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT2 = new UUID("7aff2265-d05b-8b72-63c7-dbf96dc2f21f"); |
||
113 | |||
114 | /// <summary></summary> |
||
115 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT3 = new UUID("09b2184e-8601-44e2-afbb-ce37434b8ba1"); |
||
116 | |||
117 | /// <summary></summary> |
||
118 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT4 = new UUID("bbe4c7fc-7044-b05e-7b89-36924a67593c"); |
||
119 | |||
120 | /// <summary></summary> |
||
121 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT5 = new UUID("d166039b-b4f5-c2ec-4911-c85c727b016c"); |
||
122 | |||
123 | /// <summary></summary> |
||
124 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT6 = new UUID("242af82b-43c2-9a3b-e108-3b0c7e384981"); |
||
125 | |||
126 | /// <summary></summary> |
||
127 | public readonly static UUID PIE_MENU_SLICE_HIGHLIGHT7 = new UUID("c1f334fb-a5be-8fe7-22b3-29631c21cf0b"); |
||
128 | |||
129 | /// <summary></summary> |
||
130 | public readonly static UUID SNAPSHOT = new UUID("3d09f582-3851-c0e0-f5ba-277ac5c73fb4"); |
||
131 | |||
132 | /// <summary></summary> |
||
133 | public readonly static UUID TELEPORT_TEXTURE_APPLY = new UUID("d7a9a565-a013-2a69-797d-5332baa1a947"); |
||
134 | |||
135 | /// <summary></summary> |
||
136 | public readonly static UUID THUNDER = new UUID("e95c96a5-293c-bb7a-57ad-ce2e785ad85f"); |
||
137 | |||
138 | /// <summary></summary> |
||
139 | public readonly static UUID WINDOW_CLOSE = new UUID("2c346eda-b60c-ab33-1119-b8941916a499"); |
||
140 | |||
141 | /// <summary></summary> |
||
142 | public readonly static UUID WINDOW_OPEN = new UUID("c80260ba-41fd-8a46-768a-6bf236360e3a"); |
||
143 | |||
144 | /// <summary></summary> |
||
145 | public readonly static UUID ZIPPER = new UUID("6cf2be26-90cb-2669-a599-f5ab7698225f"); |
||
146 | |||
147 | |||
148 | /// <summary> |
||
149 | /// A dictionary containing all pre-defined sounds |
||
150 | /// </summary> |
||
151 | /// <returns>A dictionary containing the pre-defined sounds, |
||
152 | /// where the key is the sounds ID, and the value is a string |
||
153 | /// containing a name to identify the purpose of the sound</returns> |
||
154 | public static Dictionary<UUID, string> ToDictionary() |
||
155 | { |
||
156 | Dictionary<UUID, string> dict = new Dictionary<UUID, string>(); |
||
157 | Type type = typeof(Sounds); |
||
158 | foreach (FieldInfo field in type.GetFields(BindingFlags.Public | BindingFlags.Static)) |
||
159 | { |
||
160 | dict.Add((UUID)field.GetValue(type), field.Name); |
||
161 | } |
||
162 | return dict; |
||
163 | } |
||
164 | } |
||
165 | } |