12 lines
175 B
Go
12 lines
175 B
Go
|
package ecs
|
||
|
|
||
|
type (
|
||
|
EventType[T any] struct {
|
||
|
eventName string
|
||
|
componentType *ComponentType[T]
|
||
|
w World
|
||
|
}
|
||
|
|
||
|
Subscriber[T any] func(w *World, event T)
|
||
|
)
|