entity

package
v0.7.35 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	ComponentHeader
	ComponentData
}

type ComponentData

type ComponentData struct {
	SettingNames []stingray.ThinHash
	Settings     []SettingData
}

type ComponentHeader

type ComponentHeader struct {
	CategoryNames []stingray.ThinHash
}

type Entity

type Entity struct {
	Header
	Info
}

func LoadEntity

func LoadEntity(r io.ReadSeeker) (*Entity, error)
type Header struct {
	Magic   [12]byte
	UnkInt1 uint32
	UnkHash stingray.Hash
	UnkInt2 uint32
	UnkInt3 uint32
	UnkInt4 int32
}

type Info

type Info struct {
	UnkHash             stingray.ThinHash
	ComponentPadding    []uint32 // only observed zeroes so far but may have a more significant meaning
	ComponentThinHashes []stingray.ThinHash
	Components          []Component
}

type SettingData

type SettingData struct {
	Type SettingType `json:"type"`
	Data any         `json:"data"` // May be a uint32, float32, string, or []float32
}

type SettingType

type SettingType uint32
const (
	SettingType_Unknown SettingType = iota
	SettingType_U32
	SettingType_F32
	SettingType_String
	SettingType_Vector
)

func (SettingType) MarshalText

func (p SettingType) MarshalText() ([]byte, error)

func (SettingType) String

func (i SettingType) String() string

Jump to

Keyboard shortcuts

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