tts_entity

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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

func (Bag) GetName added in v1.0.2

func (b Bag) GetName() string

func (Bag) GetNickname added in v1.0.2

func (b Bag) GetNickname() string

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"`
	States      map[string]Card         `json:"States,omitempty"`
}

func NewCard added in v0.2.2

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

func (Card) GetName added in v1.0.2

func (c Card) GetName() string

func (Card) GetNickname added in v1.0.2

func (c Card) GetNickname() string

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)

func (DeckObject) GetName added in v1.0.2

func (d DeckObject) GetName() string

func (DeckObject) GetNickname added in v1.0.2

func (d DeckObject) GetNickname() string

type RootObjects

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

type TTSObject added in v1.0.2

type TTSObject interface {
	GetName() string
	GetNickname() string
}

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