diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-15 15:10:04 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-15 15:10:04 +0200 |
commit | 0007e50506ebaa61554bfd11e98581dada7e0cdd (patch) | |
tree | cf0064a7a165c602fb89ffa15993b3db69cef751 /db/animations.php | |
parent | 8ab8988d01199f64151c532c59ff6c08735d4e37 (diff) |
animations!!
Diffstat (limited to 'db/animations.php')
-rw-r--r-- | db/animations.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/animations.php b/db/animations.php new file mode 100644 index 0000000..8e3decc --- /dev/null +++ b/db/animations.php @@ -0,0 +1,13 @@ +<?php + +$animations = []; +foreach (scandir(dirname(__DIR__) . '/modules/tuxemon/mods/tuxemon/animations/technique') as $file) { + if (in_array($file, ['.', '..'])) continue; + + $animationFileName = pathinfo($file, PATHINFO_FILENAME); + $animationName = substr($animationFileName, 0, -3); + + $animations[$animationName][] = $animationFileName; +} + +file_put_contents(__DIR__ . '/animations.json', json_encode($animations)); |