feat(bunsik): MVP 전체 구현 — 맵, 요리·서빙, 손님 NPC, 업그레이드 20개, 세이브, 결제, 한/영 UI

- Shop.luau: 손님·주문·조리·서빙·구매 순수 로직(lune 단위 테스트, 시뮬레이터 공용)
- 서버: World(부지 6칸), PlotBuilder(파트 모형), PlotController, Npc(트윈 이동), Data(ProfileStore), Receipts(결제 1회 = 지급 1회), Game
- 클라이언트: Hud(돈·다음 업그레이드·목록·결제·언어·튜토리얼), 내 조리대 전용 버튼, 튜토리얼 화살표, 주인 전용 테스트 버튼
- 2단계 업그레이드 10개 추가, 파이썬 시뮬레이터를 실제 로직 기반 tools/sim.luau로 교체
- tools/cloud.py: 업로드, 원격 Luau 실행, 게임패스·개발자 상품 생성, 서버 인원 설정
- tests/cloud/integration.luau: 로블록스 서버 통합 테스트 514개 통과
- check.sh에 luau-lsp 타입 검사 추가, ProfileStore 고정 버전 포함

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-12 01:34:06 +09:00
parent 060974e277
commit 802ba10e1a
45 changed files with 6997 additions and 202 deletions

View File

@@ -0,0 +1,127 @@
--!strict
-- 화면 글자(한국어·영어). 키가 없으면 키 이름을 그대로 보여 줘서 빠진 번역이 바로 보입니다.
local Locale = {}
local STRINGS: { [string]: { [string]: string } } = {
ko = {
title = "분식집 타이쿤",
money = "{money}원",
shop = "업그레이드",
buy = "사기",
bought = "완료",
locked = "잠김",
notEnough = "돈이 {need}원 더 필요해요",
maxed = "모든 업그레이드를 샀어요! 2호점은 다음 업데이트에서 열려요",
stage1 = "1단계 · 포장마차",
stage2 = "2단계 · 실내 분식집",
next = "다음",
close = "닫기",
language = "English",
cookAction = "{menu} 만들기",
cookWait = "손님 기다리는 중",
cookHandFull = "손이 꽉 찼어요",
stoveObject = "조리대",
tut1 = "손님이 왔어요! 빛나는 조리대로 가서 버튼을 꾹 누르세요",
tut2 = "다 만들었어요! 접시를 손님 자리로 가져가세요",
tut3 = "돈을 벌었어요! 아래 [사기] 버튼으로 테이블을 사세요",
tutDone = "잘했어요! 계속 손님을 받고 가게를 키워 보세요",
double = "2배 수익",
doubleOwned = "2배 수익 적용 중",
doubleDesc = "모든 판매 금액이 영원히 2배",
boost = "돈 부스트",
boostDesc = "지금 매출 10분치 {amount}원 즉시 받기",
boostGot = "돈 부스트 {amount}원을 받았어요!",
purchased = "{name} 구매 완료!",
expanded = "실내 분식집으로 확장했어요! 새 업그레이드가 열렸어요",
plotOwner = "{name}의 분식집",
plotEmpty = "빈 가게 자리",
helperNote = "알바생이 요리 중! 카운터에서 접시를 가져가세요",
saveFail = "저장된 데이터를 불러오지 못했어요. 다시 접속해 주세요",
visitor = "다른 친구의 가게예요",
devTitle = "개발자 테스트",
devMoney = "+1,000원",
devDouble = "2배 켜기/끄기",
devReset = "처음부터",
devResetDone = "진행을 처음으로 되돌렸어요",
},
en = {
title = "Bunsik Tycoon",
money = "₩{money}",
shop = "Upgrades",
buy = "Buy",
bought = "Done",
locked = "Locked",
notEnough = "Need ₩{need} more",
maxed = "All upgrades bought! Shop #2 opens in the next update",
stage1 = "Stage 1 · Street Stall",
stage2 = "Stage 2 · Indoor Shop",
next = "Next",
close = "Close",
language = "한국어",
cookAction = "Cook {menu}",
cookWait = "Waiting for customers",
cookHandFull = "Hands are full",
stoveObject = "Stove",
tut1 = "A customer is here! Go to the glowing stove and hold the button",
tut2 = "Done! Bring the dish to the customer's seat",
tut3 = "You earned money! Tap [Buy] at the bottom to get a table",
tutDone = "Great job! Keep serving and grow your shop",
double = "Double Money",
doubleOwned = "Double Money active",
doubleDesc = "All sales are doubled forever",
boost = "Money Boost",
boostDesc = "Get 10 minutes of sales (₩{amount}) now",
boostGot = "Money Boost: +₩{amount}!",
purchased = "{name} bought!",
expanded = "Your shop moved indoors! New upgrades unlocked",
plotOwner = "{name}'s Bunsik Shop",
plotEmpty = "Empty lot",
helperNote = "Your helper is cooking! Grab dishes from the counter",
saveFail = "Couldn't load your save. Please rejoin",
visitor = "This is a friend's shop",
devTitle = "Dev test",
devMoney = "+₩1,000",
devDouble = "Toggle x2",
devReset = "Reset",
devResetDone = "Progress reset",
},
}
Locale.LANGS = { "ko", "en" }
function Locale.pick(localeId: string): string
if string.sub(string.lower(localeId), 1, 2) == "ko" then
return "ko"
end
return "en"
end
function Locale.t(lang: string, key: string, args: { [string]: any }?): string
local tbl = STRINGS[lang] or STRINGS.en
local s = tbl[key] or STRINGS.en[key] or key
if args then
s = string.gsub(s, "{(%w+)}", function(k)
local v = args[k]
return if v ~= nil then tostring(v) else "{" .. k .. "}"
end)
end
return s
end
function Locale.keys(lang: string): { string }
local out = {}
for k in STRINGS[lang] do
table.insert(out, k)
end
return out
end
-- 숫자에 천 단위 쉼표
function Locale.number(n: number): string
local s = tostring(math.floor(n))
local out = string.reverse((string.gsub(string.reverse(s), "(%d%d%d)", "%1,")))
return (string.gsub(out, "^(-?),", "%1"))
end
return Locale