items id
This commit is contained in:
@ -13,7 +13,8 @@ type (
|
|||||||
)
|
)
|
||||||
|
|
||||||
{{- range .}}
|
{{- range .}}
|
||||||
func ({{.Name | ToGoTypeName}}) ID() string { return {{.Name | printf "%q"}} }
|
func ({{.Name | ToGoTypeName}}) Name() string { return {{.Name | printf "%q"}} }
|
||||||
|
func ({{.Name | ToGoTypeName}}) ID() ID { return {{.Id | printf "%d"}} }
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
{{- range .}}
|
{{- range .}}
|
||||||
|
@ -7,7 +7,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Item interface {
|
type Item interface {
|
||||||
ID() string
|
ID() ID
|
||||||
|
Name() string
|
||||||
}
|
}
|
||||||
|
|
||||||
type BlockItem interface {
|
type BlockItem interface {
|
||||||
|
4258
level/item/items.go
4258
level/item/items.go
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user