1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_economy_event.go
Knut Ahlers a73cada4f5
Add new blocks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-11 18:38:23 +01:00

21 lines
399 B
Go

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 }