rts-sim-module/components/button.go

16 lines
419 B
Go
Raw Normal View History

2023-08-17 17:14:47 +08:00
package components
import (
"joylink.club/ecs"
2023-08-23 15:13:06 +08:00
"joylink.club/rtsssimulation/components/cstate"
2023-08-17 17:14:47 +08:00
)
// 按钮状态组件
2023-08-22 11:00:14 +08:00
var ButtonStateComponent = ecs.NewComponentType[cstate.ButtonState]()
2023-08-17 17:14:47 +08:00
// 按钮操作组件
2023-08-22 11:00:14 +08:00
var ButtonPressOperatingComponent = ecs.NewComponentType[cstate.ButtonPressOperating]()
2023-08-17 17:14:47 +08:00
// 按钮确认组件
2023-08-22 11:00:14 +08:00
var ButtonConfirmOperatingComponent = ecs.NewComponentType[cstate.ButtonConfirmOperating]()