Documentation
¶
Index ¶
- type ExtraPrefab
- type ExtraUnit
- type ExtraUnitsContainer
- type FloatTwoInts
- type HashIndexRange
- type IntsAndFloat
- type Level
- type LevelMetadataType
- type Material
- type MaterialSlotOverrides
- type MetadataEntry
- type Prefab
- type Speedtree
- type SpeedtreeLayer
- type SpeedtreeTransform
- type Unit
- type UnknownTransformedItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraPrefab ¶ added in v0.7.18
type ExtraUnitsContainer ¶ added in v0.7.18
type ExtraUnitsContainer struct {
UnkInt uint32
UnkInt2 uint32
LevelName stingray.Hash
ExtraUnits []ExtraUnit
ExtraPrefabs []ExtraPrefab
UnkIntList []uint32
UnkFloatTwoIntsList []FloatTwoInts
UnkIntsAndFloatList []IntsAndFloat
}
type FloatTwoInts ¶ added in v0.7.18
type HashIndexRange ¶ added in v0.7.18
type IntsAndFloat ¶ added in v0.7.18
type Level ¶
type Level struct {
Name stingray.Hash
Metadata map[int][]MetadataEntry
Prefabs []Prefab
MaterialOverrides map[int]map[stingray.ThinHash]stingray.Hash
Units []Unit
Speedtrees []Speedtree
UnkTransformedItems []UnknownTransformedItem
UnkExtraUnitContainers []ExtraUnitsContainer
UnitHashIndexRange []HashIndexRange
UnkHashIndexRange1 []HashIndexRange
UnkHashIndexRange2 []HashIndexRange
UnkHashIndexRange3 []HashIndexRange
PrefabHashIndexRange []HashIndexRange
UnkHashIndexRange4 []HashIndexRange
UnkHashIndexRange5 []HashIndexRange
}
type LevelMetadataType ¶
type LevelMetadataType uint32
const ( LevelMetadata_NotSeen LevelMetadataType = iota LevelMetadata_uint32 LevelMetadata_float32 LevelMetadata_string )
func (LevelMetadataType) MarshalText ¶
func (p LevelMetadataType) MarshalText() ([]byte, error)
func (LevelMetadataType) String ¶
func (i LevelMetadataType) String() string
type MaterialSlotOverrides ¶
type MetadataEntry ¶
type MetadataEntry struct {
VariableNames []stingray.ThinHash
Type LevelMetadataType
ValueUint uint32
ValueFloat float32
ValueString string
}
func (*MetadataEntry) Key ¶ added in v0.7.27
func (m *MetadataEntry) Key(lookupThinhash func(stingray.ThinHash) string) string
func (*MetadataEntry) Value ¶ added in v0.7.27
func (m *MetadataEntry) Value() any
type Speedtree ¶ added in v0.7.26
type Speedtree struct {
stingray.Hash
Layers []SpeedtreeLayer
Transforms []SpeedtreeTransform
}
type SpeedtreeLayer ¶ added in v0.7.26
type SpeedtreeTransform ¶ added in v0.7.26
type Unit ¶
type Unit struct {
UUIDHash stingray.Hash // hm yes, today I'll represent a 128 bit number as a 64 bit hash of the string representation of the 128 bit number
Name stingray.Hash
stingray.Hash
stingray.Transform
UnkFloats [6]float32 // Maybe a bounding box?
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.