package system import "joylink.club/ecs" // ButtonState 广义按钮开关状态,开关有三个接点,分别为公共接点、常开点和常闭点 type ButtonState struct { //true-公共接点接通常开点,false-公共接点接通常闭点 Ckd bool } var ( ButtonStateComponent = ecs.NewComponentType[ButtonState]() )