rts-sim-module/components/button.go
2023-08-22 11:00:14 +08:00

16 lines
408 B
Go

package components
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/cstate"
)
// 按钮状态组件
var ButtonStateComponent = ecs.NewComponentType[cstate.ButtonState]()
// 按钮操作组件
var ButtonPressOperatingComponent = ecs.NewComponentType[cstate.ButtonPressOperating]()
// 按钮确认组件
var ButtonConfirmOperatingComponent = ecs.NewComponentType[cstate.ButtonConfirmOperating]()