How windy10v10ai/game works
Windy10v10AI is a PvE Dota 2 custom game. During play, bot heroes make combat, ability, item, and team decisions while game systems modify units and handle events; the Panorama client presents game and player-facing features. The repository also includes profile, daily-task, membership/payment, shop, and lottery interfaces alongside server APIs and gameplay analytics. Edges are limited to relationships visible in the supplied excerpts, SOURCE INDEX references, or README; unsampled runtime wiring is left unconnected or marked unverified.
Main entry points: ProfilePage.tsx Player Profile · AI.ts Bot AI · PageRouter.tsx Page Router · useAlipayOrder.ts Alipay Orders
Components 29
Gameplay AI
- Bot AI
src/vscripts/ai/AI.ts - Team Strategy
src/vscripts/ai/team/team-brain.ts - Hero Behavior
src/vscripts/ai/hero/bot-base.ts - Ability Logic
src/vscripts/ai/ability/ability-spec.ts - Cast Conditions
src/vscripts/ai/action/cast-condition.ts - Item Builds
src/vscripts/ai/build-item/bot-build-manager.ts
Game Systems
- Game Modules
src/vscripts/modules/index.ts - Kill Events
src/vscripts/modules/event/event-entity-killed.ts - Creep Buffs
src/vscripts/modules/event/game-in-progress/creep-buff-manager.ts - Hero Properties
src/vscripts/modules/property/property_controller.ts
Panorama UI
- Lottery HUD
src/panorama/react/hud_lottery/Lottery.tsx - Main HUD
src/panorama/react/hud_main/HudMain.tsx - Page Navigation
src/panorama/react/hud_main/store/NavigationContext.tsx - Page Router
src/panorama/react/hud_main/router/PageRouter.tsx - Player Profile
src/panorama/react/hud_main/pages/profile/ProfilePage.tsx - Awaken Features
src/panorama/react/hud_main/pages/profile/tabs/AwakenTab.tsx - Daily Tasks
src/panorama/react/hud_main/pages/profile/tabs/dailytask/DailyTaskTab.tsx - Membership
src/panorama/react/hud_main/pages/profile/tabs/member/MemberTab.tsx - Alipay Orders
src/panorama/react/hud_main/pages/profile/tabs/member/alipay/useAlipayOrder.ts - In-Game Shop
src/panorama/react/hud_main/pages/shop/ShopPage.tsx - Net Table Hook
src/panorama/react/shared/hooks/useNetTable.ts - Offline State
src/panorama/react/shared/hooks/useDataOffline.ts
APIs and Analytics
- API Client
src/vscripts/api/api-client.ts - API Routes
src/vscripts/api/api-route.ts - Alipay Service
src/vscripts/api/alipay.ts - Game Analytics
src/vscripts/api/analytics/ga4/ga4.ts
Shared Contracts
- Shared Events
src/common/events.d.ts - Shared Net Tables
src/common/net_tables.d.ts
Other components
- Dota Player
Connections 22
- Dota Player → Main HUD: uses
- Page Navigation → Page Router: selects page
src/panorama/react/hud_main/router/PageRouter.tsx - Page Router → Player Profile: renders
src/panorama/react/hud_main/router/PageRouter.tsx - Page Router → In-Game Shop: renders
src/panorama/react/hud_main/router/PageRouter.tsx - Player Profile → Awaken Features: renders tab
src/panorama/react/hud_main/pages/profile/ProfilePage.tsx - Player Profile → Daily Tasks: renders tab
src/panorama/react/hud_main/pages/profile/ProfilePage.tsx - Player Profile → Membership: renders tab
src/panorama/react/hud_main/pages/profile/ProfilePage.tsx - Membership → Alipay Orders: uses order hook
- Alipay Orders → Net Table Hook: subscribes
src/panorama/react/hud_main/pages/profile/tabs/member/alipay/useAlipayOrder.ts - Player Profile → Net Table Hook: reads player data
src/panorama/react/hud_main/pages/profile/ProfilePage.tsx - Offline State → Net Table Hook: reads status
src/panorama/react/shared/hooks/useDataOffline.ts - API Client → API Routes: selects target
src/vscripts/api/api-client.ts - Alipay Orders → Alipay Service: sends order events
- Bot AI → Team Strategy: coordinates
- Bot AI → Hero Behavior: controls
- Bot AI → Ability Logic: dispatches abilities
- Ability Logic → Cast Conditions: checks casts
src/vscripts/ai/ability/ability-spec.ts - Bot AI → Item Builds: manages purchases
- Game Modules → Kill Events: registers modules
- Kill Events → Creep Buffs: tracks tower status
src/vscripts/modules/event/game-in-progress/creep-buff-manager.ts - Game Modules → Hero Properties: initializes
- Dota Player → Bot AI: plays against