コード例 #1
0
    public static Hash128 GetHash128(this SceneBundleInfo info)
    {
        StreamHasher hasher = new StreamHasher();

        HashingHelpers.WriteHashData(info, hasher.Writer);
        return(hasher.GetHash());
    }
コード例 #2
0
 internal static void WriteHashData(SceneBundleInfo info, BinaryWriter writer)
 {
     if (info != null)
     {
         writer.Write(info.bundleName ?? string.Empty);
         if (info.bundleScenes != null)
         {
             foreach (SceneLoadInfo sli in info.bundleScenes)
             {
                 WriteHashData(sli, writer);
             }
         }
     }
 }
 public SceneBundleWriteOperation(SceneBundleWriteOperation other) : base(other)
 {
     // Notes: May want to switch to MemberwiseClone, for now those this is fine
     m_Info = other.m_Info;
 }