2023-08-17 17:14:47 +08:00
|
|
|
package components
|
|
|
|
|
|
|
|
import (
|
|
|
|
"joylink.club/ecs"
|
2023-08-22 11:00:14 +08:00
|
|
|
"joylink.club/rtsssimulation/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]()
|