rts-sim-module/repository/mkx.go

43 lines
769 B
Go
Raw Normal View History

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Mkx struct {
Identity
platformId string
pcbButtons []*Button
pobButtons []*Button
pabButtons []*Button
componentGroups []*ElectronicComponentGroup
}
func NewMkx(id string) *Mkx {
return &Mkx{
Identity: identity{
id: id,
deviceType: proto.DeviceType_DeviceType_Mkx,
},
componentGroups: nil,
}
}
func (m *Mkx) PlatformId() string {
return m.platformId
}
func (m *Mkx) PcbButtons() []*Button {
return m.pcbButtons
}
func (m *Mkx) PobButtons() []*Button {
return m.pobButtons
}
func (m *Mkx) PabButtons() []*Button {
return m.pabButtons
}
func (m *Mkx) ComponentGroups() []*ElectronicComponentGroup {
return m.componentGroups
}