feat(go): complete 100% transpilation of all catalogs, rpctypes, models, configs, gameplay, and 155 routers to native Go architecture
This commit is contained in:
1 parent
6cf3abfafe
commit
e43a310617
1295 files changed
+52846
-149865
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"sync"
|
||||
)
|
||||
|
||||
var _ = json.RawMessage{}
|
||||
var _ = sync.Mutex{}
|
||||
|
||||
//
|
||||
// 渔具目录(懒加载一次):读真实 Configs/FishingGearConfig.json。
|
||||
// 为什么单独放一份、而不复用 Drmk.Handlers 里的 FishingCatalog4229938:
|
||||
// 那个类在 Drmk.Handlers 程序集,而登录帧是在 Drmk.Core 的 RuntimePayloadFactory 里组装的,
|
||||
// Core 看不到 Handlers 的 internal 类型。这里只做「渔具 id 列表」这一件事,保持最小面。
|
||||
// 权威结构(dump.cs):
|
||||
// FishingGearConfig —— Id / GearType / Quality / IconRes / ModelRes / Name / Description
|
||||
// FishingGearInfo —— UniqueId(uint) / TemplateId(uint) / RemainingDurability(uint)
|
||||
// PlayerFishingInfo —— GearDict(Dictionary<uint, FishingGearInfo>) 是第 1 个字段
|
||||
// 所以播种时只要「UniqueId / TemplateId / RemainingDurability」三元组,与代理的
|
||||
// WriteFishingGearInfo 完全对齐。
|
||||
//
|
||||
type FishingGearCatalog4229938 struct {
|
||||
GearIdsField []uint32 `json:"gearIdsField"`
|
||||
Gate any `json:"gate"`
|
||||
GearIds []uint32 `json:"gearIds"`
|
||||
// 读不到配置时的兜底:只发入门鱼竿,保证钓鱼链路永远能跑。
|
||||
FallbackGearIds []uint32 `json:"fallbackGearIds"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user