添加 claude code game studios 到项目
This commit is contained in:
15
.claude/rules/network-code.md
Normal file
15
.claude/rules/network-code.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
paths:
|
||||
- "src/networking/**"
|
||||
---
|
||||
|
||||
# Network Code Rules
|
||||
|
||||
- Server is AUTHORITATIVE for all gameplay-critical state — never trust the client
|
||||
- All network messages must be versioned for forward/backward compatibility
|
||||
- Client predicts locally, reconciles with server — implement rollback for mispredictions
|
||||
- Handle disconnection, reconnection, and host migration gracefully
|
||||
- Rate-limit all network logging to prevent log flooding
|
||||
- All networked values must specify replication strategy: reliable/unreliable, frequency, interpolation
|
||||
- Bandwidth budget: define and track per-message-type bandwidth usage
|
||||
- Security: validate all incoming packet sizes and field ranges
|
||||
Reference in New Issue
Block a user