rts-sim-module/components/button.go
2023-08-17 17:14:47 +08:00

16 lines
377 B
Go

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