feat(transaction): 添加游戏事务系统 | add game transaction system (#381)
- TransactionManager/TransactionContext 事务管理 - MemoryStorage/RedisStorage/MongoStorage 存储实现 - CurrencyOperation/InventoryOperation/TradeOperation 内置操作 - SagaOrchestrator 分布式 Saga 编排 - withTransactions() Room 集成 - 完整中英文文档
This commit is contained in:
23
packages/framework/transaction/module.json
Normal file
23
packages/framework/transaction/module.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"id": "transaction",
|
||||
"name": "@esengine/transaction",
|
||||
"globalKey": "transaction",
|
||||
"displayName": "Transaction System",
|
||||
"description": "游戏事务系统,支持商店购买、玩家交易、分布式事务 | Game transaction system for shop, trading, distributed transactions",
|
||||
"version": "1.0.0",
|
||||
"category": "Other",
|
||||
"icon": "Receipt",
|
||||
"tags": ["transaction", "distributed", "saga", "database"],
|
||||
"isCore": false,
|
||||
"defaultEnabled": false,
|
||||
"isEngineModule": true,
|
||||
"canContainContent": false,
|
||||
"platforms": ["nodejs"],
|
||||
"dependencies": ["core", "server"],
|
||||
"exports": {
|
||||
"services": ["TransactionManager"],
|
||||
"interfaces": ["ITransactionStorage", "ITransactionOperation"]
|
||||
},
|
||||
"requiresWasm": false,
|
||||
"outputPath": "dist/index.js"
|
||||
}
|
||||
Reference in New Issue
Block a user