github.com/15mga/kiwi@v0.0.2-0.20240324021231-b95d5c3ac751/ecs/alias.go (about) 1 package ecs 2 3 import "github.com/15mga/kiwi/util" 4 5 type ( 6 TComponent string 7 TScene string 8 TSystem string 9 TEvent string 10 FnEntity func(*Entity) 11 EntityToBool func(*Entity) bool 12 EntityToErr func(*Entity) *util.Err 13 FnEntityStr func(*Entity, string) 14 FnEntityCom func(*Entity, IComponent) 15 FnCom func(IComponent) 16 ComToBool func(IComponent) bool 17 FnEntityTCom func(*Entity, TComponent) 18 FnEntityEvent func(*Entity, IEvent) 19 FnEvent func(IEvent) 20 FnEvents func([]IEvent) 21 ToEvent func() IEvent 22 EntityToEvent func(*Entity) IEvent 23 FnScene func(*Scene) 24 SceneToErr func(*Scene) *util.Err 25 FnSceneM func(*Scene, util.M) 26 FnSceneStr func(*Scene, string) 27 FnEntityFrame func(*Entity, *Frame) 28 FnFrame func(*Frame) 29 FnEntityBuffer func(*Entity, *Buffer) 30 FnComponentBuffer func(IComponent, *Buffer) 31 )