2023-07-28 03:24:00 +03:00
|
|
|
|
using BattleBitAPI;
|
|
|
|
|
using BattleBitAPI.Common;
|
2023-03-03 23:00:54 +03:00
|
|
|
|
using BattleBitAPI.Server;
|
2023-07-30 19:31:06 +03:00
|
|
|
|
using BattleBitAPI.Storage;
|
2023-07-28 03:24:00 +03:00
|
|
|
|
using System.Numerics;
|
2023-03-03 15:15:17 +03:00
|
|
|
|
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2023-07-28 03:24:00 +03:00
|
|
|
|
var listener = new ServerListener<MyPlayer>();
|
2023-08-01 22:11:52 +03:00
|
|
|
|
listener.OnGameServerTick += OnGameServerTick;
|
2023-07-28 03:24:00 +03:00
|
|
|
|
listener.Start(29294);//Port
|
|
|
|
|
Thread.Sleep(-1);
|
2023-03-03 15:15:17 +03:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-01 22:11:52 +03:00
|
|
|
|
private static async Task OnGameServerTick(GameServer server)
|
2023-03-03 15:15:17 +03:00
|
|
|
|
{
|
2023-08-01 22:11:52 +03:00
|
|
|
|
//server.Settings.SpectatorEnabled = !server.Settings.SpectatorEnabled;
|
|
|
|
|
//server.MapRotation.AddToRotation("DustyDew");
|
|
|
|
|
//server.MapRotation.AddToRotation("District");
|
|
|
|
|
//server.GamemodeRotation.AddToRotation("CONQ");
|
|
|
|
|
//server.ForceEndGame();
|
2023-03-03 15:15:17 +03:00
|
|
|
|
}
|
2023-07-28 03:24:00 +03:00
|
|
|
|
}
|
|
|
|
|
class MyPlayer : Player
|
|
|
|
|
{
|
2023-08-01 22:11:52 +03:00
|
|
|
|
|
2023-07-28 03:24:00 +03:00
|
|
|
|
}
|