mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-21 00:21:15 +00:00
23 lines
508 B
Go
23 lines
508 B
Go
package sii
|
|
|
|
func init() {
|
|
RegisterBlock(&SaveContainer{})
|
|
}
|
|
|
|
type SaveContainer struct {
|
|
SaveName string `sii:"name"`
|
|
Time int64 `sii:"time"`
|
|
FileTime int64 `sii:"file_time"`
|
|
Version int `sii:"version"`
|
|
Dependencies []string `sii:"dependencies"`
|
|
|
|
blockName string
|
|
}
|
|
|
|
func (SaveContainer) Class() string { return "save_container" }
|
|
|
|
func (s *SaveContainer) Init(class, name string) {
|
|
s.blockName = name
|
|
}
|
|
|
|
func (s SaveContainer) Name() string { return s.blockName }
|