I Decompiled C# and VB.NET Code ... and RunUO
Code of RunUO ...
[STAThread]
public static void Main(string[] args) {
TimerThread local0;
MessagePump local1;
AppDomain.CurrentDomain.add_UnhandledException(new UnhandledExceptionEventHandler(null, Core.CurrentDomain_UnhandledException));
AppDomain.CurrentDomain.add_ProcessExit(new EventHandler(null, Core.CurrentDomain_ProcessExit));
if (Core.BaseDirectory.Length > 0)
Directory.SetCurrentDirectory(Core.BaseDirectory);
local0 = new TimerThread();
Core.timerThread = new Thread(new ThreadStart(local0, TimerMain));
Core.timerThread.Name = "Timer Thread";
if (!(ScriptCompiler.Compile())) {
Console.WriteLine("Scripts: One or more scripts failed to compile");
Console.WriteLine(" - Press return to exit");
Console.ReadLine();
}
else {
Region.Load();
local1 = new MessagePump(new Listener());
Core.timerThread.Start();
Map.Felucca.Tiles.Force();
Map.Trammel.Tiles.Force();
Map.Ilshenar.Tiles.Force();
while (true) {
Thread.Sleep(1);
Mobile.ProcessDeltaQueue();
Item.ProcessDeltaQueue();
Timer.Slice();
local1.Slice();
NetState.ProcessDisposedQueue();
}
}
}
For Example...
I have it a great deal time ago before the first Beta