mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-21 00:21:15 +00:00
22 lines
528 B
Go
22 lines
528 B
Go
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 }
|