2025-05-21 09:23:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Obfuz.Settings
|
|
|
|
|
{
|
2025-05-23 12:47:57 +08:00
|
|
|
|
public class ConstEncryptionSettingsFacade
|
|
|
|
|
{
|
|
|
|
|
public int encryptionLevel;
|
|
|
|
|
public List<string> ruleFiles;
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-21 09:23:29 +08:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class ConstEncryptionSettings
|
|
|
|
|
{
|
|
|
|
|
[Tooltip("The encryption level for the obfuscation. Higher levels provide more security but may impact performance.")]
|
|
|
|
|
[Range(1, 4)]
|
|
|
|
|
public int encryptionLevel = 1;
|
|
|
|
|
|
|
|
|
|
[Tooltip("config xml files")]
|
|
|
|
|
public string[] ruleFiles;
|
2025-05-23 12:47:57 +08:00
|
|
|
|
|
|
|
|
|
public ConstEncryptionSettingsFacade ToFacade()
|
|
|
|
|
{
|
|
|
|
|
return new ConstEncryptionSettingsFacade
|
|
|
|
|
{
|
2025-06-21 08:27:45 +08:00
|
|
|
|
ruleFiles = ruleFiles?.ToList() ?? new List<string>(),
|
2025-05-23 12:47:57 +08:00
|
|
|
|
encryptionLevel = encryptionLevel,
|
|
|
|
|
};
|
|
|
|
|
}
|
2025-05-21 09:23:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|