예제 #1
0
 /// <summary>
 /// Computes the hash of the <see cref="NavigationSettings.Groups"/> field
 /// </summary>
 public static ObjectId ComputeGroupsHash(this NavigationSettings settings)
 {
     using (DigestStream stream = new DigestStream(Stream.Null))
     {
         BinarySerializationWriter writer = new BinarySerializationWriter(stream);
         writer.Write(settings.Groups);
         return(stream.CurrentHash);
     }
 }
예제 #2
0
        internal void InitializeSettingsFromNavigationSettings(NavigationSettings navigationSettings)
        {
            BuildSettings           = navigationSettings.BuildSettings;
            IncludedCollisionGroups = navigationSettings.IncludedCollisionGroups;
            Groups  = navigationSettings.Groups;
            Enabled = navigationSettings.EnableDynamicNavigationMesh;

            pendingRebuild = true;
        }