1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_save_container.go
Knut Ahlers 5aa424fa3d
WIP
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-11-06 00:57:05 +01:00

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 }