diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Client/IClientCore.cs | 8 | ||||
-rw-r--r-- | OpenSim/Framework/IClientAPI2.cs | 86 |
2 files changed, 8 insertions, 86 deletions
diff --git a/OpenSim/Framework/Client/IClientCore.cs b/OpenSim/Framework/Client/IClientCore.cs new file mode 100644 index 0000000..41f8f4b --- /dev/null +++ b/OpenSim/Framework/Client/IClientCore.cs | |||
@@ -0,0 +1,8 @@ | |||
1 | namespace OpenSim.Framework.Client | ||
2 | { | ||
3 | public interface IClientCore | ||
4 | { | ||
5 | bool TryGet<T>(out T iface); | ||
6 | T Get<T>(); | ||
7 | } | ||
8 | } \ No newline at end of file | ||
diff --git a/OpenSim/Framework/IClientAPI2.cs b/OpenSim/Framework/IClientAPI2.cs deleted file mode 100644 index addd5d1..0000000 --- a/OpenSim/Framework/IClientAPI2.cs +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
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 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
28 | using System; | ||
29 | |||
30 | namespace OpenSim.Framework | ||
31 | { | ||
32 | #region Args Classes | ||
33 | public class ICA2_ConnectionArgs : EventArgs | ||
34 | { | ||
35 | |||
36 | } | ||
37 | |||
38 | public class ICA2_DisconnectionArgs : EventArgs | ||
39 | { | ||
40 | public bool Forced; | ||
41 | |||
42 | // Static Constructor | ||
43 | // Allows us to recycle these classes later more easily from a pool. | ||
44 | public static ICA2_DisconnectionArgs Create(bool forced) | ||
45 | { | ||
46 | ICA2_DisconnectionArgs tmp = new ICA2_DisconnectionArgs(); | ||
47 | tmp.Forced = forced; | ||
48 | |||
49 | return tmp; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | public class ICA2_PingArgs : EventArgs | ||
54 | { | ||
55 | } | ||
56 | |||
57 | public class ICA2_AvatarAppearanceArgs : EventArgs | ||
58 | { | ||
59 | } | ||
60 | |||
61 | public class ICA2_TerraformArgs : EventArgs | ||
62 | { | ||
63 | public double XMin; | ||
64 | public double XMax; | ||
65 | public double YMin; | ||
66 | public double YMax; | ||
67 | public Guid Action; | ||
68 | public double Strength; // 0 .. 1 | ||
69 | public double Radius; | ||
70 | } | ||
71 | #endregion | ||
72 | |||
73 | public delegate void ICA2_OnTerraformDelegate(IClientAPI2 sender, ICA2_TerraformArgs e); | ||
74 | |||
75 | public interface IClientAPI2 | ||
76 | { | ||
77 | // Connect / Disconnect | ||
78 | void Connect(ICA2_ConnectionArgs e); | ||
79 | void Disconnect(ICA2_DisconnectionArgs e); | ||
80 | void Ping(ICA2_PingArgs e); | ||
81 | |||
82 | void SendAvatarAppearance(ICA2_AvatarAppearanceArgs e); | ||
83 | |||
84 | event ICA2_OnTerraformDelegate OnTerraform; | ||
85 | } | ||
86 | } | ||