UNPKG

@phaserjs/phaser

Version:
12 lines (11 loc) 311 B
import { GetFirstChildID } from "./GetFirstChildID"; import { GetNextSiblingID } from "./GetNextSiblingID"; export function GetChildIDsFromParentID(id) { let next = GetFirstChildID(id); const output = []; while (next > 0) { output.push(next); next = GetNextSiblingID(next); } return output; }