diff --git a/plugins/default/typescript/typescriptAPI/Sup.Actor.d.ts.txt b/plugins/default/typescript/typescriptAPI/Sup.Actor.d.ts.txt index c89201dca..84b004f2f 100644 --- a/plugins/default/typescript/typescriptAPI/Sup.Actor.d.ts.txt +++ b/plugins/default/typescript/typescriptAPI/Sup.Actor.d.ts.txt @@ -1,14 +1,16 @@ declare namespace Sup { function getActor(name: string): Actor; function getRootActors(): Actor[]; - // This is relatively expensive. If it's possible, use walkActorTree() instead. + + // This is relatively expensive. If it's possible, use traverseActors() instead. function getAllActors(): Actor[]; + function destroyAllActors(): void; // The callback should return whether to keep traversing. // Return false to stop the loop to have better performance. - function walkActorTree(callback: (actor: Actor) => boolean): void; - function walkActorTree(startActor: Actor, callback: (actor: Actor) => boolean): void; + function traverseActors(callback: (actor: Actor) => boolean): void; + function traverseActors(startActor: Actor, callback: (actor: Actor) => boolean): void; class Actor { // INSERT_COMPONENT_ACCESSORS diff --git a/plugins/default/typescript/typescriptAPI/Sup.Actor.ts.txt b/plugins/default/typescript/typescriptAPI/Sup.Actor.ts.txt index 9c419b463..1019b08c4 100644 --- a/plugins/default/typescript/typescriptAPI/Sup.Actor.ts.txt +++ b/plugins/default/typescript/typescriptAPI/Sup.Actor.ts.txt @@ -31,7 +31,7 @@ namespace Sup { player.gameInstance.tree.walkTopDown((actor) => { actor.__outer.__inner = null; actor.__outer = null; return true; }); } - export function walkActorTree(startActor, callback) { + export function traverseActors(startActor, callback) { if (callback == null) { callback = startActor; player.gameInstance.tree.walkTopDown((actor) => {