IEncryptionServices.cs 669 B

12345678910111213141516171819202122232425262728293031323334
  1. 
  2. namespace YooAsset
  3. {
  4. public struct EncryptResult
  5. {
  6. /// <summary>
  7. /// 文件是否加密
  8. /// </summary>
  9. public bool Encrypted;
  10. /// <summary>
  11. /// 加密后的文件数据
  12. /// </summary>
  13. public byte[] EncryptedData;
  14. }
  15. public struct EncryptFileInfo
  16. {
  17. /// <summary>
  18. /// 资源包名称
  19. /// </summary>
  20. public string BundleName;
  21. /// <summary>
  22. /// 文件路径
  23. /// </summary>
  24. public string FileLoadPath;
  25. }
  26. public interface IEncryptionServices
  27. {
  28. EncryptResult Encrypt(EncryptFileInfo fileInfo);
  29. }
  30. }