state_machine

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation struct {
	Name                    stingray.Hash   `json:"-"`
	ResolvedName            string          `json:"name"`
	AnimationHashes         []stingray.Hash `json:"-"`
	ResolvedAnimationHashes []string        `json:"paths,omitempty"`
	FloatList               []float32       `json:"floats,omitempty"`
	BoneList                []BoneChannel   `json:"bones,omitempty"`
	LinkList                []Link          `json:"links,omitempty"`
	VectorList              []Vectors       `json:"vectors,omitempty"`
}

type AnimationGroup

type AnimationGroup struct {
	Magic      uint32      `json:"magic"`
	Animations []Animation `json:"animations"`
}

type BoneChannel

type BoneChannel struct {
	Name         stingray.ThinHash `json:"-"`
	ResolvedName string            `json:"name"`
	Index        int32             `json:"index"`
}

type IndexedVector

type IndexedVector struct {
	Index uint32  `json:"index"`
	X     float32 `json:"x"`
	Y     float32 `json:"y"`
	Z     float32 `json:"z"`
}
type Link struct {
	Index  uint32            `json:"index"`
	Weight float32           `json:"weight"`
	Unk00  uint32            `json:"-"`
	Name   stingray.ThinHash `json:"-"`
}

type StateMachine

type StateMachine struct {
	Unk00                     uint32                        `json:"unk00"`
	Groups                    []AnimationGroup              `json:"groups,omitempty"`
	ThinHashes                []stingray.ThinHash           `json:"-"`
	ResolvedThinHashes        []string                      `json:"thinhashes,omitempty"`
	ThinHashFloatsMap         map[stingray.ThinHash]float32 `json:"-"`
	ResolvedThinHashFloatsMap map[string]float32            `json:"boneWeightsMap,omitempty"`
	BoneOpacityArrayList      [][]float32                   `json:"boneOpacities,omitempty"`
	UnkData00                 []uint8                       `json:"unkData00,omitempty"`
	UnkData01                 []uint8                       `json:"unkData01,omitempty"`
	UnkData02                 []uint8                       `json:"unkData02,omitempty"`
}

func LoadStateMachine

func LoadStateMachine(r io.ReadSeeker) (*StateMachine, error)

type Vectors

type Vectors struct {
	Unk00 uint32          `json:"-"`
	Count uint32          `json:"-"`
	Items []IndexedVector `json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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