aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Main.cs
diff options
context:
space:
mode:
authorgareth2007-03-02 22:17:39 +0000
committergareth2007-03-02 22:17:39 +0000
commitcb55056e3bb0d34e51d8efa60cb8ef82484af900 (patch)
tree5bc1a97e7f8c1629dd99433c0751a77159fc3555 /src/Main.cs
parentr105 somehow got put in wrong place, so replacing files (diff)
downloadopensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.zip
opensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.tar.gz
opensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.tar.bz2
opensim-SC-cb55056e3bb0d34e51d8efa60cb8ef82484af900.tar.xz
Began implementing basic physics engine plugin framework
Diffstat (limited to '')
-rw-r--r--src/Main.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.cs b/src/Main.cs
index 6075035..146d837 100644
--- a/src/Main.cs
+++ b/src/Main.cs
@@ -50,7 +50,6 @@ namespace OpenSim
50 public static SimConfig cfg; 50 public static SimConfig cfg;
51 public static World local_world; 51 public static World local_world;
52 private static Thread MainListener; 52 private static Thread MainListener;
53 private static Thread PingRespponder;
54 public static Socket Server; 53 public static Socket Server;
55 private static IPEndPoint ServerIncoming; 54 private static IPEndPoint ServerIncoming;
56 private static byte[] RecvBuffer = new byte[4096]; 55 private static byte[] RecvBuffer = new byte[4096];
@@ -68,7 +67,7 @@ namespace OpenSim
68 sim = new OpenSim_Main(); 67 sim = new OpenSim_Main();
69 sim.Startup(); 68 sim.Startup();
70 while(true) { 69 while(true) {
71 Thread.Sleep(1000); 70 local_world.DoStuff();
72 } 71 }
73 } 72 }
74 73
@@ -91,6 +90,8 @@ namespace OpenSim
91 MainListener = new Thread(new ThreadStart(MainServerListener)); 90 MainListener = new Thread(new ThreadStart(MainServerListener));
92 MainListener.Start(); 91 MainListener.Start();
93 92
93 Console.WriteLine("Main.cs:Startup() - Starting up main world loop");
94 local_world.InitLoop();
94 } 95 }
95 96
96 private void OnReceivedData(IAsyncResult result) { 97 private void OnReceivedData(IAsyncResult result) {