// Foundation Chapters 1-10 (stub)
export const chapters = [
  {
    id: 1,
    title: 'Introduction to Roblox Scripting',
    content: `# Chapter 1: Introduction to Roblox Scripting

Welcome to Roblox development!

**Learning Objectives:**
- Understand what Roblox Studio is
- Learn why Lua is used
- Write your first script

**What is Roblox Studio?**
Roblox Studio is the official IDE for creating Roblox games. It lets you build worlds, write scripts, and publish games.

**Why Lua?**
Lua is a lightweight scripting language used for game logic in Roblox.

**Your First Script:**
Paste this in a Script object:

\`\`\`lua
print('Hello, Roblox!')
\`\`\`

Try running your game to see the output!`
  },
  {
    id: 2,
    title: 'Variables and Data Types',
    content: `# Chapter 2: Variables and Data Types

**Learning Objectives:**
- Use variables to store data
- Understand numbers, strings, tables

**Variables:**
\`\`\`lua
local score = 10
local playerName = "Alex"
\`\`\`

**Tables:**
\`\`\`lua
local inventory = {"Sword", "Shield"}
print(inventory[1]) -- Sword
\`\`\`
`
  },
  {
    id: 3,
    title: 'Functions and Events',
    content: `# Chapter 3: Functions and Events

**Learning Objectives:**
- Write reusable functions
- Respond to game events

**Functions:**
\`\`\`lua
function greet(name)
  print("Hello, " .. name)
end
greet("Alex")
\`\`\`

**Events:**
\`\`\`lua
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
  print(player.Name .. " joined!")
end)
\`\`\`
`
  },
  {
    id: 4,
    title: 'Game Objects and Hierarchy',
    content: `# Chapter 4: Game Objects and Hierarchy

**Learning Objectives:**
- Explore Roblox object hierarchy
- Access and modify game objects

**Example:**
\`\`\`lua
local workspace = game.Workspace
local part = workspace.Part
part.BrickColor = BrickColor.new("Bright red")
\`\`\`
`
  },
  {
    id: 5,
    title: 'Player Interaction',
    content: `# Chapter 5: Player Interaction

**Learning Objectives:**
- Detect player actions
- Respond to input

**Example:**
\`\`\`lua
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
  player.Chatted:Connect(function(message)
    print(player.Name .. " said: " .. message)
  end)
end)
\`\`\`
`
  },
  {
    id: 6,
    title: 'Building Game Logic',
    content: `# Chapter 6: Building Game Logic

**Learning Objectives:**
- Create rules and mechanics
- Use conditions and loops

**Example:**
\`\`\`lua
local score = 0
while score < 10 do
  score = score + 1
  print("Score:", score)
end
\`\`\`
`
  },
  {
    id: 7,
    title: 'Saving Data',
    content: `# Chapter 7: Saving Data

**Learning Objectives:**
- Store player progress
- Use DataStore service

**Example:**
\`\`\`lua
local DataStoreService = game:GetService("DataStoreService")
local scoreStore = DataStoreService:GetDataStore("Scores")

-- Save score
scoreStore:SetAsync("player_123", 100)
-- Load score
local score = scoreStore:GetAsync("player_123")
print(score)
\`\`\`
`
  },
  {
    id: 8,
    title: 'Deploying Your Game',
    content: `# Chapter 8: Deploying Your Game

**Learning Objectives:**
- Publish your game to Roblox
- Update and manage releases

**Steps:**
1. Click "File > Publish to Roblox As..."
2. Choose a name and description
3. Set permissions and publish
`
  },
  {
    id: 9,
    title: 'Debugging and Testing',
    content: `# Chapter 9: Debugging and Testing

**Learning Objectives:**
- Find and fix bugs
- Use print statements and breakpoints

**Example:**
\`\`\`lua
print("Debug: Player joined")
-- Use breakpoints in Studio to pause and inspect
\`\`\`
`
  },
  {
    id: 10,
    title: 'Next Steps and Resources',
    content: `# Chapter 10: Next Steps and Resources

**Continue Learning:**
- Join the [Roblox Developer Forum](https://devforum.roblox.com/)
- Explore [Roblox Education](https://education.roblox.com/)
- Try building your own game!
`
  }
];
