Exemplo n.º 1
0
 private string GetEncryptoDungeonId(string dungeonId)
 {
     byte[] array;
     TypeSerializeHelper.DataToBytes <string>(dungeonId, out array);
     array = this.cryptoHelper.EncryptWithDES(array);
     return(Convert.ToBase64String(array));
 }
Exemplo n.º 2
0
 public IEnumerator Write(string filePath, string jsonText, Action <bool> onCompleted)
 {
     this.isException = false;
     byte[] binary = null;
     try
     {
         TypeSerializeHelper.DataToBytes <string>(jsonText, out binary);
     }
     catch
     {
     }
     return(this.fileControlHelper.Write(filePath, binary, delegate(Type exceptionType)
     {
         if (exceptionType != null)
         {
             this.isException = true;
             this.exceptionType = exceptionType;
         }
         if (!this.iCloudBackup)
         {
         }
         if (onCompleted != null)
         {
             onCompleted(!this.isException);
         }
     }));
 }
Exemplo n.º 3
0
 private byte[] MasterDataToBinary(WebAPI.ResponseData masterData)
 {
     byte[] result = null;
     try
     {
         TypeSerializeHelper.DataToBytes <WebAPI.ResponseData>(masterData, out result);
     }
     catch
     {
         global::Debug.LogWarning("MasterDataのSerializeでエラーが発生しました");
     }
     return(result);
 }