decode.go 204 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 package confdemo // Decode 解析配置原始数据 func (c *DemoConfig) Decode(gameId string, rawData any) { raw := rawData.(*DemoConfigRaw) c.Raw = raw c.Id = raw.Id c.OpenLevel = raw.OpenLevel }