rts-sim-module/component/iscs_bas_pipe.go
2023-12-27 18:11:27 +08:00

22 lines
664 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package component
import "joylink.club/ecs"
// FluidPipe 流体管线
//
// 管线内流体流动条件1、管线内有流体2、管线两端有压差3、管线畅通
type FluidPipe struct {
FlowVelocity int32 //流速大于零从管线A端向B端流动小于零从管线B端向A端流动等于零没有流动
}
// FluidDriver 流体驱动器
type FluidDriver struct {
On bool //true-输出流体驱动力false-未输出流体驱动力
Forward bool //true-正转false-反转
}
var (
FluidPipeType = ecs.NewComponentType[FluidPipe]() //流体管线
FluidDriverType = ecs.NewComponentType[FluidDriver]() //流体驱动器
)