public void MAINTENANCE_ENTER() { SMSG_MAINTENANCEENTER spkt = new SMSG_MAINTENANCEENTER(); this.Send((byte[])spkt); }
//Sub function for enforced updates protected void Maintenance_Force(string[] args) { if (args.Length < 3) { Console.WriteLine("Wrong argument count"); return; } string q = args[2].ToUpperInvariant(); if (q == "-ENTER") { if (Saga.Managers.NetworkService.InterNetwork.IsConnected == true) { SMSG_MAINTENANCEENTER spkt = new SMSG_MAINTENANCEENTER(); spkt.SessionId = uint.MaxValue; Saga.Managers.NetworkService.InterNetwork.Send((byte[])spkt); } } else if (q == "-RELEASE") { if (Saga.Managers.NetworkService.InterNetwork.IsConnected == true) { SMSG_MAINTENANCELEAVE spkt = new SMSG_MAINTENANCELEAVE(); spkt.SessionId = uint.MaxValue; Saga.Managers.NetworkService.InterNetwork.Send((byte[])spkt); } } else { Console.WriteLine("Expected -force or -release switch"); } }