param()

trap
{
    Write-Host "An error occurred"
    Write-Host $_
    Write-Host $_.Exception.StackTrace
    exit 1
}

$ErrorActionPreference = 'Stop'

cd $PSScriptRoot\..
$root = Get-Location

Write-Host "Compiling assets..."
cd $root\SuperBallBrawlers.Content\assets
# TODO: MSBuild here?
..\..\Protobuild.exe --execute ProtogameAssetTool -o ..\compiled -p Windows
exit $LastExitCode