/// <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); } } }
/// <inheritdoc /> public override void ItemsToDelete(HashSet <ItemForDeletion> items) { if (Type == DeletionType.Remove) { // named variable can be used at the scripting ConsistentDeletionHelper.DeleteFromScripting(namedVariable, items); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }