コード例 #1
0
            /// <inheritdoc />
            public override void ItemsToDelete(HashSet <ItemForDeletion> items)
            {
                if (Type == DeletionType.Remove)
                {
                    // actor named variables can be used at other actors
                    foreach (NamedVariable variable in actor.Scripting.Variables)
                    {
                        (new ConsistentDeletionHelper.ScriptNamedVariableForDeletion(variable)
                        {
                            Type = DeletionType.Remove
                        }).ItemsToDelete(items);
                    }

                    // actor can be used at the scripting
                    ConsistentDeletionHelper.DeleteFromScripting(Scripting.VariableType.Actor, actor, items);

                    // the same checking for the children
                    foreach (Actor child in actor.Children)
                    {
                        (new ConsistentDeletionHelper.ActorForDeletion(child)
                        {
                            Type = DeletionType.Remove
                        }).ItemsToDelete(items);
                    }
                }
            }
コード例 #2
0
 /// <inheritdoc />
 public override void ItemsToDelete(HashSet <ItemForDeletion> items)
 {
     if (Type == DeletionType.Remove)
     {
         // named variable can be used at the scripting
         ConsistentDeletionHelper.DeleteFromScripting(namedVariable, items);
     }
 }
コード例 #3
0
 /// <inheritdoc />
 public override void ItemsToDelete(HashSet <ItemForDeletion> items)
 {
     if (Type == DeletionType.Remove)
     {
         // path can be used at the scripting
         ConsistentDeletionHelper.DeleteFromScripting(Scripting.VariableType.Path, path, items);
     }
 }
コード例 #4
0
 /// <inheritdoc />
 public override void ItemsToDelete(HashSet <ItemForDeletion> items)
 {
     if (Type == DeletionType.Remove)
     {
         // actor type can be used at actors
         ConsistentDeletionHelper.DeleteFromActors(actorType, items);
         // actor type can be used at the scripting
         ConsistentDeletionHelper.DeleteFromScripting(Scripting.VariableType.ActorType, actorType, items);
     }
 }
コード例 #5
0
 /// <inheritdoc />
 public override void ItemsToDelete(HashSet <ItemForDeletion> items)
 {
     if (Type == DeletionType.Remove)
     {
         // sound can be used at the scripting as Sound
         ConsistentDeletionHelper.DeleteFromScripting(Scripting.VariableType.Sound, sound, items);
         // sound can be used at the scripting as Song
         ConsistentDeletionHelper.DeleteFromScripting(Scripting.VariableType.Song, sound, items);
     }
 }
コード例 #6
0
 /// <inheritdoc />
 public override void ItemsToDelete(HashSet <ItemForDeletion> items)
 {
     if (Type == DeletionType.Remove)
     {
         // texture can be used at animations
         ConsistentDeletionHelper.DeleteFromAnimations(texture, items);
         // texture can be used at actors
         ConsistentDeletionHelper.DeleteFromActors(texture, items);
         // texture can be used at the scripting
         ConsistentDeletionHelper.DeleteFromScripting(Scripting.VariableType.Texture, texture, items);
     }
 }