# sync-from-notion.ps1 Write-Host "============================================================" -ForegroundColor Cyan Write-Host "πŸ”„ Notion β†’ Excel β†’ C# 클래슀 톡합 동기화" -ForegroundColor Cyan Write-Host "============================================================" -ForegroundColor Cyan Write-Host "" # Python 확인 if (-not (Get-Command python -ErrorAction SilentlyContinue)) { Write-Host "❌ Python이 μ„€μΉ˜λ˜μ–΄ μžˆμ§€ μ•ŠμŠ΅λ‹ˆλ‹€." -ForegroundColor Red Write-Host "https://www.python.org μ—μ„œ μ„€μΉ˜ν•΄μ£Όμ„Έμš”." -ForegroundColor Yellow Write-Host "" pause exit 1 } # ===== 1. λ…Έμ…˜ β†’ Excel ===== Write-Host "1️⃣ λ…Έμ…˜ μŠ€ν‚€λ§ˆ β†’ Excel 동기화..." -ForegroundColor Yellow Write-Host "" Push-Location DataTools try { python sync_from_notion.py $exitCode1 = $LASTEXITCODE } catch { Write-Host "❌ μ‹€ν–‰ 쀑 였λ₯˜: $_" -ForegroundColor Red $exitCode1 = 1 } finally { Pop-Location } if ($exitCode1 -ne 0) { Write-Host "" Write-Host "❌ Excel 동기화 μ‹€νŒ¨!" -ForegroundColor Red Write-Host "" pause exit 1 } Write-Host "" Write-Host "βœ… Excel 동기화 μ™„λ£Œ" -ForegroundColor Green Write-Host "" # ===== 2. C# 클래슀 생성 ===== Write-Host "2️⃣ C# 클래슀 μžλ™ 생성..." -ForegroundColor Yellow Write-Host "" Push-Location DataTools try { python generate_csharp_classes.py $exitCode2 = $LASTEXITCODE } catch { Write-Host "❌ μ‹€ν–‰ 쀑 였λ₯˜: $_" -ForegroundColor Red $exitCode2 = 1 } finally { Pop-Location } if ($exitCode2 -ne 0) { Write-Host "" Write-Host "❌ C# 클래슀 생성 μ‹€νŒ¨!" -ForegroundColor Red Write-Host "" pause exit 1 } Write-Host "" Write-Host "βœ… C# 클래슀 생성 μ™„λ£Œ" -ForegroundColor Green Write-Host "" # ===== μ™„λ£Œ ===== Write-Host "============================================================" -ForegroundColor Green Write-Host "πŸŽ‰ λͺ¨λ“  μž‘μ—… μ™„λ£Œ!" -ForegroundColor Green Write-Host "============================================================" -ForegroundColor Green Write-Host "" Write-Host "πŸ“‹ λ‹€μŒ 단계:" -ForegroundColor Cyan Write-Host " 1. GameData ν΄λ”μ—μ„œ Excel 파일 확인" -ForegroundColor White Write-Host " 2. Excelμ—μ„œ 데이터 μˆ˜μ •" -ForegroundColor White Write-Host " 3. Unity μ—΄κΈ°" -ForegroundColor White Write-Host " 4. DigAndDefend β†’ Data Importer μ‹€ν–‰" -ForegroundColor White Write-Host " 5. ScriptableObject 생성 확인" -ForegroundColor White Write-Host "" pause