tts_entity

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bag

type Bag struct {
	Name             string    `json:"Name"`
	Transform        Transform `json:"Transform"`
	Nickname         string    `json:"Nickname"`
	Description      string    `json:"Description"`
	ContainedObjects []any     `json:"ContainedObjects"`
}

func NewBag added in v0.2.2

func NewBag(nickname string) Bag

type Card

type Card struct {
	GUID        string                  `json:"GUID"`
	Name        string                  `json:"Name"`
	Nickname    string                  `json:"Nickname"`
	Description string                  `json:"Description"`
	CardID      int                     `json:"CardID"`
	LuaScript   string                  `json:"LuaScript"`
	Transform   *Transform              `json:"Transform,omitempty"`
	CustomDeck  map[int]DeckDescription `json:"CustomDeck,omitempty"`
}

func NewCard added in v0.2.2

func NewCard(guid, name, description string, pageId, cardIndex int, variablesMap map[string]string, deckDesc DeckDescription) Card

type DeckDescription

type DeckDescription struct {
	FaceURL      string `json:"FaceURL"`
	BackURL      string `json:"BackURL"`
	NumWidth     int    `json:"NumWidth"`
	NumHeight    int    `json:"NumHeight"`
	BackIsHidden bool   `json:"BackIsHidden"`
	UniqueBack   bool   `json:"UniqueBack"`
	Type         int    `json:"Type"`
}

type DeckObject

type DeckObject struct {
	Name             string                  `json:"Name"`
	Transform        Transform               `json:"Transform"`
	Nickname         string                  `json:"Nickname"`
	Description      string                  `json:"Description"`
	DeckIDs          []int                   `json:"DeckIDs"`
	CustomDeck       map[int]DeckDescription `json:"CustomDeck"`
	ContainedObjects []Card                  `json:"ContainedObjects"`
}

func NewDeck added in v0.2.2

func NewDeck(nickname string) DeckObject

func (*DeckObject) AddCard added in v0.2.2

func (d *DeckObject) AddCard(card Card)

type RootObjects

type RootObjects struct {
	ObjectStates []Bag `json:"ObjectStates"`
}

type Transform

type Transform struct {
	PosX   float64 `json:"posX"`
	PosY   float64 `json:"posY"`
	PosZ   float64 `json:"posZ"`
	ScaleX float64 `json:"scaleX"`
	ScaleY float64 `json:"scaleY"`
	ScaleZ float64 `json:"scaleZ"`
}

Jump to

Keyboard shortcuts

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