public CommandDescription(string _command, string _command_args, string _description_small, User.PermissionLevel permission, CommandExecuter.CommandFunction _callback)
 {
     command = _command.ToLower();
     command_args = _command_args;
     description_small = _description_small;
     description_Long = string.Empty;
     this.permission = permission;
     callback = _callback;
 }
Beispiel #2
0
 /// <summary>
 /// Start server.
 /// </summary>
 public void Run()
 {
     Logger.Log("War World Infinity Server Version {0}", Version);
     Settings    = new AppSettings(_directory + "Settings.ini");
     _taskQueue  = new TaskQueue();
     CommandExec = new CommandExecuter();
     //SocketPolicyServer.LoadAll();
     SockServ     = new WebSockServer(AppSettings.ServerPort);
     _netCommands = new NetworkCommands();
     DB           = new DataBase(AppSettings.DbServer, AppSettings.Database);
     DB.Connect(AppSettings.DbUsername, AppSettings.DbPassword);
     Worlds            = new WorldManager(this);
     Structures        = new StructureControl();
     Chat              = new ChatProcessor();
     Users             = new UserManager();
     autoSaver         = new AutoSave();
     FCounter          = new FrameCounter();
     Alliances         = new AllianceManager();
     Squads            = new SquadController();
     Noise2D.RunAsync += TaskQueue.QeueAsync;
     _tickThread       = new Thread(CommandExec.StartCommandLoop);
     _tickThread.Start();
     GameLoop();
 }