rts-sim-module/repository/xcj.go
thesai 4371dad391 【新增】洗车机模型构建、ecs实体构建
【修改】洗车机ecs电路系统逻辑
2024-04-02 14:09:41 +08:00

21 lines
447 B
Go

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Xcj struct {
Identity
componentGroups []*ElectronicComponentGroup
NumSegments uint32
}
func NewXcj(id string, numSegments uint32) *Xcj {
return &Xcj{
Identity: identity{id: id, deviceType: proto.DeviceType_DeviceType_Xcj},
NumSegments: numSegments,
}
}
func (p *Xcj) ComponentGroups() []*ElectronicComponentGroup {
return p.componentGroups
}