Ejemplo n.º 1
0
 public void SetCompleted(bool completed, bool recursive)
 {
     if (recursive)
     {
         foreach (World world in InnerWorldsMap.Values)
         {
             world.SetCompleted(completed, true);
         }
     }
     WorldStorage.SetCompleted(this, completed);
 }
Ejemplo n.º 2
0
        public void SetCompleted(bool completed, bool recursive)
        {
            if (recursive)
            {
                foreach (World world in InnerWorldsMap.Values)
                {
                    world.SetCompleted(completed, true);
                }
            }

            // keep current completed state
            bool alreadyCompleted = IsCompleted();

            WorldStorage.SetCompleted(this, completed);

            if (!alreadyCompleted && completed && (ParentWorld != null))
            {
                ParentWorld.NotifyInnerWorldFirstCompleted(this);
            }
        }