1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_game_progress.go

23 lines
528 B
Go
Raw Normal View History

package sii
func init() {
RegisterBlock(&GameProgress{})
}
type GameProgress struct {
GenericTransports Ptr `sii:"generic_transports"`
UndamagedTransports Ptr `sii:"undamaged_transports"`
CleanTransports Ptr `sii:"clean_transports"`
OwnedTrucks []string `sii:"owned_trucks"`
blockName string
}
func (GameProgress) Class() string { return "game_progress" }
func (g *GameProgress) Init(class, name string) {
g.blockName = name
}
func (g GameProgress) Name() string { return g.blockName }