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 RawLevel
- 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
Entity *entity.Entity
UnkTransformedItems []UnknownTransformedItem
UnkExtraUnitContainers []ExtraUnitsContainer
UnitHashIndexRange []HashIndexRange
UnkHashIndexRange1 []HashIndexRange
UnkHashIndexRange2 []HashIndexRange
UnkHashIndexRange3 []HashIndexRange
PrefabHashIndexRange []HashIndexRange
UnkHashIndexRange4 []HashIndexRange
UnkHashIndexRange5 []HashIndexRange
}
func LoadLevel ¶
func LoadLevel(r io.ReadSeeker, entityVarMapping shading_environment.ShadingEnvironmentEntityToShaderMapping) (*Level, error)
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
func (*LevelMetadataType) UnmarshalText ¶ added in v0.7.36
func (p *LevelMetadataType) UnmarshalText(text []byte) error
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 RawLevel ¶ added in v0.7.36
type RawLevel struct {
Magic uint32
UnitCount uint32
DataCount uint32
UnkOffsets00 [1]uint32
MetadataOffset uint32
UnkOffsets01 [13]uint32
UnkCount00 uint32
UnkOffsets02 [8]uint32
PrefabCount uint32
PrefabOffset uint32
UnkHashCount uint32
UnkHashesOffset uint32
UnkTransformedItemOffsetOffset uint32 // Double pointers for several items here
ExtraUnitsInfoOffset uint32
UnitHashIndexRangeOffset uint32
UnkHashIndexRangeOffset0 uint32
UnkHashIndexRangeOffset1 uint32
UnkHashIndexRangeOffset2 uint32
PrefabHashIndexRangeOffset uint32
UnkHashIndexRangeOffset3 uint32
UnkHashIndexRangeOffset4 uint32
UnkOffsets03 [3]uint32
EntityOffset uint32
UnkOffsets06 [1]uint32
MaterialOffset uint32
UnkThinHashesOffset uint32
SpeedtreesOffset uint32
UnkOffsets04 [2]uint32
UnkIntListOffset uint32
UnkOffsets05 [9]uint32
Name stingray.Hash
UnkCount01 uint64
}
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.