40 lines
514 B
V
40 lines
514 B
V
module mcc
|
|
import base
|
|
|
|
|
|
//there is only 1 of this per circle called "configs"
|
|
pub struct Configs {
|
|
base.Base
|
|
pub mut:
|
|
configs map[string]Config //string is namefixed
|
|
}
|
|
|
|
|
|
//generic config per circle, can be more than 1
|
|
pub struct Config {
|
|
base.Base
|
|
pub mut:
|
|
name string
|
|
labels []Label
|
|
colors []Color
|
|
}
|
|
|
|
pub struct Label {
|
|
base.Base
|
|
pub mut:
|
|
name string
|
|
comment string
|
|
color u16
|
|
}
|
|
|
|
|
|
pub struct Color {
|
|
base.Base
|
|
pub mut:
|
|
id u16
|
|
name string
|
|
comment string
|
|
colorcode string //hex color code
|
|
}
|
|
|