# Rust
#
# Unanchored on purpose. `/target/` matches only the workspace root, and an agent
# that ran `cargo` inside a crate directory produced `crates/l2-net/target/`,
# which the anchored rule sailed straight past - 1,891 files and 35 MB of
# compiled output, committed and never noticed.
target/
**/*.rs.bk

# Cargo.lock is COMMITTED and deliberately not ignored. This workspace ships a
# binary, and the lock file is what makes CI build the same dependency versions
# a developer does. Without it every CI run re-resolved from scratch, so a
# semver-compatible upstream release could turn the build red with nothing in
# this repository having changed.
#
# It matters more than usual here: deterministic lockstep means the simulation
# must produce identical results across machines and across time
# (docs/netcode.md), and an unpinned dependency graph is at odds with that.
#
# Only the workspace root's lock file is real. A `Cargo.lock` inside a member
# crate is a stray left by running cargo from that directory - the same slip
# that produced crates/l2-net/target/ and put 35 MB of build output in the
# history.
/crates/*/Cargo.lock

# Agent worktrees. Subagents run in their own git worktrees under here; the
# work is committed on their branches, never through this directory.
/.claude/worktrees/

# Node
node_modules/

# Extracted game assets and renders - NEVER commit these.
# They are the publisher's copyrighted art. Like OpenXcom, this project
# requires the user to own an original copy of the game and supplies
# code only, never data.
/data/
/docs/shots/
*.pl8
*.256
*.smk
*.wav
*.saf
*.sav
# **Our own** saved games, which live in %APPDATA%\open-lords2\saves and should
# never be anywhere near this tree in the first place. `*.sav` does not match
# `.l2sav`, and the extensions are deliberately different: theirs is an
# unversioned memory dump we read as an oracle, ours is a format we write.
# docs/decisions.md D11.
*.l2sav

# Local scratch
*.log

# Rendered or derived images. Any image in this repo is presumed to be game data
# until proven otherwise - see CLAUDE.md rule 1. Force-add with justification if
# a genuinely original diagram is ever needed.
*.png
*.bmp
*.jpg
**/out/

# The whole-binary decompilation. Derived from the shipped executable, so it is
# the publisher's code however it is spelled - never committed. Regenerated in
# about twenty seconds by tools/oracle/decompile-all.ps1.
/tools/oracle/decomp/

# Native build output. The proxy DLL is a build artifact, not source.
native/**/*.dll
native/**/*.obj
native/**/*.lib
native/**/*.exp
native/**/*.pdb

# The player zip (tools/run/package.ps1).
/dist/
__pycache__/
