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