unity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RenderKindNone uint = iota
	RenderKindVideo
	RenderKindText
)

Variables

This section is empty.

Functions

func GetOptionAutoOption

func GetOptionAutoOption(
	attributeID entry.AttributeID, options *entry.AttributeOptions,
) (*entry.UnityAutoAttributeOption, error)

TODO: requre optimization to not do it every time we touch attribute

func PrerenderAutoValue

func PrerenderAutoValue(
	ctx context.Context, option *entry.UnityAutoAttributeOption, value *entry.AttributeValue,
) (*dto.HashResponse, error)

Types

type AttributeValueChangedMessage

type AttributeValueChangedMessage struct {
	Type universe.AttributeChangeType     `json:"type"`
	Data AttributeValueChangedMessageData `json:"data"`
}

type AttributeValueChangedMessageData

type AttributeValueChangedMessageData struct {
	AttributeName string `json:"attribute_name"`
	Value         any    `json:"value"`
}

Jump to

Keyboard shortcuts

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