rts-sim-module/repository/xcj.go

21 lines
447 B
Go
Raw Normal View History

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
}