package ui import ( "encoding/json" "fmt" rl "github.com/gen2brain/raylib-go/raylib" ) type Void struct { Weight float32 } // Used in the element parsing from JSON const VoidTypeName string = "void" func (base *Void) Init(*Menu) { } func (base *Void) Destroy() { } func (base *Void) GetOccupationWeight() float32 { return base.Weight } func (base *Void) Draw(*rl.Rectangle) { } func (base Void) String() string { var outp, jsonErr = json.Marshal(base) if jsonErr != nil { return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error()) } return string(outp) }