decode.go 204 Bytes
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
}