1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-30 04:11:15 +00:00
sii/block_economy_event.go

22 lines
399 B
Go
Raw Normal View History

package sii
func init() {
RegisterBlock(&EconomyEvent{})
}
type EconomyEvent struct {
Time int64 `sii:"time"`
UnitLink Ptr `sii:"unit_link"`
Param int64 `sii:"param"`
blockName string
}
func (EconomyEvent) Class() string { return "economy_event" }
func (e *EconomyEvent) Init(class, name string) {
e.blockName = name
}
func (e EconomyEvent) Name() string { return e.blockName }