Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
*ComponentHeader
*ComponentData
UnkInt *uint32
UnkFloat *float32
Rotation *mgl32.Mat3
Position *mgl32.Vec3
Scale *mgl32.Vec3
UnkInts []int32
UnkString string
}
func (Component) MarshalBinary ¶ added in v0.7.36
type ComponentData ¶
type ComponentData struct {
SettingNames []stingray.ThinHash
Settings []SettingData
}
type ComponentHeader ¶
type Entity ¶
func LoadEntity ¶
func LoadEntity(r io.ReadSeeker, entityVarMapping shading_environment.ShadingEnvironmentEntityToShaderMapping) (*Entity, error)
func (Entity) MarshalBinary ¶ added in v0.7.36
type SettingData ¶
type SettingData struct {
Type SettingType
ShaderName stingray.ThinHash
ShaderIndex uint32
Data any // May be a uint32, float32, string, or []float32
}
type SettingType ¶
type SettingType uint64
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
func (*SettingType) UnmarshalText ¶ added in v0.7.36
func (p *SettingType) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.