chore: sync
This commit is contained in:
18
docs/wiki/economy.md
Normal file
18
docs/wiki/economy.md
Normal file
@@ -0,0 +1,18 @@
|
||||
## Economy Module
|
||||
|
||||
### Module Description
|
||||
Manages in-game economic transactions, resource management, and market interactions.
|
||||
|
||||
### API Endpoints
|
||||
|
||||
- **GET /economy/state**
|
||||
- *Purpose:* Retrieve current economic state
|
||||
- *Auth:* Required (JWT token)
|
||||
- *Payload:* None
|
||||
- *Response:* `{"credits": "int", "resources": {"ore": "int", "crystal": "int"}}`
|
||||
|
||||
- **POST /economy/transaction**
|
||||
- *Purpose:* Execute resource transaction
|
||||
- *Auth:* Required (JWT token)
|
||||
- *Payload:* `{"type": "string", "amount": "int", "target": "string"}`
|
||||
- *Response:* `{"status": "string", "transaction_id": "string"}`
|
||||
Reference in New Issue
Block a user