File size: 1,140 Bytes
de0d85f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | // Copyright Epic Games, Inc.All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EpicGame;
using Gauntlet;
namespace LyraTest
{
public class LyraTestConfig : EpicGameTestConfig
{
[AutoParam]
public int TargetNumOfCycledMatches = 2;
[AutoParam]
public bool WithPacketHandlerEncryption = false;
public override void ApplyToConfig(UnrealAppConfig AppConfig, UnrealSessionRole ConfigRole, IEnumerable<UnrealSessionRole> OtherRoles)
{
base.ApplyToConfig(AppConfig, ConfigRole, OtherRoles);
if (AppConfig.ProcessType.IsClient())
{
AppConfig.CommandLine += string.Format(" -TargetNumOfCycledMatches={0}", TargetNumOfCycledMatches);
}
if (WithPacketHandlerEncryption)
{
AppConfig.CommandLine += " -ini:Engine:[PacketHandlerComponents]:EncryptionComponent=AESGCMHandlerComponent -execcmds=\"Lyra.TestEncryption true\"";
}
const float InitTime = 120.0f;
const float MatchTime = 300.0f;
MaxDuration = InitTime + (MatchTime * TargetNumOfCycledMatches);
}
}
}
|