rts-sim-module/components/button.go
2023-08-17 18:17:34 +08:00

16 lines
404 B
Go

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