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 (Bag) GetNickname ¶ added in v1.0.2
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 (Card) GetNickname ¶ added in v1.0.2
type DeckDescription ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.