Exemplo n.º 1
0
        internal void InitializeSettingsFromNavigationSettings(NavigationSettings navigationSettings)
        {
            BuildSettings           = navigationSettings.BuildSettings;
            IncludedCollisionGroups = navigationSettings.IncludedCollisionGroups;
            Groups  = navigationSettings.Groups;
            Enabled = navigationSettings.EnableDynamicNavigationMesh;

            pendingRebuild = true;
        }
 /// <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);
     }
 }