Initial commit:
Added framework to generate DOT and png files of character map chart from data folder. Added all figures in the 1-2 chapters. Added font file SimSum for render chart
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
r "xyj-figures/pkg/relationship"
|
||||
)
|
||||
|
||||
type Character struct {
|
||||
Name string `yaml:"name"`
|
||||
OtherNames []string `yaml:"other_names,flow"`
|
||||
Relationships []r.Relationship `yaml:"relationships,flow"`
|
||||
Description string `yaml:"description"`
|
||||
Links []string `yaml:"links,flow"`
|
||||
}
|
||||
|
||||
func (c Character) GetRelationships() []r.Relationship {
|
||||
return c.Relationships
|
||||
}
|
||||
Reference in New Issue
Block a user