Skip to content

package table_of_contents

import "kaiju/engine/assets/table_of_contents"

Types

TableEntry

struct

type TableEntry struct {
    Id   string
    Name string
}

TableEntry.IsValid

func (t TableEntry) IsValid() bool

TableOfContents

struct

type TableOfContents struct {
    Entries map[string]TableEntry
}

Deserialize

func Deserialize(data []byte) (TableOfContents, error)

New

func New() TableOfContents

TableOfContents.Add

func (t *TableOfContents) Add(entry TableEntry) bool

TableOfContents.Remove

func (t *TableOfContents) Remove(key string)

TableOfContents.SelectById

func (t TableOfContents) SelectById(id string) (TableEntry, bool)

TableOfContents.SelectByName

func (t TableOfContents) SelectByName(name string) (TableEntry, bool)

TableOfContents.Serialize

func (t TableOfContents) Serialize() ([]byte, error)