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

@@ -1,3 +1,42 @@
-- 클라이언트 진입점: 화면 UI, 내 조리대 버튼, 튜토리얼 화살표.
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
print(`[Bunsik] client ready for {Players.LocalPlayer.Name}`)
local Guide = require(script.Parent.Guide)
local Hud = require(script.Parent.Hud)
local Stove = require(script.Parent.Stove)
local player = Players.LocalPlayer
local remotes = ReplicatedStorage:WaitForChild("Remotes")
local action = remotes:WaitForChild("Action") :: RemoteEvent
local notifyRemote = remotes:WaitForChild("Notify") :: RemoteEvent
local function send(kind: string, arg: any?)
action:FireServer(kind, arg)
end
-- 서버가 세이브를 불러오고 부지를 줄 때까지 기다립니다.
while not player:GetAttribute("Ready") do
player:GetAttributeChangedSignal("Ready"):Wait()
end
local hud = Hud.build(player:WaitForChild("PlayerGui"), player, send)
local camera = workspace.CurrentCamera
local function rescale()
hud.setScale(Hud.scaleFor(camera.ViewportSize))
end
camera:GetPropertyChangedSignal("ViewportSize"):Connect(rescale)
rescale()
notifyRemote.OnClientEvent:Connect(function(key, args)
if typeof(key) == "string" then
hud.notify(key, if typeof(args) == "table" then args else nil)
end
end)
local plotIndex = player:GetAttribute("Plot")
local world = workspace:WaitForChild("BunsikWorld")
local plot = world:WaitForChild("Plots"):WaitForChild("Plot" .. tostring(plotIndex))
local stove = plot:WaitForChild("Base"):WaitForChild("Stall"):WaitForChild("Stove") :: BasePart
Stove.attach(stove, player, send)
Guide.start(player)