feat: Added methods for writing out the metadata about the atlas elements

misc: Refactoring
This commit is contained in:
Stefan Stefanov 2024-08-30 12:32:57 +03:00
parent 82ee56ef03
commit 178b0d5525
5 changed files with 233 additions and 155 deletions

2
.vscode/launch.json vendored
View file

@ -6,7 +6,7 @@
"request": "launch",
"preLaunchTask": "Build Debug",
"name": "Debug",
"program": "${workspaceFolder}/game_debug.exe",
"program": "${workspaceFolder}/build/game_debug.exe",
"args": [],
"cwd": "${workspaceFolder}"
},

167
.vscode/tasks.json vendored
View file

@ -3,97 +3,90 @@
"command": "",
"args": [],
"tasks": [
{
"label": "Build Debug",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_debug.bat",
},
"linux": {
"command": "${workspaceFolder}/scripts/build_debug.sh",
},
"osx": {
"command": "${workspaceFolder}/scripts/build_debug.sh",
},
"group": {
"kind": "build",
"isDefault": false
},
{
"label": "Build Debug",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_debug.bat"
},
{
"label": "Build Release",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_release.bat",
},
"linux": {
"command": "${workspaceFolder}/scripts/build_release.sh",
},
"osx": {
"command": "${workspaceFolder}/scripts/build_release.sh",
},
"group": "build"
"linux": {
"command": "${workspaceFolder}/scripts/build_debug.sh"
},
{
"label": "Clean build folder(s)",
"type": "shell",
"windows": {
"command": "cd ${workspaceFolder}\\build && rm game*; cd ${workspaceFolder} && rm aseprite_odin_generator*",
},
// "linux": {
// "command": "${workspaceFolder}/scripts/build_release.sh",
// },
// "osx": {
// "command": "${workspaceFolder}/scripts/build_release.sh",
// },
"group": "build"
"osx": {
"command": "${workspaceFolder}/scripts/build_debug.sh"
},
{
"label": "Build Hot Reload",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_hot_reload.bat; start game.exe",
},
"linux": {
"command": "${workspaceFolder}/scripts/build_hot_reload.sh",
},
"osx": {
"command": "${workspaceFolder}/scripts/build_hot_reload.sh",
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"group": {
"kind": "build",
"isDefault": false
},
"group": {
"kind": "build",
"isDefault": true
},
{
"label": "Build&Run Atlas Generator Test",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_generator_debug.bat && build_generator\\aseprite_odin_generator.exe -input-files:value_of_custom_arg -h",
},
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Build Release",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_release.bat"
},
"linux": {
"command": "${workspaceFolder}/scripts/build_release.sh"
},
"osx": {
"command": "${workspaceFolder}/scripts/build_release.sh"
},
"group": "build"
},
{
"label": "Clean build folder(s)",
"type": "shell",
"windows": {
"command": "cd ${workspaceFolder}\\build && rm game*; cd ${workspaceFolder} && rm aseprite_odin_generator*"
},
"group": "build"
},
{
"label": "Build Hot Reload",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_hot_reload.bat; start game.exe"
},
"linux": {
"command": "${workspaceFolder}/scripts/build_hot_reload.sh"
},
"osx": {
"command": "${workspaceFolder}/scripts/build_hot_reload.sh"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"group": "build",
"problemMatcher": []
},
{
"label": "Build&Run Atlas Generator Test",
"type": "shell",
"windows": {
"command": "${workspaceFolder}/scripts/build_generator_debug.bat && build_generator\\aseprite_odin_generator.exe -input-files:value_of_custom_arg -h"
},
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"group": {
"kind": "build",
"isDefault": false
}
}
]
}