vtt

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDataSources

func ConvertDataSources(moduleFile string) ([]snd.DataSource, [][]snd.Entry, error)

ConvertDataSources parses a FoundryVTT module.json or system.json file and converts all the specified packs to S&D data sources and entries.

func ConvertPackEntries

func ConvertPackEntries(packFile string) ([]snd.Entry, error)

ConvertPackEntries converts a .db FoundryVTT file to S&D entries.

Types

type Module

type Module struct {
	Name        string        `json:"name"`
	Title       string        `json:"title"`
	Description string        `json:"description"`
	Version     string        `json:"version"`
	Systems     []string      `json:"systems"`
	Author      interface{}   `json:"author"`
	Scripts     []interface{} `json:"scripts"`
	Esmodules   []interface{} `json:"esmodules"`
	Styles      []interface{} `json:"styles"`
	Packs       []struct {
		Name    string `json:"name"`
		Label   string `json:"label"`
		Package string `json:"package"`
		Path    string `json:"path"`
		Entity  string `json:"entity"`
	} `json:"packs"`
	MinimumCoreVersion    string `json:"minimumCoreVersion"`
	CompatibleCoreVersion string `json:"compatibleCoreVersion"`
	URL                   string `json:"url"`
	Manifest              string `json:"manifest"`
	Download              string `json:"download"`
}

type PackEntry

type PackEntry struct {
	ID         string `json:"_id"`
	Name       string `json:"name"`
	Permission struct {
		Default int `json:"default"`
	} `json:"permission"`
	Data  map[string]interface{} `json:"data"`
	Flags struct {
	} `json:"flags"`
	Type string `json:"type"`
	Img  string `json:"img"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL