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 Entity ¶
func LoadEntity ¶
func LoadEntity(r io.ReadSeeker) (*Entity, error)
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
Click to show internal directories.
Click to hide internal directories.