static void Main(string[] args) { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); SocketServer server = new SocketServer(); LoadCache("iRaidDatamodel.Entities"); PreLoad(); server.Start(); stopwatch.Stop(); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("Server started in: {0}s.", Math.Round((double)stopwatch.ElapsedMilliseconds / 1000, 2)); Console.WriteLine(""); Console.ForegroundColor = ConsoleColor.Gray; PoRK porkservice = new PoRK(); porkservice.Start(); PoRK.UserLookup("Dochere"); PoRK.OrganizationLookup(500); bool run = true; while (run) { Console.ForegroundColor = ConsoleColor.DarkYellow; Console.Write("Type help for available commands: "); Console.ForegroundColor = ConsoleColor.DarkCyan; string cmd = Console.ReadLine(); Console.ForegroundColor = ConsoleColor.Gray; switch (cmd.ToLower()) { case "help": Help(); break; case "exit": run = false; break; case "entities": Cached("iRaidDatamodel.Entities"); break; case "server stop": server.Stop(); break; case "server start": server.Start(); break; case "stats": Stats(server); break; default: break; } } }
public void FriendEvent(string Name, long Id, bool Online) { //Console.WriteLine("{0,-10}: {1,-15} ({2})", Id, Name, Online); PoRK.CharacterEvent(Name, Id, Online); }