aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorAdam Frisby2008-05-12 20:50:38 +0000
committerAdam Frisby2008-05-12 20:50:38 +0000
commit56e5dc49f9ad9562e6dde058715f1f818e458980 (patch)
tree4a672c8619b321159f0617466a8ab4d5ce1fd350 /OpenSim
parent* Added some build warnings for Teravus. :) (diff)
downloadopensim-SC_OLD-56e5dc49f9ad9562e6dde058715f1f818e458980.zip
opensim-SC_OLD-56e5dc49f9ad9562e6dde058715f1f818e458980.tar.gz
opensim-SC_OLD-56e5dc49f9ad9562e6dde058715f1f818e458980.tar.bz2
opensim-SC_OLD-56e5dc49f9ad9562e6dde058715f1f818e458980.tar.xz
* Committing sample IClientAPI2.cs
* This is not functional anywhere, but is a incomplete proposed replacement class for IClientAPI. Assistance filling this out would be appreciated. Use IClientAPI.cs as a reference, but make sure not to copy it - instead rewrite and abstract.
Diffstat (limited to 'OpenSim')
-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}