aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/IClientAPI2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/IClientAPI2.cs')
-rw-r--r--OpenSim/Framework/IClientAPI2.cs59
1 files changed, 59 insertions, 0 deletions
diff --git a/OpenSim/Framework/IClientAPI2.cs b/OpenSim/Framework/IClientAPI2.cs
new file mode 100644
index 0000000..1ae7894
--- /dev/null
+++ b/OpenSim/Framework/IClientAPI2.cs
@@ -0,0 +1,59 @@
1using System;
2
3namespace OpenSim.Framework
4{
5 #region Args Classes
6 public class ICA2_ConnectionArgs : EventArgs
7 {
8
9 }
10
11 public class ICA2_DisconnectionArgs : EventArgs
12 {
13 public bool Forced;
14
15 // Static Constructor
16 // Allows us to recycle these classes later more easily from a pool.
17 public static ICA2_DisconnectionArgs Create(bool forced)
18 {
19 ICA2_DisconnectionArgs tmp = new ICA2_DisconnectionArgs();
20 tmp.Forced = forced;
21
22 return tmp;
23 }
24 }
25
26 public class ICA2_PingArgs : EventArgs
27 {
28 }
29
30 public class ICA2_AvatarAppearanceArgs : EventArgs
31 {
32 }
33
34 public class ICA2_TerraformArgs : EventArgs
35 {
36 public double XMin;
37 public double XMax;
38 public double YMin;
39 public double YMax;
40 public Guid Action;
41 public double Strength; // 0 .. 1
42 public double Radius;
43 }
44 #endregion
45
46 public delegate void ICA2_OnTerraformDelegate(IClientAPI2 sender, ICA2_TerraformArgs e);
47
48 public interface IClientAPI2
49 {
50 // Connect / Disconnect
51 void Connect(ICA2_ConnectionArgs e);
52 void Disconnect(ICA2_DisconnectionArgs e);
53 void Ping(ICA2_PingArgs e);
54
55 void SendAvatarAppearance(ICA2_AvatarAppearanceArgs e);
56
57 event ICA2_OnTerraformDelegate OnTerraform;
58 }
59}