How projectasakura/bayshore works
Bayshore reimplements the Wangan Midnight Maximum Tune 6 server. A game client’s protobuf requests enter the service listener, are dispatched to domain modules, which implement user/card, terminal, race and ghost/OCM behavior and persist game state. ALL.Net startup and Mucha board/update emulation are separate protocol-facing services. The README identifies the product but does not enumerate capabilities; the source index and excerpts support the principal branches shown. Several modules are unsampled, so their internal call relationships are omitted.
Main entry points: game.ts Game dispatch · index.ts HTTP service · ghost.ts Ghost gameplay · terminal.ts Terminal services
Components 32
Protocol entry
- HTTP service
src/index.ts - ALL.Net startup
src/allnet.ts - Mucha board/update
src/mucha.ts
Player services
- User accounts
src/modules/users.ts - Car management
src/modules/cars/functions.ts - Car tuning
src/modules/cars/car_tune.ts - Terminal services
src/modules/terminal.ts - Scratch rewards
src/modules/terminal/scratch.ts - Game startup
src/modules/startup/functions.ts - Meter rewards
src/modules/util/meter_reward.ts
Racing features
- Game dispatch
src/modules/game.ts - Game operations
src/modules/game/functions.ts - Story mode
src/modules/game/story.ts - Time attack
src/modules/game/time_attack.ts - Versus mode
src/modules/game/versus.ts - Rankings
src/modules/resource/ranking.ts - Crown list
src/modules/resource/crown_list.ts
Ghost features
- Ghost gameplay
src/modules/game/ghost.ts - Ghost services
src/modules/ghost.ts - Ghost operations
src/modules/ghost/functions.ts - Ghost history
src/modules/ghost/ghost_history.ts - OCM competition
src/modules/ghost/ghost_ocm.ts - Area selection
src/modules/ghost/ghost_util/ghost_area.ts - Path area lookup
src/modules/ghost/ghost_util/ghost_get_area_from_path.ts - OCM area lookup
src/modules/ghost/ghost_util/ghost_ocm_area.ts - Ghost trail
src/modules/ghost/ghost_util/ghost_trail.ts
Shared runtime
- Runtime config
src/config.ts - Protocol definitions
src/wmmt/wm.proto.js - Service protocol
src/wmmt/service.proto.js - Response utilities
src/modules/util/common.ts - Game database
Other components
- Game client
Connections 30
- Game client → HTTP service: sends requests
src/index.ts - HTTP service → ALL.Net startup: registers protocol
src/index.ts - HTTP service → Mucha board/update: registers protocol
src/index.ts - HTTP service → Runtime config: loads settings
src/index.ts - HTTP service → Game database: initializes client
src/index.ts - ALL.Net startup → Runtime config: reads settings
src/allnet.ts - ALL.Net startup → Response utilities: sanitizes inputs
src/allnet.ts - Mucha board/update → Runtime config: reads settings
src/mucha.ts - Game dispatch → Game operations: calls operations
src/modules/game.ts - Game dispatch → Story mode: dispatches mode
src/modules/game.ts - Game dispatch → Time attack: dispatches mode
src/modules/game.ts - Game dispatch → Ghost gameplay: dispatches mode
src/modules/game.ts - Game dispatch → Versus mode: dispatches mode
src/modules/game.ts - Ghost gameplay → Ghost history: saves results
src/modules/game/ghost.ts - Ghost history → Path area lookup: resolves area
src/modules/ghost/ghost_history.ts - Ghost services → Ghost operations: calls operations
src/modules/ghost.ts - Ghost services → Ghost trail: uses trail utility
src/modules/ghost.ts - Ghost trail → OCM area lookup: resolves competition area
src/modules/ghost/ghost_util/ghost_trail.ts - Ghost trail → Area selection: resolves ghost area
src/modules/ghost/ghost_util/ghost_trail.ts - Terminal services → Scratch rewards: uses scratch sheets
src/modules/terminal.ts - Terminal services → Game database: reads and writes
src/modules/terminal.ts - Ghost gameplay → Game database: updates race state
src/modules/game/ghost.ts - Ghost history → Game database: records battles
src/modules/ghost/ghost_history.ts - OCM competition → Game database: tallies competition
src/modules/ghost/ghost_ocm.ts - Scratch rewards → Game database: stores reward sheets
src/modules/terminal/scratch.ts - Terminal services → Protocol definitions: decodes requests
src/modules/terminal.ts - Ghost gameplay → Protocol definitions: uses messages
src/modules/game/ghost.ts - Ghost services → Service protocol: uses service messages
src/modules/ghost.ts - Rankings → Service protocol: uses service messages
src/modules/resource/ranking.ts - Crown list → Service protocol: uses service messages
src/modules/resource/crown_list.ts